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
 

Detailed Description

Settings for SPI Slave

Field Documentation

◆ baudrate

uint32_t spi_opt::baudrate

Frequency in HZ

◆ cpha

bool spi_opt::cpha

CPHA = false Data on rising CPHA = true Data on falling

◆ cpol

bool spi_opt::cpol

CPOL = false Clock Idle Low CPOL = true Clock Idel High

◆ cs

uint8_t spi_opt::cs

CS ID controlled by SPI Controller Disable if value is SPI_OPT_CS_DIS

◆ cs_delay

uint32_t spi_opt::cs_delay

Time in ns CS is set and data Transfer start

◆ cs_hold

uint32_t spi_opt::cs_hold

Holt Time in ns CS after Transfer

◆ csLowInactive

bool spi_opt::csLowInactive

CS is Low Inactive

◆ gpio

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

◆ lsb

bool spi_opt::lsb

Slave send the data in LSB

◆ size

uint8_t spi_opt::size

Size of Frame 1 - 16 0 illegal Value

◆ wdelay

uint32_t spi_opt::wdelay

Delay in ns between Write Cycle


The documentation for this struct was generated from the following file: