12 #ifndef FSL_UART_DRIVER_H_
13 #define FSL_UART_DRIVER_H_
46 #define UART_PEX_WRITE_EVENT_SUCCESS (1)
47 #define UART_PEX_WRITE_EVENT_ERROR (UART_PEX_WRITE_EVENT_SUCCESS << 1)
48 #define UART_PEX_READ_EVENT_SUCCESS (UART_PEX_WRITE_EVENT_ERROR << 1)
49 #define UART_PEX_READ_EVENT_ERROR (UART_PEX_READ_EVENT_SUCCESS << 1)
71 #if defined(__cplusplus)
121 uint32_t txByteCount, uint32_t timeout);
140 uint32_t txByteCount);
191 uint32_t requestedByteCount, uint32_t timeout);
210 uint32_t requestedByteCount);
213 #if defined(__cplusplus)
User configuration structure for UART driver.
uart_status_t uart_receive_data_async(uart_state_t *uartState, uint8_t *rxBuffer, uint32_t requestedByteCount)
This function gets (receives) data from the UART module using a non-blocking method.
uart_status_t uart_get_transmit_status(uart_state_t *uartState, uint32_t *bytesTransmitted)
This function returns whether the previous UART transmit has finished.
enum _uart_stop_bit_count uart_stop_bit_count_t
UART number of stop bits.
uart_parity_mode_t parityMode
uart_status_t uart_get_receive_status(uart_state_t *uartState, uint32_t *bytesReceived)
This function returns whether the previous UART receive is complete.
enum _uart_parity_mode uart_parity_mode_t
UART parity mode.
Runtime state of the UART driver.
enum _uart_bit_count_per_char uart_bit_count_per_char_t
UART number of bits in a character.
uart_status_t uart_send_data_async(uart_state_t *uartState, const uint8_t *sendBuffer, uint32_t txByteCount)
This function sends (transmits) data through the UART module using a non-blocking method...
uart_status_t uart_init(uint32_t uartInstance, uart_state_t *uartState, const uart_user_config_t *uartUserConfig)
This function initializes a UART instance for operation.
enum _uart_status uart_status_t
Error codes for the UART driver.
uart_bit_count_per_char_t bitCountPerChar
uart_status_t uart_receive_data(uart_state_t *uartState, uint8_t *rxBuffer, uint32_t requestedByteCount, uint32_t timeout)
This function gets (receives) data from the UART module using a blocking method.
uart_status_t uart_send_data(uart_state_t *uartState, const uint8_t *sendBuffer, uint32_t txByteCount, uint32_t timeout)
This function sends (transmits) data out through the UART module using a blocking method...
uart_stop_bit_count_t stopBitCount
LDD_TDeviceData * pDeviceHandle
LWEVENT_STRUCT uartEventHandler
fsl_uart_hal.h defines structures and types for the i2c master HAL layer.
struct UartUserConfig uart_user_config_t
User configuration structure for UART driver.
struct UartState uart_state_t
Runtime state of the UART driver.