Home
last modified time | relevance | path

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

/device/soc/esp/esp32/components/driver/
Dpcnt.c54 #define PCNT_OBJ_CHECK(pcnt_port) { \ argument
55 PCNT_CHECK((pcnt_port < PCNT_PORT_MAX), PCNT_NUM_ERR_STR, ESP_ERR_INVALID_ARG); \
56 PCNT_CHECK((p_pcnt_obj[pcnt_port]), PCNT_DRIVER_ERR_STR, ESP_ERR_INVALID_STATE); \
68 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() argument
70 PCNT_OBJ_CHECK(pcnt_port); in _pcnt_set_mode()
76 …pcnt_hal_set_mode(&(p_pcnt_obj[pcnt_port]->hal), unit, channel, pos_mode, neg_mode, hctrl_mode, lc… in _pcnt_set_mode()
80 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() argument
82 PCNT_OBJ_CHECK(pcnt_port); in _pcnt_set_pin()
105 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
107 PCNT_OBJ_CHECK(pcnt_port); in _pcnt_get_counter_value()
[all …]