ChibiOS/HAL  6.1.0
hal_uart_lld.h File Reference

PLATFORM UART subsystem low level driver header. More...

Go to the source code of this file.

Data Structures

struct  UARTConfig
 Driver configuration structure. More...
 
struct  UARTDriver
 Structure representing an UART driver. More...
 

Macros

PLATFORM configuration options
#define PLATFORM_UART_USE_UART1   FALSE
 UART driver enable switch. More...
 

Typedefs

typedef uint32_t uartflags_t
 UART driver condition flags type. More...
 
typedef struct UARTDriver UARTDriver
 Type of structure representing an UART driver. More...
 
typedef void(* uartcb_t) (UARTDriver *uartp)
 Generic UART notification callback type. More...
 
typedef void(* uartccb_t) (UARTDriver *uartp, uint16_t c)
 Character received UART notification callback type. More...
 
typedef void(* uartecb_t) (UARTDriver *uartp, uartflags_t e)
 Receive error UART notification callback type. More...
 

Functions

void uart_lld_init (void)
 Low level UART driver initialization. More...
 
void uart_lld_start (UARTDriver *uartp)
 Configures and activates the UART peripheral. More...
 
void uart_lld_stop (UARTDriver *uartp)
 Deactivates the UART peripheral. More...
 
void uart_lld_start_send (UARTDriver *uartp, size_t n, const void *txbuf)
 Starts a transmission on the UART peripheral. More...
 
size_t uart_lld_stop_send (UARTDriver *uartp)
 Stops any ongoing transmission. More...
 
void uart_lld_start_receive (UARTDriver *uartp, size_t n, void *rxbuf)
 Starts a receive operation on the UART peripheral. More...
 
size_t uart_lld_stop_receive (UARTDriver *uartp)
 Stops any ongoing receive operation. More...
 

Detailed Description

PLATFORM UART subsystem low level driver header.

Definition in file hal_uart_lld.h.