ChibiOS/HAL  6.1.0
UARTDriver Struct Reference

Structure representing an UART driver. More...

#include <hal_uart_lld.h>

Collaboration diagram for UARTDriver:
Collaboration graph

Data Fields

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

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

uarttxstate_t UARTDriver::txstate
uartrxstate_t UARTDriver::rxstate
const UARTConfig* UARTDriver::config

Current configuration data.

Definition at line 145 of file hal_uart_lld.h.

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

bool UARTDriver::early

Synchronization flag for transmit operations.

Definition at line 150 of file hal_uart_lld.h.

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

thread_reference_t UARTDriver::threadrx

Waiting thread on RX.

Definition at line 154 of file hal_uart_lld.h.

Referenced by uartObjectInit(), and uartReceiveTimeout().

thread_reference_t UARTDriver::threadtx

Waiting thread on TX.

Definition at line 158 of file hal_uart_lld.h.

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

mutex_t UARTDriver::mutex

Mutex protecting the peripheral.

Definition at line 164 of file hal_uart_lld.h.

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