MCUXpresso SDK API Reference Manual  Rev. 0
NXP Semiconductors
 All Data Structures Functions Variables Typedefs Enumerations Enumerator Groups Pages
Serial Port Uart

Read Guidance

Data Structures

struct  serial_port_uart_config_t
 serial port uart config struct More...
 

Macros

#define SERIAL_PORT_UART_HANDLE_SIZE   (HAL_UART_HANDLE_SIZE)
 serial port uart handle size
 

Enumerations

enum  serial_port_uart_parity_mode_t {
  kSerialManager_UartParityDisabled = 0x0U,
  kSerialManager_UartParityEven = 0x1U,
  kSerialManager_UartParityOdd = 0x2U
}
 serial port uart parity mode More...
 
enum  serial_port_uart_stop_bit_count_t {
  kSerialManager_UartOneStopBit = 0U,
  kSerialManager_UartTwoStopBit = 1U
}
 serial port uart stop bit count More...
 

Data Structure Documentation

struct serial_port_uart_config_t

Data Fields

uint32_t clockRate
 clock rate
 
uint32_t baudRate
 baud rate
 
serial_port_uart_parity_mode_t parityMode
 Parity mode, disabled (default), even, odd.
 
serial_port_uart_stop_bit_count_t stopBitCount
 Number of stop bits, 1 stop bit (default) or 2 stop bits.
 
uint8_t instance
 Instance (0 - UART0, 1 - UART1, ...), detail information please refer to the SOC corresponding RM. More...
 
uint8_t enableRx
 Enable RX.
 
uint8_t enableTx
 Enable TX.
 

Field Documentation

uint8_t serial_port_uart_config_t::instance

Enumeration Type Documentation

Enumerator
kSerialManager_UartParityDisabled 

Parity disabled.

kSerialManager_UartParityEven 

Parity even enabled.

kSerialManager_UartParityOdd 

Parity odd enabled.

Enumerator
kSerialManager_UartOneStopBit 

One stop bit.

kSerialManager_UartTwoStopBit 

Two stop bits.