Home
last modified time | relevance | path

Searched refs:unit_config (Results 1 – 1 of 1) sorted by relevance

/Zephyr-latest/drivers/sensor/espressif/pcnt_esp32/
Dpcnt_esp32.c77 struct pcnt_esp32_unit_config *unit_config; member
93 struct pcnt_esp32_unit_config *unit_config = &config->unit_config[i]; in pcnt_esp32_sample_fetch() local
95 unit_config->count_val_acc = pcnt_ll_get_count(data->hal.dev, i); in pcnt_esp32_sample_fetch()
113 val->val1 = config->unit_config[0].count_val_acc + config->unit_config[0].offset; in pcnt_esp32_channel_get()
152 struct pcnt_esp32_unit_config *unit_config = &config->unit_config[i]; in pcnt_esp32_init() local
154 unit_config->h_thr = 0; in pcnt_esp32_init()
155 unit_config->l_thr = 0; in pcnt_esp32_init()
156 unit_config->offset = 0; in pcnt_esp32_init()
164 unit_config->channel_config[0].sig_pos_mode, in pcnt_esp32_init()
165 unit_config->channel_config[0].sig_neg_mode); in pcnt_esp32_init()
[all …]