Trident IoT Z-Wave SDK
 
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
Loading...
Searching...
No Matches
ev_man.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Silicon Laboratories Inc. <https://www.silabs.com/>
2//
3// SPDX-License-Identifier: BSD-3-Clause
4
11#ifndef _ev_man_H_
12#define _ev_man_H_
13
14#include <ZW_basis_api.h>
15
26#define DEFINE_EVENT_WAKEUP_NBR 0x01
27#define DEFINE_EVENT_KEYPAD_NBR 0x10
28#define DEFINE_EVENT_IR_NBR 0x20
29#define DEFINE_EVENT_SYSTEM_NBR 0x30
30
34#define DEFINE_EVENT_KEY_NBR 0x40
35
39#define DEFINE_EVENT_APP_NBR 0x70
40
58
105
106#define BTN_EVENT_FILTER(btnEvent) ((btnEvent >= DEFINE_EVENT_KEY_NBR) && (btnEvent < EVENT_BTN_MAX))
107
108#define EventSchedulerInit ZAF_eventSchedulerInit
112void ZAF_eventSchedulerInit(VOID_CALLBACKFUNC(pApplicationStateMachine)(uint8_t));
113
114
115#define ZCB_EventSchedulerEventAdd ZCB_eventSchedulerEventAdd
121bool ZCB_eventSchedulerEventAdd(uint8_t event);
122
123
124#define ZCB_EventScheduler ZCB_eventScheduler
129
130
131#define ZCB_EventEnqueue ZAF_jobEnqueue
137bool ZAF_jobEnqueue(uint8_t event);
138
139
140#define ZCB_EventDequeue ZAF_jobDequeue
146bool ZAF_jobDequeue(uint8_t* pEvent);
147
148
153uint8_t ZAF_jobQueueCount(void);
154
160#endif /* _ev_man_H_ */
_EVENT_SYSTEM_
Definition ev_man.h:45
enum _BUTTON_EVENT_ BUTTON_EVENT
bool ZAF_jobEnqueue(uint8_t event)
Adds a given event to the job queue.
bool ZCB_eventSchedulerEventAdd(uint8_t event)
Adds a given event to the event queue.
uint8_t ZAF_jobQueueCount(void)
Get number of events on queue.
_BUTTON_EVENT_
Definition ev_man.h:67
enum _EVENT_SYSTEM_ EVENT_SYSTEM
void ZAF_eventSchedulerInit(void(*pApplicationStateMachine)(uint8_t))
Initializes event scheduler.
bool ZAF_jobDequeue(uint8_t *pEvent)
Deque job queue.
#define DEFINE_EVENT_SYSTEM_NBR
Definition ev_man.h:29
#define DEFINE_EVENT_KEY_NBR
Definition ev_man.h:34
bool ZCB_eventScheduler(void)
Processes events.
@ EVENT_SYSTEM_LEARNMODE_START
Definition ev_man.h:47
@ EVENT_SYSTEM_RESET
Definition ev_man.h:46
@ EVENT_SYSTEM_OTA_START
Definition ev_man.h:52
@ EVENT_SYSTEM_FLUSHMEM_READY
Definition ev_man.h:54
@ EVENT_SYSTEM_WATCHDOG_RESET
Definition ev_man.h:51
@ EVENT_SYSTEM_LEARNMODE_DSK_START
Definition ev_man.h:53
@ EVENT_SYSTEM_LEARNMODE_STOP
Definition ev_man.h:49
@ EVENT_SYSTEM_LEARNMODE_TOGGLE
Definition ev_man.h:50
@ EVENT_SYSTEM_LEARNMODE_FINISHED
Definition ev_man.h:48
@ EVENT_SYSTEM_EMPTY
Definition ev_man.h:56
@ EVENT_SYSTEM_SMARTSTART_IN_PROGRESS
Definition ev_man.h:55
@ EVENT_PB4_UP
Definition ev_man.h:84
@ EVENT_PB3_LONG_PRESS
Definition ev_man.h:82
@ EVENT_PB2_LONG_PRESS
Definition ev_man.h:77
@ EVENT_PB6_LONG_PRESS
Definition ev_man.h:97
@ EVENT_PB3_UP
Definition ev_man.h:79
@ EVENT_PB6_DOWN
Definition ev_man.h:93
@ EVENT_PB1_SHORT_PRESS
Definition ev_man.h:70
@ EVENT_PB3_DOWN
Definition ev_man.h:78
@ EVENT_SLIDER1_DOWN
Definition ev_man.h:98
@ EVENT_PB2_HOLD
Definition ev_man.h:76
@ EVENT_PB6_UP
Definition ev_man.h:94
@ EVENT_PB1_LONG_PRESS
Definition ev_man.h:72
@ EVENT_PB2_SHORT_PRESS
Definition ev_man.h:75
@ EVENT_PB1_DOWN
Definition ev_man.h:68
@ EVENT_BTN_MAX
Definition ev_man.h:103
@ EVENT_PB4_LONG_PRESS
Definition ev_man.h:87
@ EVENT_SLIDER1_UP
Definition ev_man.h:99
@ EVENT_SLIDER1_HOLD
Definition ev_man.h:101
@ EVENT_PB4_SHORT_PRESS
Definition ev_man.h:85
@ EVENT_PB3_SHORT_PRESS
Definition ev_man.h:80
@ EVENT_PB3_HOLD
Definition ev_man.h:81
@ EVENT_PB5_DOWN
Definition ev_man.h:88
@ EVENT_PB4_DOWN
Definition ev_man.h:83
@ EVENT_PB5_LONG_PRESS
Definition ev_man.h:92
@ EVENT_PB4_HOLD
Definition ev_man.h:86
@ EVENT_PB5_UP
Definition ev_man.h:89
@ EVENT_PB1_HOLD
Definition ev_man.h:71
@ EVENT_PB6_HOLD
Definition ev_man.h:96
@ EVENT_PB2_UP
Definition ev_man.h:74
@ EVENT_PB1_UP
Definition ev_man.h:69
@ EVENT_SLIDER1_SHORT_PRESS
Definition ev_man.h:100
@ EVENT_PB5_HOLD
Definition ev_man.h:91
@ EVENT_PB5_SHORT_PRESS
Definition ev_man.h:90
@ EVENT_PB6_SHORT_PRESS
Definition ev_man.h:95
@ EVENT_SLIDER1_LONG_PRESS
Definition ev_man.h:102
@ EVENT_PB2_DOWN
Definition ev_man.h:73
#define VOID_CALLBACKFUNC(completedFunc)
Definition ZW_typedefs.h:46