Details of the event bus mechanism and its functions.
More...
Details of the event bus mechanism and its functions.
#define EVT_ATVV_STATE_DISABLED 1 |
#define EVT_ATVV_STATE_ENABLED 0 |
#define EVT_ATVV_STATE_MIC_CLOSE 3 |
ATVV state: microphone closed
#define EVT_ATVV_STATE_MIC_OPEN 2 |
ATVV state: microphone open
#define EVT_ATVV_STATE_SEARCH_TIMEOUT 4 |
ATVV state: search timeout
typedef bool(* event_handler_t)(const event_t *p_event) |
Event handler.
- Parameters
-
[in] | p_event | Pointer to the event structure. |
- Returns
- True if further processing of the given event should be abandoned.
Event groups.
Enumerator |
---|
EVT_GROUP_SYSTEM |
System state events.
|
EVT_GROUP_KEY |
Keyboard input events.
|
EVT_GROUP_REL |
Relative motion events.
|
EVT_GROUP_HID |
HID report events.
|
EVT_GROUP_IR |
IR symbol events.
|
EVT_GROUP_BT |
Bluetooth events.
|
EVT_GROUP_ATVV |
ATVV events.
|
Function for initializing the event bus.
- Parameters
-
[in] | event_handlers_table | Table with event handlers. |
- Returns
- NRF_SUCCESS on success, otherwise an error code.
Function for sending an event.
- Parameters
-
[in] | event_type | Event type. |
[in] | ... | Event data. |
- Note
- Event data elements are mapped one to one to data fields in the event structure.
- Returns
- NRF_SUCCESS on success, otherwise an error code.