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
 

Detailed Description

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 85 of file lpspi_shared_function.h.

Field Documentation

uint16_t bitsPerFrame

Number of bits per frame: 8- to 4096-bits; needed for TCR programming

Definition at line 87 of file lpspi_shared_function.h.

uint16_t bytesPerFrame

Number of bytes per frame: 1- to 512-bytes

Definition at line 89 of file lpspi_shared_function.h.

uint8_t fifoSize

RX/TX fifo size

Definition at line 102 of file lpspi_shared_function.h.

bool isBlocking

Save the transfer type

Definition at line 92 of file lpspi_shared_function.h.

bool isPcsContinuous

Option to keep chip select asserted until transfer complete; needed for TCR programming

Definition at line 90 of file lpspi_shared_function.h.

volatile bool isTransferInProgress

True if there is an active transfer

Definition at line 94 of file lpspi_shared_function.h.

semaphore_t lpspiSemaphore

The semaphore used for blocking transfers

Definition at line 106 of file lpspi_shared_function.h.

uint32_t lpspiSrcClk

Module source clock

Definition at line 93 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 101 of file lpspi_shared_function.h.

uint8_t* rxBuff

The buffer into which received bytes are placed

Definition at line 96 of file lpspi_shared_function.h.

volatile uint16_t rxCount

Number of bytes remaining to receive

Definition at line 98 of file lpspi_shared_function.h.

uint8_t rxDMAChannel

Channel number for DMA rx channel

Definition at line 103 of file lpspi_shared_function.h.

volatile uint16_t rxFrameCnt

Number of bytes from current frame which were already received

Definition at line 100 of file lpspi_shared_function.h.

The status of the current

Definition at line 107 of file lpspi_shared_function.h.

lpspi_transfer_type transferType

Type of LPSPI transfer

Definition at line 105 of file lpspi_shared_function.h.

const uint8_t* txBuff

The buffer from which transmitted bytes are taken

Definition at line 95 of file lpspi_shared_function.h.

volatile uint16_t txCount

Number of bytes remaining to send

Definition at line 97 of file lpspi_shared_function.h.

uint8_t txDMAChannel

Channel number for DMA tx channel

Definition at line 104 of file lpspi_shared_function.h.

volatile uint16_t txFrameCnt

Number of bytes from current frame which were already sent

Definition at line 99 of file lpspi_shared_function.h.


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