ChibiOS/HAL 9.0.0
hal_uart_driver Struct Reference

Structure representing an UART driver. More...

#include <hal_uart_lld.h>

Collaboration diagram for hal_uart_driver:
Collaboration graph

Data Fields

uartstate_t state
 Driver state.
uarttxstate_t txstate
 Transmitter state.
uartrxstate_t rxstate
 Receiver state.
const UARTConfigconfig
 Current configuration data.
bool early
 Synchronization flag for transmit operations.
thread_reference_t threadrx
 Waiting thread on RX.
thread_reference_t threadtx
 Waiting thread on TX.
mutex_t mutex
 Mutex protecting the peripheral.

Detailed Description

Structure representing an UART driver.

Note
Implementations may extend this structure to contain more, architecture dependent, fields.

Definition at line 129 of file hal_uart_lld.h.

Field Documentation

◆ state

◆ txstate

uarttxstate_t hal_uart_driver::txstate

◆ rxstate

uartrxstate_t hal_uart_driver::rxstate

◆ config

const UARTConfig* hal_uart_driver::config

Current configuration data.

Definition at line 145 of file hal_uart_lld.h.

Referenced by uartObjectInit(), uartStart(), and uartStop().

◆ early

bool hal_uart_driver::early

Synchronization flag for transmit operations.

Definition at line 150 of file hal_uart_lld.h.

Referenced by uartObjectInit(), uartSendFullTimeout(), and uartSendTimeout().

◆ threadrx

thread_reference_t hal_uart_driver::threadrx

Waiting thread on RX.

Definition at line 154 of file hal_uart_lld.h.

Referenced by uartObjectInit(), and uartReceiveTimeout().

◆ threadtx

thread_reference_t hal_uart_driver::threadtx

Waiting thread on TX.

Definition at line 158 of file hal_uart_lld.h.

Referenced by uartObjectInit(), uartSendFullTimeout(), and uartSendTimeout().

◆ mutex

mutex_t hal_uart_driver::mutex

Mutex protecting the peripheral.

Definition at line 164 of file hal_uart_lld.h.

Referenced by uartAcquireBus(), uartObjectInit(), and uartReleaseBus().