S32 SDK
flexio_uart_driver.h File Reference
#include <stddef.h>
#include <stdbool.h>
#include "device_registers.h"
#include "flexio.h"
#include "edma_driver.h"
#include "callbacks.h"

Go to the source code of this file.

Data Structures

struct  flexio_uart_user_config_t
 Driver configuration structure. More...
 
struct  flexio_uart_state_t
 Driver internal context structure. More...
 

Enumerations

enum  flexio_uart_driver_direction_t { FLEXIO_UART_DIRECTION_TX = 0x01U, FLEXIO_UART_DIRECTION_RX = 0x00U }
 flexio_uart driver direction (tx or rx) More...
 

Functions

FLEXIO_UART Driver
status_t FLEXIO_UART_DRV_Init (uint32_t instance, const flexio_uart_user_config_t *userConfigPtr, flexio_uart_state_t *state)
 Initialize the FLEXIO_UART driver. More...
 
status_t FLEXIO_UART_DRV_Deinit (flexio_uart_state_t *state)
 De-initialize the FLEXIO_UART driver. More...
 
status_t FLEXIO_UART_DRV_SetConfig (flexio_uart_state_t *state, uint32_t baudRate, uint8_t bitCount)
 Set the baud rate and bit width for any subsequent UART communication. More...
 
status_t FLEXIO_UART_DRV_GetBaudRate (flexio_uart_state_t *state, uint32_t *baudRate)
 Get the currently configured baud rate. More...
 
status_t FLEXIO_UART_DRV_SendDataBlocking (flexio_uart_state_t *state, const uint8_t *txBuff, uint32_t txSize, uint32_t timeout)
 Perform a blocking UART transmission. More...
 
status_t FLEXIO_UART_DRV_SendData (flexio_uart_state_t *state, const uint8_t *txBuff, uint32_t txSize)
 Perform a non-blocking UART transmission. More...
 
status_t FLEXIO_UART_DRV_ReceiveDataBlocking (flexio_uart_state_t *state, uint8_t *rxBuff, uint32_t rxSize, uint32_t timeout)
 Perform a blocking UART reception. More...
 
status_t FLEXIO_UART_DRV_ReceiveData (flexio_uart_state_t *state, uint8_t *rxBuff, uint32_t rxSize)
 Perform a non-blocking UART reception. More...
 
status_t FLEXIO_UART_DRV_GetStatus (flexio_uart_state_t *state, uint32_t *bytesRemaining)
 Get the status of the current non-blocking UART transfer. More...
 
status_t FLEXIO_UART_DRV_TransferAbort (flexio_uart_state_t *state)
 Aborts a non-blocking UART transfer. More...
 
status_t FLEXIO_UART_DRV_SetRxBuffer (flexio_uart_state_t *state, uint8_t *rxBuff, uint32_t rxSize)
 Provide a buffer for receiving data. More...
 
status_t FLEXIO_UART_DRV_SetTxBuffer (flexio_uart_state_t *state, const uint8_t *txBuff, uint32_t txSize)
 Provide a buffer for transmitting data. More...