Function esp_idf_svc::sys::rmt_disable
source · pub unsafe extern "C" fn rmt_disable(
channel: *mut rmt_drv_channel_t,
) -> i32
Expand description
@brief Disable the RMT channel
@note This function will release 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: Disable RMT channel successfully
- ESP_ERR_INVALID_ARG: Disable RMT channel failed because of invalid argument
- ESP_ERR_INVALID_STATE: Disable RMT channel failed because it’s not enabled yet
- ESP_FAIL: Disable RMT channel failed because of other error