HF Interface Wrapper 0.1.0-dev
Embedded C++ hardware abstraction layer
Loading...
Searching...
No Matches
EspUart.cpp File Reference

Implementation of ESP32 UART controller for the HardFOC system. More...

#include "EspUart.h"
#include <algorithm>
#include <cstring>
#include "driver/gpio.h"
#include "driver/uart.h"
#include "esp_err.h"
#include "esp_log.h"
#include "hal/uart_hal.h"
#include "soc/uart_reg.h"
Include dependency graph for EspUart.cpp:

Functions

bool IsValidUartPort (hf_port_num_t port_number) noexcept
 
bool GetDefaultUartPins (hf_port_num_t port_number, hf_pin_num_t &tx_pin, hf_pin_num_t &rx_pin, hf_pin_num_t &rts_pin, hf_pin_num_t &cts_pin) noexcept
 

Variables

static const char * TAG = "EspUart"
 

Detailed Description

Implementation of ESP32 UART controller for the HardFOC system.

This file provides the implementation for UART communication using the ESP32's built-in UART peripheral. All platform-specific types and implementations are isolated through EspTypes_UART.h. The implementation supports multiple ports, configurable baud rates and data formats, hardware flow control, interrupt-driven operation, pattern detection, and comprehensive error handling.

Author
Nebiyu Tadesse
Date
2025

Function Documentation

◆ GetDefaultUartPins()

bool GetDefaultUartPins ( hf_port_num_t port_number,
hf_pin_num_t & tx_pin,
hf_pin_num_t & rx_pin,
hf_pin_num_t & rts_pin,
hf_pin_num_t & cts_pin )
noexcept

◆ IsValidUartPort()

bool IsValidUartPort ( hf_port_num_t port_number)
noexcept

Variable Documentation

◆ TAG

const char* TAG = "EspUart"
static