HardFOC Vortex V1 HAL
Unified HAL API for the HardFOC Vortex motor-control platform (ESP32-C6, TMC9660)
Loading...
Searching...
No Matches
Classes | Functions
AdcManager.h File Reference

ADC management for the HardFOC Vortex V1 platform. More...

#include <array>
#include <atomic>
#include <cstdint>
#include <optional>
#include <string_view>
#include "base/BaseAdc.h"
#include "RtosMutex.h"
#include "handlers/tmc9660/Tmc9660AdcWrapper.h"
#include "core/hf-core-drivers/internal/hf-pincfg/src/hf_functional_pin_config_vortex_v1.hpp"
Include dependency graph for AdcManager.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  AdcEntry
 A single ADC channel entry in the fixed-size registry. More...
 
struct  AdcSystemDiagnostics
 ADC system diagnostics (compatible with example code). More...
 
class  AdcManager
 Singleton manager for all analogue-to-digital channels on Vortex V1. More...
 

Functions

AdcManager & GetAdcManager () noexcept
 Convenience accessor — equivalent to AdcManager::GetInstance().
 

Detailed Description

ADC management for the HardFOC Vortex V1 platform.

The Vortex board uses TMC9660-hosted ADC channels exclusively (no ESP32 internal ADC channels are active). All 15 functional ADC channels are routed through a single Tmc9660AdcWrapper that delegates to the MotorController-owned Tmc9660Handler.

Follows the Flux ownership pattern: fixed-size array of AdcEntry structs (no heap unordered_map), single RtosMutex, and the TMC9660 wrapper in place (std::optional): no heap.

Version
2.0

Function Documentation

◆ GetAdcManager()

AdcManager & GetAdcManager ( )
inlinenoexcept

Convenience accessor — equivalent to AdcManager::GetInstance().

Returns
Reference to the singleton AdcManager.
Here is the call graph for this function: