rusEFI
The most advanced open source ECU
Loading...
Searching...
No Matches
Data Fields
UARTConfig Struct Reference

Driver configuration structure. More...

#include <hal_uart_lld.h>

Collaboration diagram for UARTConfig:
Collaboration graph
[legend]

Data Fields

uartcb_t txend1_cb
 End of transmission buffer callback.
 
uartcb_t txend2_cb
 Physical end of transmission callback.
 
uartcb_t rxend_cb
 Receive buffer filled callback.
 
uartccb_t rxchar_cb
 Character received while out if the UART_RECEIVE state.
 
uartecb_t rxerr_cb
 Receive error callback.
 
uartcb_t timeout_cb
 Receiver timeout (idle) callback.
 
uint32_t speed
 Bit rate.
 
uint16_t cr1
 Initialization value for the CR1 register.
 
uint16_t cr2
 Initialization value for the CR2 register.
 
uint16_t cr3
 Initialization value for the CR3 register.
 
uarthcb_t rxhalf_cb
 Half-transfer receive buffer callback.
 

Detailed Description

Driver configuration structure.

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

Definition at line 129 of file hal_uart_lld.h.

Field Documentation

◆ cr1

uint16_t UARTConfig::cr1

Initialization value for the CR1 register.

Definition at line 162 of file hal_uart_lld.h.

Referenced by uart_lld_start().

◆ cr2

uint16_t UARTConfig::cr2

Initialization value for the CR2 register.

Definition at line 166 of file hal_uart_lld.h.

Referenced by uart_lld_start().

◆ cr3

uint16_t UARTConfig::cr3

Initialization value for the CR3 register.

Definition at line 170 of file hal_uart_lld.h.

◆ rxchar_cb

uartccb_t UARTConfig::rxchar_cb

Character received while out if the UART_RECEIVE state.

Definition at line 145 of file hal_uart_lld.h.

◆ rxend_cb

uartcb_t UARTConfig::rxend_cb

Receive buffer filled callback.

Definition at line 141 of file hal_uart_lld.h.

◆ rxerr_cb

uartecb_t UARTConfig::rxerr_cb

Receive error callback.

Definition at line 149 of file hal_uart_lld.h.

◆ rxhalf_cb

uarthcb_t UARTConfig::rxhalf_cb

Half-transfer receive buffer callback.

Definition at line 174 of file hal_uart_lld.h.

◆ speed

uint32_t UARTConfig::speed

Bit rate.

Definition at line 158 of file hal_uart_lld.h.

Referenced by uart_lld_start().

◆ timeout_cb

uartcb_t UARTConfig::timeout_cb

Receiver timeout (idle) callback.

Definition at line 153 of file hal_uart_lld.h.

◆ txend1_cb

uartcb_t UARTConfig::txend1_cb

End of transmission buffer callback.

Definition at line 133 of file hal_uart_lld.h.

Referenced by UartTsChannel::start(), and UartDmaTsChannel::start().

◆ txend2_cb

uartcb_t UARTConfig::txend2_cb

Physical end of transmission callback.

Definition at line 137 of file hal_uart_lld.h.


The documentation for this struct was generated from the following file: