|
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
enum SPIClockPolarity cpol
clock polarity control
void max1168_lock_cb(struct spi_transaction *t)
uint16_t max1168_values[MAX1168_NB_CHAN]
uint16_t output_length
number of data words to write
#define MAX1168_SLAVE_IDX
SPI transaction structure.
#define MAX1168_SENDING_REQ
enum SPIBitOrder bitorder
MSB/LSB order.
volatile uint8_t * output_buf
pointer to transmit buffer for DMA
enum SPISlaveSelect select
slave selection behavior
@ SPIUnselect
slave is not selected but unselected after transaction
@ SPICpolIdleLow
CPOL = 0.
#define MAX1168_READING_RES
enum SPIClockPhase cpha
clock phase control
SPICallback after_cb
NULL or function called after the transaction.
bool spi_submit(struct spi_periph *p, struct spi_transaction *t)
Submit SPI transaction.
uint16_t max1168_conv_req
bool spi_resume(struct spi_periph *p, uint8_t slave)
spi_resume() function
volatile uint8_t max1168_status
void spi_slave_unselect(uint8_t slave)
spi_slave_unselect() function
#define MAX1168_DATA_AVAILABLE
void max1168_arch_init(void)
arch independent LED (Light Emitting Diodes) API
struct spi_transaction max1168_req_trans
bool spi_lock(struct spi_periph *p, uint8_t slave)
spi_lock() function
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
struct spi_transaction max1168_read_trans
enum SPITransactionStatus status