Function esp_idf_svc::hal::sys::rmt_translator_init

source ยท
pub unsafe extern "C" fn rmt_translator_init(
    channel: u32,
    fn_: Option<unsafe extern "C" fn(_: *const c_void, _: *mut rmt_item32_t, _: usize, _: usize, _: *mut usize, _: *mut usize)>,
) -> i32
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.