![]() |
S32 SDK
|
Runtime state of the LPUART driver. More...
#include <lpuart_driver.h>
Data Fields | |
const uint8_t * | txBuff |
uint8_t * | rxBuff |
volatile uint32_t | txSize |
volatile uint32_t | rxSize |
volatile bool | isTxBusy |
volatile bool | isRxBusy |
volatile bool | isTxBlocking |
volatile bool | isRxBlocking |
lpuart_bit_count_per_char_t | bitCountPerChar |
lpuart_rx_callback_t | rxCallback |
void * | rxCallbackParam |
lpuart_tx_callback_t | txCallback |
void * | txCallbackParam |
lpuart_transfer_type_t | transferType |
uint8_t | rxDMAChannel |
uint8_t | txDMAChannel |
semaphore_t | rxComplete |
semaphore_t | txComplete |
volatile status_t | transmitStatus |
volatile status_t | receiveStatus |
Runtime state of the LPUART driver.
Note that the caller provides memory for the driver state structures during initialization because the driver does not statically allocate memory.
Implements : lpuart_state_t_Class
Definition at line 84 of file lpuart_driver.h.
lpuart_bit_count_per_char_t bitCountPerChar |
number of bits in a char (8/9/10)
Definition at line 94 of file lpuart_driver.h.
volatile bool isRxBlocking |
True if receive is blocking transaction.
Definition at line 93 of file lpuart_driver.h.
volatile bool isRxBusy |
True if there is an active receive.
Definition at line 91 of file lpuart_driver.h.
volatile bool isTxBlocking |
True if transmit is blocking transaction.
Definition at line 92 of file lpuart_driver.h.
volatile bool isTxBusy |
True if there is an active transmit.
Definition at line 90 of file lpuart_driver.h.
volatile status_t receiveStatus |
Status of last driver receive operation
Definition at line 115 of file lpuart_driver.h.
uint8_t* rxBuff |
The buffer of received data.
Definition at line 87 of file lpuart_driver.h.
lpuart_rx_callback_t rxCallback |
Callback to invoke for data receive Note: when the transmission is interrupt based, the callback is being called upon receiving a byte; when DMA transmission is used, the bytes are copied to the rx buffer by the DMA engine and the callback is called when all the bytes have been transferred.
Definition at line 95 of file lpuart_driver.h.
void* rxCallbackParam |
Receive callback parameter pointer.
Definition at line 100 of file lpuart_driver.h.
semaphore_t rxComplete |
Synchronization object for blocking Rx timeout condition
Definition at line 112 of file lpuart_driver.h.
uint8_t rxDMAChannel |
DMA channel number for DMA-based rx.
Definition at line 109 of file lpuart_driver.h.
volatile uint32_t rxSize |
The remaining number of bytes to be received.
Definition at line 89 of file lpuart_driver.h.
lpuart_transfer_type_t transferType |
Type of LPUART transfer (interrupt/dma based)
Definition at line 107 of file lpuart_driver.h.
volatile status_t transmitStatus |
Status of last driver transmit operation
Definition at line 114 of file lpuart_driver.h.
const uint8_t* txBuff |
The buffer of data being sent.
Definition at line 86 of file lpuart_driver.h.
lpuart_tx_callback_t txCallback |
Callback to invoke for data send Note: when the transmission is interrupt based, the callback is being called upon sending a byte; when DMA transmission is used, the bytes are copied to the tx buffer by the DMA engine and the callback is called when all the bytes have been transferred.
Definition at line 101 of file lpuart_driver.h.
void* txCallbackParam |
Transmit callback parameter pointer.
Definition at line 106 of file lpuart_driver.h.
semaphore_t txComplete |
Synchronization object for blocking Tx timeout condition
Definition at line 113 of file lpuart_driver.h.
uint8_t txDMAChannel |
DMA channel number for DMA-based tx.
Definition at line 110 of file lpuart_driver.h.
volatile uint32_t txSize |
The remaining number of bytes to be transmitted.
Definition at line 88 of file lpuart_driver.h.