Lines Matching refs:channel_cfg
61 const struct esp32_touch_sensor_channel_config *channel_cfg; member
81 const struct esp32_touch_sensor_channel_config *channel_cfg; local
97 channel_cfg = &dev_cfg->channel_cfg[i];
102 touch_hal_read_benchmark(channel_cfg->channel_num,
104 touch_hal_set_threshold(channel_cfg->channel_num,
105 channel_cfg->channel_sens * benchmark_value / 100);
119 channel_cfg = &dev_cfg->channel_cfg[i];
120 channel_status = (pad_status >> channel_cfg->channel_num) & 0x01;
127 if (channel_cfg->channel_num == channel_num) {
164 *channel_cfg = &dev_cfg->channel_cfg[key_index]; local
169 input_report_key(dev, channel_cfg->zephyr_code,
199 const struct esp32_touch_sensor_channel_config *channel_cfg = local
200 &dev_cfg->channel_cfg[i];
202 if (!(channel_cfg->channel_num > 0 &&
203 channel_cfg->channel_num < SOC_TOUCH_SENSOR_NUM)) {
210 if (channel_cfg->channel_num == SOC_TOUCH_DENOISE_CHANNEL) {
217 gpio_num_t gpio_num = touch_sensor_channel_io_map[channel_cfg->channel_num];
224 touch_hal_config(channel_cfg->channel_num);
226 touch_hal_set_threshold(channel_cfg->channel_num, 0);
227 touch_hal_set_group_mask(BIT(channel_cfg->channel_num),
228 BIT(channel_cfg->channel_num));
230 touch_hal_set_channel_mask(BIT(channel_cfg->channel_num));
243 const struct esp32_touch_sensor_channel_config *channel_cfg = local
244 &dev_cfg->channel_cfg[i];
254 uint16_t touch_value = touch_hal_read_raw_data(channel_cfg->channel_num);
256 touch_hal_set_threshold(channel_cfg->channel_num,
257 touch_value * (100 - channel_cfg->channel_num) / 100);
325 .channel_cfg = esp32_touch_sensor_channel_config_##inst, \