Lines Matching full:adc

12 #include "driver/adc.h"
31 * @brief Structure storing characteristics of an ADC
36 adc_unit_t adc_num; /**< ADC number*/
37 adc_atten_t atten; /**< ADC attenuation*/
38 adc_bits_width_t bit_width; /**< ADC bit width */
39 uint32_t coeff_a; /**< Gradient of ADC-Voltage curve*/
40 uint32_t coeff_b; /**< Offset of ADC-Voltage curve*/
44 uint8_t version; /**< ADC Calibration */
48 * @brief Checks if ADC calibration values are burned into eFuse
50 * This function checks if ADC reference voltage or Two Point values have been
65 * @brief Characterize an ADC at a particular attenuation
67 * This function will characterize the ADC at a particular attenuation and generate
68 * the ADC-Voltage curve in the form of [y = coeff_a * x + coeff_b].
77 * @param[in] adc_num ADC to characterize (ADC_UNIT_1 or ADC_UNIT_2)
79 * @param[in] bit_width Bit width configuration of ADC
80 …* @param[in] default_vref Default ADC reference voltage in mV (Only in ESP32, used if eFuse v…
81 * @param[out] chars Pointer to empty structure used to store ADC characteristics
95 * @brief Convert an ADC reading to voltage in mV
97 * This function converts an ADC reading to a voltage in mV based on the ADC's
103 * @param[in] adc_reading ADC reading
104 * @param[in] chars Pointer to initialized structure containing ADC characteristics
111 * @brief Reads an ADC and converts the reading to a voltage in mV
113 * This function reads an ADC then converts the raw reading to a voltage in mV
114 * based on the characteristics provided. The ADC that is read is also
120 * @param[in] channel ADC Channel to read
121 * @param[in] chars Pointer to initialized ADC characteristics structure
125 * - ESP_OK: ADC read and converted to mV