S32 SDK
uart_pal.h File Reference
#include "uart_pal_cfg.h"
#include "uart_pal_mapping.h"
#include "status.h"
#include "callbacks.h"

Go to the source code of this file.

Data Structures

struct  uart_user_config_t
 

Enumerations

enum  uart_bit_count_per_char_t {
  UART_7_BITS_PER_CHAR = 0x0U, UART_8_BITS_PER_CHAR = 0x1U, UART_9_BITS_PER_CHAR = 0x2U, UART_10_BITS_PER_CHAR = 0x3U,
  UART_15_BITS_PER_CHAR = 0x4U, UART_16_BITS_PER_CHAR = 0x5U
}
 Defines the number of bits in a character. More...
 
enum  uart_transfer_type_t { UART_USING_DMA = 0U, UART_USING_INTERRUPTS = 1U }
 Defines the transfer type. More...
 
enum  uart_parity_mode_t { UART_PARITY_DISABLED = 0x0U, UART_PARITY_EVEN = 0x2U, UART_PARITY_ODD = 0x3U }
 Defines the parity mode. More...
 
enum  uart_stop_bit_count_t { UART_ONE_STOP_BIT = 0x0U, UART_TWO_STOP_BIT = 0x1U }
 Defines the number of stop bits. More...
 

Functions

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...