Function esp_idf_hal::sys::rmt_translator_get_context
source · pub unsafe extern "C" fn rmt_translator_get_context(
item_num: *const usize,
context: *mut *mut c_void,
) -> i32
Expand description
@brief Get the user context set by ‘rmt_translator_set_context’
@note This API must be invoked in the RMT translator callback function, and the first argument must be the actual parameter ‘item_num’ you got in that callback function.
@param item_num Address of the memory which contains the number of translated items (It’s from driver’s internal memory) @param context Returned User context
@return - ESP_FAIL Get context fail - ESP_OK Get context success