SRA Board Components
ESP-IDF component for SRA Board
|
#include "adc.h"
Functions | |
esp_err_t | config_adc1 (adc_obj_t *adc_obj) |
esp_err_t | calib_init (adc_obj_t *adc_obj) |
esp_err_t | enable_adc1 (adc_obj_t **adc_obj) |
call function config_adc1() and characterize_adc1(). More... | |
int | read_adc (adc_handle_t adc_handle, int gpio) |
Reads the adc value from the GPIO(channel) specified. More... | |
esp_err_t calib_init | ( | adc_obj_t * | adc_obj | ) |
esp_err_t config_adc1 | ( | adc_obj_t * | adc_obj | ) |
esp_err_t enable_adc1 | ( | adc_obj_t ** | adc_obj | ) |
call function config_adc1() and characterize_adc1().
int read_adc | ( | adc_handle_t | adc_handle, |
int | gpio | ||
) |
Reads the adc value from the GPIO(channel) specified.
adc_handle_t | adc_handle - pointer to adc object. |
int | gpio - gpio pin number of the channel to be read. |