S32 SDK
lpuart_driver.c File Reference
#include "lpuart_driver.h"

Go to the source code of this file.

Functions

static status_t LPUART_DRV_StartSendDataUsingInt (uint32_t instance, const uint8_t *txBuff, uint32_t txSize)
 
static void LPUART_DRV_CompleteSendDataUsingInt (uint32_t instance)
 
static status_t LPUART_DRV_StartReceiveDataUsingInt (uint32_t instance, uint8_t *rxBuff, uint32_t rxSize)
 
static void LPUART_DRV_CompleteReceiveDataUsingInt (uint32_t instance)
 
static void LPUART_DRV_PutData (uint32_t instance)
 
static void LPUART_DRV_GetData (uint32_t instance)
 
status_t LPUART_DRV_Init (uint32_t instance, lpuart_state_t *lpuartStatePtr, const lpuart_user_config_t *lpuartUserConfig)
 Initializes an LPUART operation instance. More...
 
status_t LPUART_DRV_Deinit (uint32_t instance)
 Shuts down the LPUART by disabling interrupts and transmitter/receiver. More...
 
lpuart_rx_callback_t LPUART_DRV_InstallRxCallback (uint32_t instance, lpuart_rx_callback_t function, void *callbackParam)
 Installs callback function for the LPUART receive. More...
 
lpuart_tx_callback_t LPUART_DRV_InstallTxCallback (uint32_t instance, lpuart_tx_callback_t function, void *callbackParam)
 Installs callback function for the LPUART transmit. More...
 
status_t LPUART_DRV_SendDataBlocking (uint32_t instance, const uint8_t *txBuff, uint32_t txSize, uint32_t timeout)
 Sends data out through the LPUART module using a blocking method. More...
 
status_t LPUART_DRV_SendData (uint32_t instance, const uint8_t *txBuff, uint32_t txSize)
 Sends data out through the LPUART module using a non-blocking method. This enables an a-sync method for transmitting data. When used with a non-blocking receive, the LPUART can perform a full duplex operation. Non-blocking means that the function returns immediately. The application has to get the transmit status to know when the transmit is complete. More...
 
status_t LPUART_DRV_GetTransmitStatus (uint32_t instance, uint32_t *bytesRemaining)
 Returns whether the previous transmit is complete. More...
 
status_t LPUART_DRV_AbortSendingData (uint32_t instance)
 Terminates a non-blocking transmission early. More...
 
status_t LPUART_DRV_ReceiveDataBlocking (uint32_t instance, uint8_t *rxBuff, uint32_t rxSize, uint32_t timeout)
 Gets data from the LPUART module by using a blocking method. Blocking means that the function does not return until the receive is complete. More...
 
status_t LPUART_DRV_ReceiveData (uint32_t instance, uint8_t *rxBuff, uint32_t rxSize)
 Gets data from the LPUART module by using a non-blocking method. This enables an a-sync method for receiving data. When used with a non-blocking transmission, the LPUART can perform a full duplex operation. Non-blocking means that the function returns immediately. The application has to get the receive status to know when the receive is complete. More...
 
status_t LPUART_DRV_GetReceiveStatus (uint32_t instance, uint32_t *bytesRemaining)
 Returns whether the previous receive is complete. More...
 
status_t LPUART_DRV_AbortReceivingData (uint32_t instance)
 Terminates a non-blocking receive early. More...
 
void LPUART_DRV_IRQHandler (uint32_t instance)
 

Variables

lpuart_state_tg_lpuartStatePtr [LPUART_INSTANCE_COUNT] = {NULL}
 
const isr_t g_lpuartIsr [LPUART_INSTANCE_COUNT]
 Table to save LPUART ISRs. More...
 

Function Documentation

static void LPUART_DRV_CompleteReceiveDataUsingInt ( uint32_t  instance)
static

Definition at line 1111 of file lpuart_driver.c.

static void LPUART_DRV_CompleteSendDataUsingInt ( uint32_t  instance)
static

Definition at line 932 of file lpuart_driver.c.

static void LPUART_DRV_GetData ( uint32_t  instance)
static

Definition at line 1229 of file lpuart_driver.c.

void LPUART_DRV_IRQHandler ( uint32_t  instance)

Definition at line 724 of file lpuart_driver.c.

static void LPUART_DRV_PutData ( uint32_t  instance)
static

Definition at line 1187 of file lpuart_driver.c.

static status_t LPUART_DRV_StartReceiveDataUsingInt ( uint32_t  instance,
uint8_t *  rxBuff,
uint32_t  rxSize 
)
static

Definition at line 1007 of file lpuart_driver.c.

static status_t LPUART_DRV_StartSendDataUsingInt ( uint32_t  instance,
const uint8_t *  txBuff,
uint32_t  txSize 
)
static

Definition at line 837 of file lpuart_driver.c.

Variable Documentation

const isr_t g_lpuartIsr[LPUART_INSTANCE_COUNT]

Table to save LPUART ISRs.

Definition at line 98 of file lpuart_common.c.

lpuart_state_t* g_lpuartStatePtr[LPUART_INSTANCE_COUNT] = {NULL}

Definition at line 88 of file lpuart_driver.c.