Struct SYN_SPI_Transaction¶
ClassList > SYN_SPI_Transaction
SPI Transaction Descriptor.
#include <syn_spi_queue.h>
Public Attributes¶
| Type | Name |
|---|---|
| uint32_t | baudrate_hz |
| uint8_t | bus |
| SYN_SPI_Queue_Callback | callback |
| SYN_GPIO_Pin | cs_pin |
| bool | keep_cs_active |
| size_t | len |
| SYN_SPI_Mode | mode |
| uint8_t * | rx_data |
| const uint8_t * | tx_data |
| void * | user_data |
Public Attributes Documentation¶
variable baudrate_hz¶
Target baud rate in Hz (0 = default 1 MHz)
variable bus¶
SPI bus index
variable callback¶
Completion callback
variable cs_pin¶
Target Chip Select GPIO pin
variable keep_cs_active¶
If true, leaves CS low upon transfer completion
variable len¶
Transfer byte count
variable mode¶
Target SPI mode (0-3)
variable rx_data¶
RX buffer (NULL → discard RX)
variable tx_data¶
TX buffer (NULL → send dummy 0xFF)
variable user_data¶
User context pointer
The documentation for this class was generated from the following file src/syntropic/drivers/syn_spi_queue.h