ESP-IDF + 0/2 examples
SourceVu will show references to pcnt_new_channel() from the following samples and libraries:
 
Symbols
loading...
Files
loading (1/5)...
SummarySyntaxArgumentsRelatedExamplesReferencesCall TreeData UseLifecycle

Return value

- 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()`)