Function esp_idf_svc::sys::rmt_set_gpio

source ยท
pub unsafe extern "C" fn rmt_set_gpio(
    channel: u32,
    mode: u32,
    gpio_num: i32,
    invert_signal: bool,
) -> i32
Expand description

@brief Configure the GPIO used by RMT channel

@param channel RMT channel @param mode RMT mode, either RMT_MODE_TX or RMT_MODE_RX @param gpio_num GPIO number, which is connected with certain RMT signal @param invert_signal Invert RMT signal physically by GPIO matrix

@return - ESP_ERR_INVALID_ARG Configure RMT GPIO failed because of wrong parameter - ESP_OK Configure RMT GPIO successfully