Home
last modified time | relevance | path

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

/hal_espressif-3.5.0/components/driver/include/driver/
Dpcnt.h48 } pcnt_unit_t; typedef
103 pcnt_unit_t unit; /*!< PCNT unit number */
132 esp_err_t pcnt_get_counter_value(pcnt_unit_t pcnt_unit, int16_t *count);
144 esp_err_t pcnt_counter_pause(pcnt_unit_t pcnt_unit);
156 esp_err_t pcnt_counter_resume(pcnt_unit_t pcnt_unit);
168 esp_err_t pcnt_counter_clear(pcnt_unit_t pcnt_unit);
183 esp_err_t pcnt_intr_enable(pcnt_unit_t pcnt_unit);
195 esp_err_t pcnt_intr_disable(pcnt_unit_t pcnt_unit);
208 esp_err_t pcnt_event_enable(pcnt_unit_t unit, pcnt_evt_type_t evt_type);
221 esp_err_t pcnt_event_disable(pcnt_unit_t unit, pcnt_evt_type_t evt_type);
[all …]
/hal_espressif-3.5.0/components/driver/
Dpcnt.c58 static inline esp_err_t _pcnt_set_mode(pcnt_port_t pcnt_port, pcnt_unit_t unit, pcnt_channel_t chan… in _pcnt_set_mode()
71 static inline esp_err_t _pcnt_set_pin(pcnt_port_t pcnt_port, pcnt_unit_t unit, pcnt_channel_t chann… in _pcnt_set_pin()
96 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()
105 static inline esp_err_t _pcnt_counter_pause(pcnt_port_t pcnt_port, pcnt_unit_t pcnt_unit) in _pcnt_counter_pause()
115 static inline esp_err_t _pcnt_counter_resume(pcnt_port_t pcnt_port, pcnt_unit_t pcnt_unit) in _pcnt_counter_resume()
125 static inline esp_err_t _pcnt_counter_clear(pcnt_port_t pcnt_port, pcnt_unit_t pcnt_unit) in _pcnt_counter_clear()
135 static inline esp_err_t _pcnt_intr_enable(pcnt_port_t pcnt_port, pcnt_unit_t pcnt_unit, bool enable) in _pcnt_intr_enable()
145 static inline esp_err_t _pcnt_event_enable(pcnt_port_t pcnt_port, pcnt_unit_t unit, pcnt_evt_type_t… in _pcnt_event_enable()
173 static inline esp_err_t _pcnt_set_event_value(pcnt_port_t pcnt_port, pcnt_unit_t unit, pcnt_evt_typ… in _pcnt_set_event_value()
199 static inline esp_err_t _pcnt_get_event_value(pcnt_port_t pcnt_port, pcnt_unit_t unit, pcnt_evt_typ… in _pcnt_get_event_value()
[all …]
/hal_espressif-3.5.0/examples/peripherals/pcnt/rotary_encoder/components/rotary_encoder/src/
Drotary_encoder_pcnt_ec11.c48 pcnt_unit_t pcnt_unit;
123 ec11->pcnt_unit = (pcnt_unit_t)(config->dev); in rotary_encoder_new_ec11()
/hal_espressif-3.5.0/examples/peripherals/mcpwm/mcpwm_brushed_dc_control/main/
Dmcpwm_brushed_dc_control_example.c155 pcnt_counter_clear((pcnt_unit_t)pcnt_unit); in motor_ctrl_pcnt_rotary_encoder_init()
/hal_espressif-3.5.0/docs/en/api-reference/peripherals/
Dpcnt.rst29 …T_PCNT_MAX_UNIT_NUM}. In the API they are referred to using :cpp:type:`pcnt_unit_t`. Each unit has…
/hal_espressif-3.5.0/components/driver/test/
Dtest_pwm.c114 static uint32_t mcpwm_pcnt_get_pulse_number(pcnt_unit_t pwm_pcnt_unit, int capture_window_ms) in mcpwm_pcnt_get_pulse_number()