PCNT filter configuration, set config to NULL means disabling the filter function
Return value
- ESP_OK: Set glitch filter successfully - ESP_ERR_INVALID_ARG: Set glitch filter failed because of invalid argument (e.g. glitch width is too big) - ESP_ERR_INVALID_STATE: Set glitch filter failed because the unit is not in the init state - ESP_FAIL: Set glitch filter failed because of other error
Notes
This function should be called when the PCNT unit is in the init state (i.e. before calling `pcnt_unit_enable()`)
Related Functions
Found 16 other functions taking a pcnt_unit_t
argument:
Add a step notify for PCNT unit, PCNT will generate an event when the incremental(can be positive or negative) of counter value reaches the step interval