APP_THREAD
Enums
Functions
-
rt_thread_t lvgl_host_thread_get(void)
Get lvgl host thread, which is gui_thread.
- 返回值:
Pointer -- Thread pointer.
-
void lvgl_host_thread_check(const char *file, const char *func)
Check if current thread is lvgl host thread (gui_thread). Make sure API be invoked in host thread only.
- 参数:
file -- The file name that calls this function. which used to log out
func -- The function name that calls this function. which used to log out
-
rt_err_t send_msg_to_gui_thread(void *data, uint32_t len, void *cb, uint32_t user_data, wakeup_ui_t wakeup)
Generate a message, Send it to gui thread. This function will apply a memory block(message) to copy the content of data using service_msg_fill. Therefor, after processing data, it is necessary to release this message using service_msg_rel.
- 参数:
data -- The Pointer of data content
len -- The length of data content
cb -- After gui_thread_queue received, it will call this cb to process this message.
uerdata -- User data.
wakeup_ui_t -- Indicated if need to wake up the UI when sending messages to UI.
- 返回值:
rt_err_t -- RT_EOK or RT_ERROR.
-
rt_err_t send_msg_to_bg_thread(void *data, uint32_t len, void *cb, uint32_t user_data)
Generate a message, Send it to background(bg) thread. This function will apply a memory block(message) to copy the content of data using service_msg_fill. Therefor, after processing data, it is necessary to release this message using service_msg_rel.
- 参数:
data -- The Pointer of data content
len -- The length of data content
cb -- After bg_thread_queue received, it will call this cb to process this message.
uerdata -- User data.
- 返回值:
rt_err_t -- RT_EOK or RT_ERROR.
-
rt_err_t send_msg_to_gui_thread_e(comm_msg_t *msg, wakeup_ui_t wakeup)
Send a message to gui thread, which had assembled using service_msg_fill. After processing data, it is necessary to release this message using service_msg_rel.
- 参数:
wakeup_ui_t -- Indicated if need to wake up the UI when sending messages to UI.
- 返回值:
rt_err_t -- RT_EOK or RT_ERROR.
-
rt_err_t send_msg_to_bg_thread_e(comm_msg_t *msg)
Send a message to background(bg) thread, which had assembled using service_msg_fill. After processing data, it is necessary to release this message using service_msg_rel.
- 返回值:
rt_err_t -- RT_EOK or RT_ERROR.
Variables
-
rt_mq_t gui_thread_queue