|
Paparazzi UAS
v5.18.0_stable
Paparazzi is a free software Unmanned Aircraft System.
|
enum SPIClockDiv cdiv
prescaler of main clock to use as SPI clock
bool mcp355x_data_available
enum SPIClockPolarity cpol
clock polarity control
uint16_t output_length
number of data words to write
SPI transaction structure.
enum SPIBitOrder bitorder
MSB/LSB order.
volatile uint8_t * output_buf
pointer to transmit buffer for DMA
enum SPISlaveSelect select
slave selection behavior
@ SPICpolIdleLow
CPOL = 0.
enum SPIClockPhase cpha
clock phase control
bool spi_submit(struct spi_periph *p, struct spi_transaction *t)
Submit SPI transaction.
struct spi_transaction mcp355x_spi_trans
uint16_t input_length
number of data words to read
enum SPIDataSizeSelect dss
data transfer word size
uint8_t slave_idx
slave id: SPI_SLAVE0 to SPI_SLAVE4
@ SPISelect
slave is selected before transaction but not unselected
volatile uint8_t * input_buf
pointer to receive buffer for DMA
process_rx_dma_interrupt & spi1
receive transferred over DMA
enum SPITransactionStatus status