idfxx 1.0.0
Modern C++23 components for ESP-IDF
Loading...
Searching...
No Matches
UART Types

UART port identification. More...

Namespaces

namespace  idfxx
 

Enumerations

enum class  idfxx::uart_port : int {
  idfxx::uart_port::uart0 = UART_NUM_0 ,
  idfxx::uart_port::uart1 = UART_NUM_1
}
 Identifies a UART port. More...
 

Functions

std::string idfxx::to_string (uart_port p)
 Returns a string representation of a UART port identifier.
 

Detailed Description

UART port identification.

Enumeration Type Documentation

◆ uart_port

Identifies a UART port.

Note
Only ports available on the target chip are defined.
// Use UART port 0
Enumerator
uart0 
uart1 

Definition at line 33 of file uart.hpp.

Function Documentation

◆ to_string()

std::string idfxx::to_string ( uart_port  p)
inline

Returns a string representation of a UART port identifier.

Parameters
pThe port identifier to convert.
Returns
"UART0", "UART1", etc., or "unknown(N)" for unrecognized values.

Definition at line 56 of file uart.hpp.

References idfxx::uart0, and idfxx::uart1.