adc2_config_channel_atten() is only used within ESP-IDF.
 
Symbols
loading (4/5)...
Files
loading (4/5)...
SummarySyntaxArgumentsReferencesCall TreeData Use

Return value

- ESP_OK success - ESP_ERR_INVALID_ARG Parameter error

Notes

This function also configures the input GPIO pin mux to connect it to the ADC2 channel. It must be called before calling ``adc2_get_raw()`` for this channel. For any given channel, this function must be called before the first time ``adc2_get_raw()`` is called for that channel.

References