Lsm303dlhcConfStatus
config status states
struct spi_periph * spi_p
static void lsm303dlhc_spi_periodic(struct Lsm303dlhc_Spi *lsm)
convenience function: read or start configuration if not already initialized
SPI transaction structure.
volatile uint8_t rx_buf[8]
Architecture independent SPI (Serial Peripheral Interface) API.
volatile bool data_available_acc
data ready flag accelero
SPI peripheral structure.
union Lsm303dlhc_Spi::@310 data_mag
volatile uint8_t tx_buf[2]
void lsm303dlhc_spi_start_configure(struct Lsm303dlhc_Spi *lsm)
union Lsm303dlhc_Spi::@311 config
union Lsm303dlhc_Spi::@309 data_accel
struct spi_transaction spi_trans
enum Lsm303dlhcTarget target
bool initialized
config done flag
void lsm303dlhc_spi_read(struct Lsm303dlhc_Spi *lsm)
volatile bool data_available_mag
data ready flag magneto
void lsm303dlhc_spi_event(struct Lsm303dlhc_Spi *lsm)
enum Lsm303dlhcConfStatus init_status
void lsm303dlhc_spi_init(struct Lsm303dlhc_Spi *lsm, struct spi_periph *spi_p, uint8_t slave_idx, enum Lsm303dlhcTarget target)
Driver for ST LSM303DLHC 3D accelerometer and magnetometer.
Paparazzi fixed point algebra.