39#ifndef __VSF_ESPIDF_DRIVER_ADC_ONESHOT_H__
40#define __VSF_ESPIDF_DRIVER_ADC_ONESHOT_H__
esp_err_t adc_oneshot_config_channel(adc_oneshot_unit_handle_t handle, adc_channel_t channel, const adc_oneshot_chan_cfg_t *config)
Cache a channel configuration on the handle. The actual vsf_adc channel_request_once call happens in ...
Definition driver_adc_port.c:235
esp_err_t adc_oneshot_new_unit(const adc_oneshot_unit_init_cfg_t *init_config, adc_oneshot_unit_handle_t *ret_unit)
Allocate an ADC oneshot unit handle from the pool entry matching init_config->unit_id.
Definition driver_adc_port.c:166
esp_err_t adc_oneshot_read(adc_oneshot_unit_handle_t handle, adc_channel_t channel, int *out_raw)
Perform one blocking conversion on a channel and return the raw result.
Definition driver_adc_port.c:258
struct adc_oneshot_unit_ctx_t * adc_oneshot_unit_handle_t
Opaque handle for an ADC oneshot unit.
Definition adc_oneshot.h:54
esp_err_t adc_oneshot_del_unit(adc_oneshot_unit_handle_t handle)
Release an ADC oneshot unit handle allocated by adc_oneshot_new_unit().
Definition driver_adc_port.c:209
adc_oneshot_clk_src_t
ADC clock source. Accepted but ignored.
Definition adc_types.h:75
adc_atten_t
Input attenuation. Accepted but interpreted only as a hint for maximum measurable voltage – this shim...
Definition adc_types.h:66
adc_channel_t
ADC channel identifiers. Range is chip-dependent; channels beyond the target device's capability are ...
Definition adc_types.h:40
adc_ulp_mode_t
ULP mode (not modelled by this shim).
Definition adc_types.h:82
adc_unit_t
ADC peripheral unit.
Definition adc_types.h:33
adc_bitwidth_t
Effective resolution of a conversion result. Most targets support 12 or 13 bits; DEFAULT yields the c...
Definition adc_types.h:55
int esp_err_t
Definition esp_err.h:41
Per-channel configuration.
Definition adc_oneshot.h:64
adc_bitwidth_t bitwidth
Definition adc_oneshot.h:66
adc_atten_t atten
Definition adc_oneshot.h:65
Definition driver_adc_port.c:72
Unit-level init configuration.
Definition adc_oneshot.h:57
adc_oneshot_clk_src_t clk_src
Definition adc_oneshot.h:59
adc_unit_t unit_id
Definition adc_oneshot.h:58
adc_ulp_mode_t ulp_mode
Definition adc_oneshot.h:60