Function esp_idf_hal::sys::rmt_apply_carrier
source ยท pub unsafe extern "C" fn rmt_apply_carrier(
channel: *mut rmt_drv_channel_t,
config: *const rmt_carrier_config_t,
) -> i32
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