Home
last modified time | relevance | path

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

/hal_espressif-2.7.6/examples/peripherals/pcnt/rotary_encoder/components/rotary_encoder/src/
Drotary_encoder_pcnt_ec11.c40 pcnt_unit_t pcnt_unit; member
49 …ROTARY_CHECK(pcnt_set_filter_value(ec11->pcnt_unit, max_glitch_us * 80) == ESP_OK, "set glitch fil… in ec11_set_glitch_filter()
52 pcnt_filter_enable(ec11->pcnt_unit); in ec11_set_glitch_filter()
54 pcnt_filter_disable(ec11->pcnt_unit); in ec11_set_glitch_filter()
65 pcnt_counter_resume(ec11->pcnt_unit); in ec11_start()
72 pcnt_counter_pause(ec11->pcnt_unit); in ec11_stop()
80 pcnt_get_counter_value(ec11->pcnt_unit, &val); in ec11_get_counter_value()
95 pcnt_get_event_status(ec11->pcnt_unit, &status); in ec11_pcnt_overflow_handler()
115 ec11->pcnt_unit = (pcnt_unit_t)(config->dev); in rotary_encoder_new_ec11()
122 .unit = ec11->pcnt_unit, in rotary_encoder_new_ec11()
[all …]
/hal_espressif-2.7.6/components/driver/
Dpcnt.c105 static inline esp_err_t _pcnt_get_counter_value(pcnt_port_t pcnt_port, pcnt_unit_t pcnt_unit, int16… in _pcnt_get_counter_value() argument
108 PCNT_CHECK(pcnt_unit < PCNT_UNIT_MAX, PCNT_UNIT_ERR_STR, ESP_ERR_INVALID_ARG); in _pcnt_get_counter_value()
110 pcnt_hal_get_counter_value(&(p_pcnt_obj[pcnt_port]->hal), pcnt_unit, count); in _pcnt_get_counter_value()
114 static inline esp_err_t _pcnt_counter_pause(pcnt_port_t pcnt_port, pcnt_unit_t pcnt_unit) in _pcnt_counter_pause() argument
117 PCNT_CHECK(pcnt_unit < PCNT_UNIT_MAX, PCNT_UNIT_ERR_STR, ESP_ERR_INVALID_ARG); in _pcnt_counter_pause()
119 pcnt_hal_counter_pause(&(p_pcnt_obj[pcnt_port]->hal), pcnt_unit); in _pcnt_counter_pause()
124 static inline esp_err_t _pcnt_counter_resume(pcnt_port_t pcnt_port, pcnt_unit_t pcnt_unit) in _pcnt_counter_resume() argument
127 PCNT_CHECK(pcnt_unit < PCNT_UNIT_MAX, PCNT_UNIT_ERR_STR, ESP_ERR_INVALID_ARG); in _pcnt_counter_resume()
129 pcnt_hal_counter_resume(&(p_pcnt_obj[pcnt_port]->hal), pcnt_unit); in _pcnt_counter_resume()
134 static inline esp_err_t _pcnt_counter_clear(pcnt_port_t pcnt_port, pcnt_unit_t pcnt_unit) in _pcnt_counter_clear() argument
[all …]
/hal_espressif-2.7.6/examples/peripherals/pcnt/pulse_count_event/main/
Dpcnt_event_example_main.c68 int pcnt_unit = (int)arg; in pcnt_example_intr_handler() local
70 evt.unit = pcnt_unit; in pcnt_example_intr_handler()
73 pcnt_get_event_status(pcnt_unit, &evt.status); in pcnt_example_intr_handler()
158 int pcnt_unit = PCNT_UNIT_0; in app_main() local
164 pcnt_example_init(pcnt_unit); in app_main()
175 pcnt_get_counter_value(pcnt_unit, &count); in app_main()
193 pcnt_get_counter_value(pcnt_unit, &count); in app_main()
/hal_espressif-2.7.6/components/driver/include/driver/
Dpcnt.h56 esp_err_t pcnt_get_counter_value(pcnt_unit_t pcnt_unit, int16_t *count);
68 esp_err_t pcnt_counter_pause(pcnt_unit_t pcnt_unit);
80 esp_err_t pcnt_counter_resume(pcnt_unit_t pcnt_unit);
92 esp_err_t pcnt_counter_clear(pcnt_unit_t pcnt_unit);
107 esp_err_t pcnt_intr_enable(pcnt_unit_t pcnt_unit);
119 esp_err_t pcnt_intr_disable(pcnt_unit_t pcnt_unit);
/hal_espressif-2.7.6/examples/peripherals/pcnt/rotary_encoder/main/
Drotary_encoder_example_main.c19 uint32_t pcnt_unit = 0; in app_main() local
22 …rotary_encoder_config_t config = ROTARY_ENCODER_DEFAULT_CONFIG((rotary_encoder_dev_t)pcnt_unit, 14… in app_main()