[][src]Function esp_idf_sys::rmt_translator_init

pub unsafe extern "C" fn rmt_translator_init(
    channel: rmt_channel_t,
    fn_: sample_to_rmt_t
) -> esp_err_t

@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, tha user callback will be replaced by the later.

@param channel RMT channel (0 - 7). @param fn Point to the data conversion function.

@return - ESP_FAIL Init fail. - ESP_OK Init success.