Encapsulate LSM6DSV16X driver specific macros (#13196)
[betaflight.git] / src / main / drivers / accgyro / accgyro_spi_lsm6dsv16x.h
bloba65da6ff27b501e8029f00ceaebf1dbf7f0a5c2a
1 /*
2 * This file is part of Betaflight.
4 * Betaflight is free software. You can redistribute this software
5 * and/or modify this software under the terms of the GNU General
6 * Public License as published by the Free Software Foundation,
7 * either version 3 of the License, or (at your option) any later
8 * version.
10 * Betaflight is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
14 * See the GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public
17 * License along with this software.
19 * If not, see <http://www.gnu.org/licenses/>.
22 #pragma once
24 #include <stdbool.h>
25 #include <stdint.h>
27 #include "drivers/accgyro/accgyro.h"
28 #include "drivers/bus_spi.h"
30 // Discovery functions
31 uint8_t lsm6dsv16xSpiDetect(const extDevice_t *dev);
32 bool lsm6dsv16xSpiAccDetect(accDev_t *acc);
33 bool lsm6dsv16xSpiGyroDetect(gyroDev_t *gyro);