Function bl602_sdk::adc::get_channel_by_gpio[][src]

pub fn get_channel_by_gpio(gpio_num: c_int) -> BlResult<c_int>
Expand description

Get the ADC Channel Number for the GPIO Pin. See bl_adc_get_channel_by_gpio in “init_adc” https://github.com/lupyuen/bl_iot_sdk/blob/adc/customer_app/sdk_app_adc2/sdk_app_adc2/demo.c