rmt_enable() function
Enable the RMT channel
Arguments
channel
RMT generic channel that created by `rmt_new_tx_channel()` or `rmt_new_rx_channel()`
Return value
- ESP_OK: Enable RMT channel successfully - ESP_ERR_INVALID_ARG: Enable RMT channel failed because of invalid argument - ESP_ERR_INVALID_STATE: Enable RMT channel failed because it's enabled already - ESP_FAIL: Enable RMT channel failed because of other error
Notes
This function will acquire a PM lock that might be installed during channel allocation
Examples
rmt_enable() is referenced by 15 libraries and example projects: