Function esp_idf_hal::sys::rmt_write_sample
source ยท pub unsafe extern "C" fn rmt_write_sample(
channel: u32,
src: *const u8,
src_size: usize,
wait_tx_done: bool,
) -> i32
Expand description
@brief Translate uint8_t type of data into rmt format and send it out. Requires rmt_translator_init to init the translator first.
@param channel RMT channel . @param src Pointer to the raw data. @param src_size The size of the raw data. @param wait_tx_done Set true to wait all data send done.
@return - ESP_FAIL Send fail - ESP_OK Send success