73 #include "peripherals/ms2100_arch.h"
struct spi_transaction req_trans
void ms2100_event(struct Ms2100 *ms)
void ms2100_read(struct Ms2100 *ms)
send request to read next axis
volatile uint8_t req_buf[1]
SPI buffer for the command byte.
SPI transaction structure.
volatile uint8_t read_buf[2]
SPI buffer for reading a single axis.
Architecture independent SPI (Serial Peripheral Interface) API.
void ms2100_arch_init(void)
SPI peripheral structure.
struct spi_transaction read_trans
void ms2100_init(struct Ms2100 *ms, struct spi_periph *spi_p, uint8_t slave_idx)
struct spi_periph * spi_p
static void ms2100_periodic(struct Ms2100 *ms)
Paparazzi fixed point algebra.