rusEFI
The most advanced open source ECU
|
KINETIS UART subsystem low level driver header.
Definition in file hal_uart_lld.h.
Data Structures | |
struct | UARTConfig |
Driver configuration structure. More... | |
struct | UARTDriver |
Structure representing an UART driver. More... | |
Typedefs | |
typedef uint32_t | uartflags_t |
UART driver condition flags type. | |
typedef struct UARTDriver | UARTDriver |
Structure representing an UART driver. | |
typedef void(* | uartcb_t) (UARTDriver *uartp) |
Generic UART notification callback type. | |
typedef void(* | uartccb_t) (UARTDriver *uartp, uint16_t c) |
Character received UART notification callback type. | |
typedef void(* | uartecb_t) (UARTDriver *uartp, uartflags_t e) |
Receive error UART notification callback type. | |
typedef void(* | uarthcb_t) (UARTDriver *uartp, uartflags_t full) |
Receive Half-transfer UART notification callback type. | |
Functions | |
void | uart_lld_init (void) |
Low level UART driver initialization. | |
void | uart_lld_start (UARTDriver *uartp) |
Configures and activates the UART peripheral. | |
void | uart_lld_stop (UARTDriver *uartp) |
Deactivates the UART peripheral. | |
void | uart_lld_start_send (UARTDriver *uartp, size_t n, const void *txbuf) |
Starts a transmission on the UART peripheral. | |
size_t | uart_lld_stop_send (UARTDriver *uartp) |
Stops any ongoing transmission. | |
void | uart_lld_start_receive (UARTDriver *uartp, size_t n, void *rxbuf) |
Starts a receive operation on the UART peripheral. | |
size_t | uart_lld_stop_receive (UARTDriver *uartp) |
Stops any ongoing receive operation. | |
void | uart_lld_blocking_send (UARTDriver *uartp, size_t n, const void *txbuf) |
Variables | |
UARTDriver | UARTD1 |
UART1 driver identifier. | |
UARTDriver | UARTD2 |
UARTDriver | UARTD3 |