S32 SDK
uart_pal.c File Reference
#include "uart_pal.h"
#include "device_registers.h"

Go to the source code of this file.

Functions

static uint8_t UART_AllocateState (bool *isAllocated, uart_instance_t *instanceMapping, uart_instance_t instance, uint8_t numberOfinstances)
 
static void UART_FreeState (bool *isAllocated, uart_instance_t *instanceMapping, uart_instance_t instance, uint8_t numberOfinstances)
 
status_t UART_Init (uart_instance_t instance, uart_user_config_t *config)
 Initializes the UART module. More...
 
status_t UART_Deinit (uart_instance_t instance)
 De-initializes the UART module. More...
 
status_t UART_SetBaudRate (uart_instance_t instance, uint32_t desiredBaudRate)
 Configures the UART baud rate. More...
 
status_t UART_GetBaudRate (uart_instance_t instance, uint32_t *configuredBaudRate)
 Returns the UART baud rate. More...
 
status_t UART_SendDataBlocking (uart_instance_t instance, const uint8_t *txBuff, uint32_t txSize, uint32_t timeout)
 Perform a blocking UART transmission. More...
 
status_t UART_SendData (uart_instance_t instance, const uint8_t *txBuff, uint32_t txSize)
 Perform a non-blocking UART transmission. More...
 
status_t UART_AbortSendingData (uart_instance_t instance)
 Terminates a non-blocking transmission early. More...
 
status_t UART_GetTransmitStatus (uart_instance_t instance, uint32_t *bytesRemaining)
 Get the status of the current non-blocking UART transmission. More...
 
status_t UART_ReceiveDataBlocking (uart_instance_t instance, uint8_t *rxBuff, uint32_t rxSize, uint32_t timeout)
 Perform a blocking UART reception. More...
 
status_t UART_ReceiveData (uart_instance_t instance, uint8_t *rxBuff, uint32_t rxSize)
 Perform a non-blocking UART reception. More...
 
status_t UART_AbortReceivingData (uart_instance_t instance)
 Terminates a non-blocking receive early. More...
 
status_t UART_GetReceiveStatus (uart_instance_t instance, uint32_t *bytesRemaining)
 Get the status of the current non-blocking UART reception. More...
 

Function Documentation

static uint8_t UART_AllocateState ( bool *  isAllocated,
uart_instance_t instanceMapping,
uart_instance_t  instance,
uint8_t  numberOfinstances 
)
static

Definition at line 74 of file uart_pal.c.

static void UART_FreeState ( bool *  isAllocated,
uart_instance_t instanceMapping,
uart_instance_t  instance,
uint8_t  numberOfinstances 
)
static

Definition at line 99 of file uart_pal.c.