Function esp_idf_sys::rmt_translator_init
source ยท pub unsafe extern "C" fn rmt_translator_init(
channel: rmt_channel_t,
fn_: sample_to_rmt_t,
) -> esp_err_t
Expand description
@brief Init rmt translator and register user callback. The callback will convert the raw data that needs to be sent to rmt format. If a channel is initialized more than once, the user callback will be replaced by the later.
@param channel RMT channel . @param fn Point to the data conversion function.
@return - ESP_FAIL Init fail. - ESP_OK Init success.