pub unsafe extern "C" fn rmt_write_sample(
    channel: rmt_channel_t,
    src: *const u8,
    src_size: usize,
    wait_tx_done: bool
) -> esp_err_t
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