25 #ifndef HAL_UART_LLD_H    26 #define HAL_UART_LLD_H    28 #if (HAL_USE_UART == TRUE) || defined(__DOXYGEN__)    47 #if !defined(PLATFORM_UART_USE_UART1) || defined(__DOXYGEN__)    48 #define PLATFORM_UART_USE_UART1             FALSE   146 #if (UART_USE_WAIT == TRUE) || defined(__DOXYGEN__)   160 #if (UART_USE_MUTUAL_EXCLUSION == TRUE) || defined(__DOXYGEN__)   166 #if defined(UART_DRIVER_EXT_FIELDS)   167   UART_DRIVER_EXT_FIELDS
   180 #if (PLATFORM_UART_USE_UART1 == TRUE) && !defined(__DOXYGEN__) const UARTConfig * config
Current configuration data. 
 
void(* uartecb_t)(UARTDriver *uartp, uartflags_t e)
Receive error UART notification callback type. 
 
void uart_lld_start(UARTDriver *uartp)
Configures and activates the UART peripheral. 
 
bool early
Synchronization flag for transmit operations. 
 
uartcb_t txend1_cb
End of transmission buffer callback. 
 
size_t uart_lld_stop_receive(UARTDriver *uartp)
Stops any ongoing receive operation. 
 
thread_reference_t threadrx
Waiting thread on RX. 
 
uartstate_t
Driver state machine possible states. 
 
size_t uart_lld_stop_send(UARTDriver *uartp)
Stops any ongoing transmission. 
 
void(* uartcb_t)(UARTDriver *uartp)
Generic UART notification callback type. 
 
uarttxstate_t txstate
Transmitter state. 
 
void uart_lld_stop(UARTDriver *uartp)
Deactivates the UART peripheral. 
 
uartcb_t txend2_cb
Physical end of transmission callback. 
 
void uart_lld_start_receive(UARTDriver *uartp, size_t n, void *rxbuf)
Starts a receive operation on the UART peripheral. 
 
uarttxstate_t
Transmitter state machine states. 
 
uartecb_t rxerr_cb
Receive error callback. 
 
void(* uartccb_t)(UARTDriver *uartp, uint16_t c)
Character received UART notification callback type. 
 
void uart_lld_start_send(UARTDriver *uartp, size_t n, const void *txbuf)
Starts a transmission on the UART peripheral. 
 
void uart_lld_init(void)
Low level UART driver initialization. 
 
uint32_t uartflags_t
UART driver condition flags type. 
 
uartrxstate_t
Receiver state machine states. 
 
uartrxstate_t rxstate
Receiver state. 
 
uartcb_t rxend_cb
Receive buffer filled callback. 
 
void * thread_reference_t
Type of a thread reference. 
 
uartstate_t state
Driver state. 
 
UARTDriver UARTD1
UART1 driver identifier. 
 
Driver configuration structure. 
 
uartccb_t rxchar_cb
Character received while out if the UART_RECEIVE state. 
 
thread_reference_t threadtx
Waiting thread on TX. 
 
uint32_t mutex_t
Type of a mutex. 
 
Structure representing an UART driver. 
 
mutex_t mutex
Mutex protecting the peripheral.