Function esp_idf_sys::rmt_enable
source · pub unsafe extern "C" fn rmt_enable(
channel: rmt_channel_handle_t,
) -> esp_err_t
Expand description
@brief Enable the RMT channel
@note This function will acquire a PM lock that might be installed during channel allocation
@param[in] channel RMT generic channel that created by rmt_new_tx_channel()
or rmt_new_rx_channel()
@return
- 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