SPI peripheral structure.
SPI transaction structure.
static void ms2100_periodic(struct Ms2100 *ms)
volatile uint8_t req_buf[1]
SPI buffer for the command byte.
struct spi_transaction read_trans
void ms2100_arch_init(void)
volatile uint8_t read_buf[2]
SPI buffer for reading a single axis.
void ms2100_event(struct Ms2100 *ms)
struct spi_transaction req_trans
struct spi_periph * spi_p
void ms2100_init(struct Ms2100 *ms, struct spi_periph *spi_p, uint8_t slave_idx)
void ms2100_read(struct Ms2100 *ms)
send request to read next axis
STM32 specific functions for the ms2100 magnetic sensor from PNI.
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.