PMSIS API
|
UART device configuration structure. More...
Data Fields | |
uint32_t | baudrate_bps |
uint8_t | stop_bit_count |
uint8_t | parity_mode |
uint8_t | word_size |
uint8_t | enable_rx |
uint8_t | enable_tx |
uint8_t | uart_id |
uint8_t | use_ctrl_flow |
uint8_t | is_usart |
This structure is used to pass the desired UART configuration to the runtime when opening the device.
uint32_t pi_uart_conf::baudrate_bps |
Required baudrate, in baud per second.
uint8_t pi_uart_conf::enable_rx |
1 to activate reception, 0 to deactivate it.
uint8_t pi_uart_conf::enable_tx |
1 to activate transmission, 0 to deactivate it.
uint8_t pi_uart_conf::is_usart |
1 to activate usart
uint8_t pi_uart_conf::parity_mode |
1 to activate it, 0 to deactivate it.
uint8_t pi_uart_conf::stop_bit_count |
Number of stop bits, 1 stop bit (default) or 2 stop bits
uint8_t pi_uart_conf::uart_id |
Uart interface ID.
uint8_t pi_uart_conf::use_ctrl_flow |
1 to activate control flow.
uint8_t pi_uart_conf::word_size |
Word size, in bits.