Home
last modified time | relevance | path

Searched refs:msg_id (Results 1 – 3 of 3) sorted by relevance

/lvgl-3.7.0/src/extra/others/msg/
Dlv_msg.h38 typedef void (*lv_msg_request_cb_t)(void * r, uint32_t msg_id);
56 void * lv_msg_subsribe(uint32_t msg_id, lv_msg_subscribe_cb_t cb, void * user_data);
66 void * lv_msg_subsribe_obj(uint32_t msg_id, lv_obj_t * obj, void * user_data);
81 uint32_t lv_msg_unsubscribe_obj(uint32_t msg_id, lv_obj_t * obj);
88 void lv_msg_send(uint32_t msg_id, const void * payload);
119 static inline void * lv_msg_subscribe(uint32_t msg_id, lv_msg_subscribe_cb_t cb, void * user_data) in lv_msg_subscribe() argument
121 return lv_msg_subsribe(msg_id, cb, user_data); in lv_msg_subscribe()
124 static inline void * lv_msg_subscribe_obj(uint32_t msg_id, lv_obj_t * obj, void * user_data) in lv_msg_subscribe_obj() argument
126 return lv_msg_subsribe_obj(msg_id, obj, user_data); in lv_msg_subscribe_obj()
Dlv_msg.c24 uint32_t msg_id; member
62 void * lv_msg_subsribe(uint32_t msg_id, lv_msg_subscribe_cb_t cb, void * user_data) in lv_msg_subsribe() argument
70 s->msg_id = msg_id; in lv_msg_subsribe()
76 void * lv_msg_subsribe_obj(uint32_t msg_id, lv_obj_t * obj, void * user_data) in lv_msg_subsribe_obj() argument
78 sub_dsc_t * s = lv_msg_subsribe(msg_id, obj_notify_cb, user_data); in lv_msg_subsribe_obj()
97 uint32_t lv_msg_unsubscribe_obj(uint32_t msg_id, lv_obj_t * obj) in lv_msg_unsubscribe_obj() argument
104 (s->msg_id == LV_MSG_ID_ANY || s->msg_id == msg_id) && in lv_msg_unsubscribe_obj()
116 void lv_msg_send(uint32_t msg_id, const void * payload) in lv_msg_send() argument
120 m.id = msg_id; in lv_msg_send()
159 if(s->msg_id == m->id && s->callback) { in notify()
/lvgl-3.7.0/docs/others/
Dmsg.md23 Messages can be sent with `lv_msg_send(msg_id, payload)`. E.g.
31 `lv_msg_subscribe(msg_id, callback, user_data)` can be used to subscribe to message.
39 /*m: a message object with the msg_id, payload, and user_data (set durung subscription)*/
52 To make it simpler `lv_msg_subsribe_obj(msg_id, obj, user_data)` can be used.
53 If a new message is published with `msg_id` an `LV_EVENT_MSG_RECEIVED` event will be sent to the ob…