lv_async.h

API reference for lv_async.h

Report on GitHub

Functions

lv_async_call

Call an asynchronous function the next time lv_timer_handler() is run. This function is likely to return before the call actually happens!

 
lv_result_t lv_async_call(lv_async_cb_t async_xcb, void *user_data)
Parameters
NameTypeDescription
async_xcblv_async_cb_ta callback which is the task itself. (the 'x' in the argument name indicates that it's not a fully generic function because it not follows the func_name(object, callback, ...) convention)
user_datavoid *custom parameter

lv_async_call_cancel

Cancel an asynchronous function call

 
lv_result_t lv_async_call_cancel(lv_async_cb_t async_xcb, void *user_data)
Parameters
NameTypeDescription
async_xcblv_async_cb_ta callback which is the task itself.
user_datavoid *custom parameter

Typedefs

lv_async_cb_t

 
typedef void(* lv_async_cb_t) (void *)

Type for async callback.

Used by 2 functions
  • lv_async_call — param async_xcb
  • lv_async_call_cancel — param async_xcb

Dependencies

How is this guide?

Last updated on

On this page