|
Paparazzi UAS
v5.18.0_stable
Paparazzi is a free software Unmanned Aircraft System.
|
void pmw3901_event(struct pmw3901_t *pmw)
@ PMW3901_READ_DELTAXHIGH
struct spi_periph * periph
volatile uint8_t spi_output_buf[SPI_BUFFER_SIZE]
uint32_t readwrite_timeout
@ PMW3901_READ_DELTAYHIGH
bool pmw3901_data_available(struct pmw3901_t *pmw)
SPI transaction structure.
SPI peripheral structure.
bool pmw3901_get_data(struct pmw3901_t *pmw, int16_t *delta_x, int16_t *delta_y)
struct spi_transaction trans
bool pmw3901_is_idle(struct pmw3901_t *pmw)
uint8_t slave_idx
slave id: SPI_SLAVE0 to SPI_SLAVE4
void pmw3901_start_read(struct pmw3901_t *pmw)
volatile uint8_t spi_input_buf[SPI_BUFFER_SIZE]
void pmw3901_init(struct pmw3901_t *pmw, struct spi_periph *periph, uint8_t slave_idx)