Lines Matching full:hal
10 #include <hal/pcnt_hal.h>
11 #include <hal/pcnt_ll.h>
12 #include <hal/pcnt_types.h>
45 pcnt_hal_context_t hal; member
95 unit_config->count_val_acc = pcnt_ll_get_count(data->hal.dev, i); in pcnt_esp32_sample_fetch()
149 pcnt_hal_init(&data->hal, 0); in pcnt_esp32_init()
158 pcnt_ll_enable_thres_event(data->hal.dev, i, 0, false); in pcnt_esp32_init()
159 pcnt_ll_enable_thres_event(data->hal.dev, i, 1, false); in pcnt_esp32_init()
160 pcnt_ll_enable_low_limit_event(data->hal.dev, i, false); in pcnt_esp32_init()
161 pcnt_ll_enable_high_limit_event(data->hal.dev, i, false); in pcnt_esp32_init()
162 pcnt_ll_enable_zero_cross_event(data->hal.dev, i, false); in pcnt_esp32_init()
163 pcnt_ll_set_edge_action(data->hal.dev, i, 0, in pcnt_esp32_init()
166 pcnt_ll_set_edge_action(data->hal.dev, i, 1, in pcnt_esp32_init()
169 pcnt_ll_set_level_action(data->hal.dev, i, 0, in pcnt_esp32_init()
172 pcnt_ll_set_level_action(data->hal.dev, i, 1, in pcnt_esp32_init()
175 pcnt_ll_clear_count(data->hal.dev, i); in pcnt_esp32_init()
177 pcnt_ll_set_glitch_filter_thres(data->hal.dev, i, unit_config->filter); in pcnt_esp32_init()
178 pcnt_ll_enable_glitch_filter(data->hal.dev, i, (bool)unit_config->filter); in pcnt_esp32_init()
180 pcnt_ll_start_count(data->hal.dev, i); in pcnt_esp32_init()
198 pcnt_ll_set_thres_value(data->hal.dev, i, 0, unit_config->l_thr); in pcnt_esp32_attr_set_thresh()
199 pcnt_ll_enable_thres_event(data->hal.dev, i, 0, true); in pcnt_esp32_attr_set_thresh()
203 pcnt_ll_set_thres_value(data->hal.dev, i, 1, unit_config->h_thr); in pcnt_esp32_attr_set_thresh()
204 pcnt_ll_enable_thres_event(data->hal.dev, i, 1, true); in pcnt_esp32_attr_set_thresh()
209 pcnt_ll_stop_count(data->hal.dev, i); in pcnt_esp32_attr_set_thresh()
210 pcnt_ll_clear_count(data->hal.dev, i); in pcnt_esp32_attr_set_thresh()
211 pcnt_ll_start_count(data->hal.dev, i); in pcnt_esp32_attr_set_thresh()
286 pcnt_intr_status = pcnt_ll_get_intr_status(data->hal.dev); in pcnt_esp32_isr()
287 pcnt_ll_clear_intr_status(data->hal.dev, pcnt_intr_status); in pcnt_esp32_isr()
290 pcnt_unit_status = pcnt_ll_get_unit_status(data->hal.dev, 0); in pcnt_esp32_isr()
292 pcnt_unit_status = pcnt_ll_get_unit_status(data->hal.dev, 1); in pcnt_esp32_isr()
294 pcnt_unit_status = pcnt_ll_get_unit_status(data->hal.dev, 2); in pcnt_esp32_isr()
296 pcnt_unit_status = pcnt_ll_get_unit_status(data->hal.dev, 3); in pcnt_esp32_isr()
299 pcnt_unit_status = pcnt_ll_get_unit_status(data->hal.dev, 4); in pcnt_esp32_isr()
301 pcnt_unit_status = pcnt_ll_get_unit_status(data->hal.dev, 5); in pcnt_esp32_isr()
303 pcnt_unit_status = pcnt_ll_get_unit_status(data->hal.dev, 6); in pcnt_esp32_isr()
305 pcnt_unit_status = pcnt_ll_get_unit_status(data->hal.dev, 7); in pcnt_esp32_isr()
354 pcnt_ll_enable_intr(data->hal.dev, 1, true); in pcnt_esp32_trigger_set()
415 .hal = {