![]() |
S32 SDK
|
Runtime state structure for the LPSPI master driver. More...
#include <lpspi_shared_function.h>
Data Fields | |
uint16_t | bitsPerFrame |
uint16_t | bytesPerFrame |
bool | isPcsContinuous |
bool | isBlocking |
uint32_t | lpspiSrcClk |
volatile bool | isTransferInProgress |
const uint8_t * | txBuff |
uint8_t * | rxBuff |
volatile uint16_t | txCount |
volatile uint16_t | rxCount |
volatile uint16_t | txFrameCnt |
volatile uint16_t | rxFrameCnt |
volatile bool | lsb |
uint8_t | fifoSize |
uint8_t | rxDMAChannel |
uint8_t | txDMAChannel |
lpspi_transfer_type | transferType |
semaphore_t | lpspiSemaphore |
transfer_status_t | status |
spi_callback_t | callback |
void * | callbackParam |
Runtime state structure for the LPSPI master driver.
This structure holds data that is used by the LPSPI peripheral driver to communicate between the transfer function and the interrupt handler. The interrupt handler also uses this information to keep track of its progress. The user must pass the memory for this run-time state structure. The LPSPI master driver populates the members. Implements : lpspi_state_t_Class
Definition at line 127 of file lpspi_shared_function.h.
uint16_t bitsPerFrame |
Number of bits per frame: 8- to 4096-bits; needed for TCR programming
Definition at line 129 of file lpspi_shared_function.h.
uint16_t bytesPerFrame |
Number of bytes per frame: 1- to 512-bytes
Definition at line 131 of file lpspi_shared_function.h.
spi_callback_t callback |
Select the callback to transfer complete
Definition at line 150 of file lpspi_shared_function.h.
void* callbackParam |
Select additional callback parameters if it's necessary
Definition at line 151 of file lpspi_shared_function.h.
uint8_t fifoSize |
RX/TX fifo size
Definition at line 144 of file lpspi_shared_function.h.
bool isBlocking |
Save the transfer type
Definition at line 134 of file lpspi_shared_function.h.
bool isPcsContinuous |
Option to keep chip select asserted until transfer complete; needed for TCR programming
Definition at line 132 of file lpspi_shared_function.h.
volatile bool isTransferInProgress |
True if there is an active transfer
Definition at line 136 of file lpspi_shared_function.h.
semaphore_t lpspiSemaphore |
The semaphore used for blocking transfers
Definition at line 148 of file lpspi_shared_function.h.
uint32_t lpspiSrcClk |
Module source clock
Definition at line 135 of file lpspi_shared_function.h.
volatile bool lsb |
True if first bit is LSB and false if first bit is MSB
Definition at line 143 of file lpspi_shared_function.h.
uint8_t* rxBuff |
The buffer into which received bytes are placed
Definition at line 138 of file lpspi_shared_function.h.
volatile uint16_t rxCount |
Number of bytes remaining to receive
Definition at line 140 of file lpspi_shared_function.h.
uint8_t rxDMAChannel |
Channel number for DMA rx channel
Definition at line 145 of file lpspi_shared_function.h.
volatile uint16_t rxFrameCnt |
Number of bytes from current frame which were already received
Definition at line 142 of file lpspi_shared_function.h.
transfer_status_t status |
The status of the current
Definition at line 149 of file lpspi_shared_function.h.
lpspi_transfer_type transferType |
Type of LPSPI transfer
Definition at line 147 of file lpspi_shared_function.h.
const uint8_t* txBuff |
The buffer from which transmitted bytes are taken
Definition at line 137 of file lpspi_shared_function.h.
volatile uint16_t txCount |
Number of bytes remaining to send
Definition at line 139 of file lpspi_shared_function.h.
uint8_t txDMAChannel |
Channel number for DMA tx channel
Definition at line 146 of file lpspi_shared_function.h.
volatile uint16_t txFrameCnt |
Number of bytes from current frame which were already sent
Definition at line 141 of file lpspi_shared_function.h.