pub unsafe extern "C" fn rmt_tx_switch_gpio(
channel: *mut rmt_drv_channel_t,
gpio_num: i32,
invert_out: bool,
) -> i32Expand description
@brief Switch GPIO for RMT TX channel
@param[in] channel RMT TX channel handle @param[in] gpio_num New GPIO number to be used @param[in] invert_out Whether to invert the output signal @return - ESP_OK: Switch GPIO successfully - ESP_ERR_INVALID_ARG: Switch GPIO failed because of invalid argument - ESP_ERR_INVALID_STATE: Switch GPIO failed because channel is not disabled - ESP_FAIL: Switch GPIO failed because of other error