Hardware Abstraction Layer for FreeRTOS
|
#include <spi.h>
Data Fields | |
bool | lsb |
bool | cpol |
bool | cpha |
uint8_t | cs |
bool | csLowInactive |
uint16_t | gpio |
uint8_t | size |
uint32_t | wdelay |
uint32_t | cs_hold |
uint32_t | cs_delay |
uint32_t | baudrate |
Settings for SPI Slave
uint32_t spi_opt::baudrate |
Frequency in HZ
bool spi_opt::cpha |
CPHA = false Data on rising CPHA = true Data on falling
bool spi_opt::cpol |
CPOL = false Clock Idle Low CPOL = true Clock Idel High
uint8_t spi_opt::cs |
CS ID controlled by SPI Controller Disable if value is SPI_OPT_CS_DIS
uint32_t spi_opt::cs_delay |
Time in ns CS is set and data Transfer start
uint32_t spi_opt::cs_hold |
Holt Time in ns CS after Transfer
bool spi_opt::csLowInactive |
CS is Low Inactive
uint16_t spi_opt::gpio |
CS GPIO Pin Index CS is Controlled by GPIO Pin Ignored if cs not SPI_OPT_CS_DIS Disabled if value is SPI_OPT_GPIO_DIS
bool spi_opt::lsb |
Slave send the data in LSB
uint8_t spi_opt::size |
Size of Frame 1 - 16 0 illegal Value
uint32_t spi_opt::wdelay |
Delay in ns between Write Cycle