Sound Byte Libs 1ee2ca6
C++ firmware library for audio applications on 32-bit ARM Cortex-M processors
Loading...
Searching...
No Matches
Public Attributes | List of all members
sbl::UartHandle Struct Reference

UART peripheral handle. More...

#include <handle.hpp>

Collaboration diagram for sbl::UartHandle:

Public Attributes

uint32_t peripheral
 UART peripheral number (e.g., 1 for USART1)
 
uint32_t tx_port
 TX GPIO port number.
 
uint32_t tx_pin
 TX GPIO pin number.
 
uint32_t tx_af
 TX alternate function (STM32), 0 for simpler MCUs.
 
uint32_t rx_port
 RX GPIO port number.
 
uint32_t rx_pin
 RX GPIO pin number.
 
uint32_t rx_af
 RX alternate function (STM32), 0 for simpler MCUs.
 
uint32_t baud
 Default baud rate.
 

Detailed Description

UART peripheral handle.

Represents a UART configuration as resolved from hardware manifests. Includes peripheral number, pin mappings, and default baud rate.

Examples:

Definition at line 28 of file handle.hpp.

Member Data Documentation

◆ baud

uint32_t sbl::UartHandle::baud

Default baud rate.

Definition at line 36 of file handle.hpp.

◆ peripheral

uint32_t sbl::UartHandle::peripheral

UART peripheral number (e.g., 1 for USART1)

Definition at line 29 of file handle.hpp.

◆ rx_af

uint32_t sbl::UartHandle::rx_af

RX alternate function (STM32), 0 for simpler MCUs.

Definition at line 35 of file handle.hpp.

◆ rx_pin

uint32_t sbl::UartHandle::rx_pin

RX GPIO pin number.

Definition at line 34 of file handle.hpp.

◆ rx_port

uint32_t sbl::UartHandle::rx_port

RX GPIO port number.

Definition at line 33 of file handle.hpp.

◆ tx_af

uint32_t sbl::UartHandle::tx_af

TX alternate function (STM32), 0 for simpler MCUs.

Definition at line 32 of file handle.hpp.

◆ tx_pin

uint32_t sbl::UartHandle::tx_pin

TX GPIO pin number.

Definition at line 31 of file handle.hpp.

◆ tx_port

uint32_t sbl::UartHandle::tx_port

TX GPIO port number.

Definition at line 30 of file handle.hpp.


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