Wirepas SDK
|
Header file for the poslib_event.c. More...
Go to the source code of this file.
Functions | |
bool | PosLibEvent_add (poslib_internal_event_type_e type) |
poslib_ret_e | PosLibEvent_register (poslib_events_e event, poslib_events_listen_info_f cb, uint8_t *id) |
Register an PosLib event subscriber for. More... | |
void | PosLibEvent_deregister (uint8_t id) |
Deregister the PosLib event subscriber id. More... | |
Data Structures | |
struct | poslib_internal_event_t |
Enumerations | |
enum | poslib_internal_event_type_e { POSLIB_CTRL_EVENT_NONE = 0, POSLIB_CTRL_EVENT_SCAN_STARTED = 1, POSLIB_CTRL_EVENT_SCAN_END = 2, POSLIB_CTRL_EVENT_ONLINE = 3, POSLIB_CTRL_EVENT_OFFLINE = 4, POSLIB_CTRL_EVENT_APPCFG = 5, POSLIB_CTRL_EVENT_TIMEOUT = 6, POSLIB_CTRL_EVENT_DATA_SENT = 7, POSLIB_CTRL_EVENT_ONESHOT = 8, POSLIB_CTRL_EVENT_CONFIG_CHANGE = 9, POSLIB_CTRL_EVENT_ROUTE_CHANGE = 10, POSLIB_CTRL_EVENT_UPDATE_START = 11, POSLIB_CTRL_EVENT_UPDATE_END = 12, POSLIB_CTRL_EVENT_OUTSIDE_WM = 13, POSLIB_CTRL_EVENT_UNDER_WM = 14, POSLIB_CTRL_EVENT_MOTION = 15, POSLIB_CTRL_EVENT_BLE_START = 16, POSLIB_CTRL_EVENT_BLE_STOP = 17, POSLIB_CTRL_EVENT_LED_ON = 18, POSLIB_CTRL_EVENT_LED_OFF = 19 } |
Macros | |
#define | MAX_INTERNAL_EVENTS 16 |
bool PosLibEvent_add | ( | poslib_internal_event_type_e | type | ) |
void PosLibEvent_deregister | ( | uint8_t | id | ) |
Deregister the PosLib event subscriber id.
id | the subscriber ID |
poslib_ret_e PosLibEvent_register | ( | poslib_events_e | event, |
poslib_events_listen_info_f | cb, | ||
uint8_t * | id | ||
) |
Register an PosLib event subscriber for.
event | Events of interest (type of poslib_events_e) |
cb | Callback to be called (type poslib_events_listen_info_f) |
id | Returned subscriber ID |
struct poslib_internal_event_t |
Definition at line 57 of file poslib_event.h.
Data Fields | ||
---|---|---|
sl_list_t | list | |
poslib_internal_event_type_e | type |
Definition at line 14 of file poslib_event.h.
#define MAX_INTERNAL_EVENTS 16 |
Definition at line 12 of file poslib_event.h.