Function esp_idf_svc::sys::rmt_set_tx_carrier

source ·
pub unsafe extern "C" fn rmt_set_tx_carrier(
    channel: u32,
    carrier_en: bool,
    high_level: u16,
    low_level: u16,
    carrier_level: u32,
) -> i32
Expand description

@brief Configure RMT carrier for TX signal.

   Set different values for carrier_high and carrier_low to set different frequency of carrier.
   The unit of carrier_high/low is the source clock tick, not the divided channel counter clock.

@param channel RMT channel @param carrier_en Whether to enable output carrier. @param high_level High level duration of carrier @param low_level Low level duration of carrier. @param carrier_level Configure the way carrier wave is modulated for channel. - 1’b1:transmit on low output level - 1’b0:transmit on high output level

@return - ESP_ERR_INVALID_ARG Parameter error - ESP_OK Success