Lines Matching refs:id
43 int32_t event_subscribe(struct event *const event, const event_id_t id, event_cb_t cb) in event_subscribe() argument
46 const uint8_t position = id >> 3; in event_subscribe()
47 const uint8_t mask = 1 << (id & 0x7); in event_subscribe()
49 ASSERT(event && cb && (id < EVENT_MAX_AMOUNT)); in event_subscribe()
67 int32_t event_unsubscribe(struct event *const event, const event_id_t id) in event_unsubscribe() argument
70 const uint8_t position = id >> 3; in event_unsubscribe()
71 const uint8_t mask = 1 << (id & 0x7); in event_unsubscribe()
75 ASSERT(event && (id < EVENT_MAX_AMOUNT)); in event_unsubscribe()
105 void event_post(const event_id_t id, const event_data_t data) in event_post() argument
108 const uint8_t position = id >> 3; in event_post()
109 const uint8_t mask = 1 << (id & 0x7); in event_post()
112 ASSERT((id < EVENT_MAX_AMOUNT)); in event_post()
122 current->cb(id, data); in event_post()