- ESP_OK: Create PCNT channel successfully - ESP_ERR_INVALID_ARG: Create PCNT channel failed because of invalid argument - ESP_ERR_NO_MEM: Create PCNT channel failed because of insufficient memory - ESP_ERR_NOT_FOUND: Create PCNT channel failed because all PCNT channels are used up and no more free one - ESP_ERR_INVALID_STATE: Create PCNT channel failed because the unit is not in the init state - ESP_FAIL: Create PCNT channel failed because of other error
Notes
This function should be called when the unit is in 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