|
HF Interface Wrapper 0.1.0-dev
Embedded C++ hardware abstraction layer
|
Platform-agnostic UART configuration for STM32. More...
#include <StmTypes.h>
Public Member Functions | |
| hf_stm32_uart_config_t () noexcept | |
| hf_stm32_uart_config_t (UART_HandleTypeDef *handle, hf_u32_t timeout_ms=1000) noexcept | |
Public Attributes | |
| UART_HandleTypeDef * | hal_handle |
| Pointer to CubeMX-generated UART handle. | |
| hf_u32_t | default_timeout_ms |
| Default timeout (ms) | |
| bool | use_dma_tx |
| Use DMA for TX. | |
| bool | use_dma_rx |
| Use DMA for RX. | |
| hf_u16_t | rx_buffer_size |
| Receive ring buffer size. | |
| hf_u16_t | tx_buffer_size |
| Transmit buffer size. | |
Platform-agnostic UART configuration for STM32.
|
inlinenoexcept |
|
inlineexplicitnoexcept |
| hf_u32_t hf_stm32_uart_config_t::default_timeout_ms |
Default timeout (ms)
| UART_HandleTypeDef* hf_stm32_uart_config_t::hal_handle |
Pointer to CubeMX-generated UART handle.
| hf_u16_t hf_stm32_uart_config_t::rx_buffer_size |
Receive ring buffer size.
| hf_u16_t hf_stm32_uart_config_t::tx_buffer_size |
Transmit buffer size.
| bool hf_stm32_uart_config_t::use_dma_rx |
Use DMA for RX.
| bool hf_stm32_uart_config_t::use_dma_tx |
Use DMA for TX.