components/esp_hal_ana_conv/README.md
[!NOTE] This component is currently in beta. Its API, behavior, and compatibility may change at any time and without notice; backward compatibility is not guaranteed. Use caution when integrating into production systems.
The esp_hal_ana_conv component provides a Hardware Abstraction Layer for analog conversion related peripherals across all ESP-IDF supported targets. This HAL currently supports Analog-to-Digital Converter (ADC), Digital-to-Analog Converter (DAC), Temperature Sensor and other analog conversion related peripherals. The HAL enables analog signal acquisition, generation, monitoring, and temperature measurement capabilities.
The analog conversion HAL is structured in two main sub-layers:
HAL Layer (Upper): Defines the operational steps and data structures required to control analog conversion peripherals (e.g., initialization, channel configuration, conversion control, DMA setup, sensor reading).
Low-Level Layer (Bottom): Serves as a translation layer between the HAL and the register files defined in the soc component, handling target-specific register configurations.
This HAL supports various ADC controller types depending on the ESP chip:
This HAL supports various DAC controller types depending on the ESP chip:
This HAL supports temperature sensor functionality depending on the ESP chip:
The HAL functions primarily serve ESP-IDF peripheral drivers such as esp_adc, esp_driver_dac, and esp_driver_tsens.
Advanced developers can use these interfaces directly when implementing custom drivers, with the understanding that API stability is not guaranteed.
soc: Provides chip-specific register definitionshal: Core hardware abstraction utilities and macros