Function esp_idf_sys::rmt_apply_carrier
source ยท pub unsafe extern "C" fn rmt_apply_carrier(
channel: rmt_channel_handle_t,
config: *const rmt_carrier_config_t,
) -> esp_err_t
Expand description
@brief Apply modulation feature for TX channel or demodulation feature for RX channel
@param[in] channel RMT generic channel that created by rmt_new_tx_channel()
or rmt_new_rx_channel()
@param[in] config Carrier configuration. Specially, a NULL config means to disable the carrier modulation or demodulation feature
@return
- ESP_OK: Apply carrier configuration successfully
- ESP_ERR_INVALID_ARG: Apply carrier configuration failed because of invalid argument
- ESP_FAIL: Apply carrier configuration failed because of other error