Function esp_idf_sys::i2s_set_adc_mode

source ยท
pub unsafe extern "C" fn i2s_set_adc_mode(
    adc_unit: adc_unit_t,
    adc_channel: adc1_channel_t,
) -> esp_err_t
Expand description

@brief Set built-in ADC mode for I2S DMA, this function will initialize ADC pad, and set ADC parameters. @note In this mode, the ADC maximum sampling rate is 150KHz. Set the sampling rate through i2s_config_t. @param adc_unit SAR ADC unit index @param adc_channel ADC channel index @return - ESP_OK Success - ESP_ERR_INVALID_ARG Parameter error