29 #include "pprzlink/messages.h"
static void h(const real32_T x[7], const real32_T q[4], real32_T y[6])
Common code for AP and FBW telemetry.
enum SPIClockPolarity cpol
clock polarity control
enum SPIClockPhase cpha
clock phase control
SPICallback after_cb
NULL or function called after the transaction.
enum SPIDataSizeSelect dss
data transfer word size
volatile uint8_t * output_buf
pointer to transmit buffer for DMA
uint16_t input_length
number of data words to read
volatile uint8_t * input_buf
pointer to receive buffer for DMA
enum SPIBitOrder bitorder
MSB/LSB order.
uint16_t output_length
number of data words to write
bool spi_slave_register(struct spi_periph *periph, struct spi_transaction *trans)
Register a spi transaction in slave mode (only one transaction can be registered).
process_rx_dma_interrupt & spi1
receive transferred over DMA
@ SPICpolIdleHigh
CPOL = 1.
SPI transaction structure.
Inertial Measurement Unit interface.
static void qr_code_spi_link_trans_cb(struct spi_transaction *trans)
struct spi_transaction qr_code_spi_link_transaction
void qr_code_spi_link_periodic(void)
static volatile bool qr_code_spi_data_available
void qr_code_spi_link_init(void)
Architecture independent SPI (Serial Peripheral Interface) API.
arch independent UART (Universal Asynchronous Receiver/Transmitter) API
unsigned short uint16_t
Typedef defining 16 bit unsigned short type.
short int16_t
Typedef defining 16 bit short type.
unsigned char uint8_t
Typedef defining 8 bit unsigned char type.