Searched refs:WIDTH_MASK (Results 1 – 1 of 1) sorted by relevance
52 #define WIDTH_MASK(r) ((((r) - 9) < ADC_WIDTH_MAX) ? ((r) - 9) : (ADC_WIDTH_MAX - 1)) macro191 adc_set_data_width(conf->unit, WIDTH_MASK(data->resolution[channel_id])); in adc_esp32_read()207 data->chars[channel_id].bit_width = WIDTH_MASK(data->resolution[channel_id]); in adc_esp32_read()292 WIDTH_MASK(data->resolution[cfg->channel_id]), in adc_esp32_channel_setup()