void lsm303d_spi_read(struct Lsm303d_Spi *lsm)
void lsm303d_spi_event(struct Lsm303d_Spi *lsm)
void lsm303d_spi_start_configure(struct Lsm303d_Spi *lsm)
bool initialized
config done flag
SPI transaction structure.
struct spi_periph * spi_p
union Lsm303d_Spi::@308 data_accel
Architecture independent SPI (Serial Peripheral Interface) API.
volatile uint8_t rx_buf[8]
SPI peripheral structure.
volatile bool data_available_mag
data ready flag magneto
struct spi_transaction spi_trans
volatile bool data_available_acc
data ready flag accelero
enum Lsm303dTarget target
volatile uint8_t tx_buf[2]
Lsm303dConfStatus
config status states
struct Lsm303dConfig conf
void lsm303d_spi_init(struct Lsm303d_Spi *lsm, struct spi_periph *spi_p, uint8_t slave_idx, enum Lsm303dTarget target)
union Lsm303d_Spi::@309 data_mag
Driver for ST LSM303D 3D accelerometer and magnetometer.
Paparazzi fixed point algebra.
static void lsm303d_spi_periodic(struct Lsm303d_Spi *lsm)
convenience function: read or start configuration if not already initialized
enum Lsm303dConfStatus init_status