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