ESP32 ADC implementation for the HardFOC system.
More...
Go to the source code of this file.
ESP32 ADC implementation for the HardFOC system.
This file contains the ESP32 ADC implementation that extends the BaseAdc abstract class. It provides full support for ESP32 ADC features including:
- One-shot mode for single conversions
- Continuous mode with DMA for high-speed sampling
- Hardware calibration for accurate voltage measurements
- Digital IIR filters for noise reduction
- Threshold monitors with interrupt callbacks
- Multi-channel support with proper GPIO mapping
- Thread-safe operations with proper resource management
- Comprehensive error handling and diagnostics
- Author
- Nebiyu Tadesse
- Date
- 2025
- Copyright
- HardFOC
- Note
- This implementation is designed for all ESP32 variants using ESP-IDF v5.5+
-
Supports ESP32-C6, ESP32, ESP32-S2, ESP32-S3, ESP32-C3, ESP32-C2, ESP32-H2
-
Each EspAdc instance represents a single ADC unit
-
Higher-level applications should instantiate multiple EspAdc objects for multi-unit boards