18 #ifdef POK_NEEDS_ARINC653_EVENT
24 #ifndef POK_NEEDS_ARINC653_PROCESS
25 #define POK_NEEDS_ARINC653_PROCESS 1
28 #include <arinc653/process.h>
40 #define MAX_NUMBER_OF_EVENTS 63
49 typedef APEX_INTEGER EVENT_ID_TYPE;
53 enum EVENT_STATE_VALUE_TYPE { UP, DOWN };
55 typedef enum EVENT_STATE_VALUE_TYPE EVENT_STATE_TYPE;
60 typedef NAME_TYPE EVENT_NAME_TYPE;
65 EVENT_STATE_TYPE EVENT_STATE;
66 WAITING_RANGE_TYPE WAITING_PROCESSES;
75 extern void CREATE_EVENT (
76 EVENT_NAME_TYPE EVENT_NAME,
77 EVENT_ID_TYPE *EVENT_ID,
78 RETURN_CODE_TYPE *RETURN_CODE );
80 extern void SET_EVENT (
81 EVENT_ID_TYPE EVENT_ID,
82 RETURN_CODE_TYPE *RETURN_CODE );
84 extern void RESET_EVENT (
85 EVENT_ID_TYPE EVENT_ID,
86 RETURN_CODE_TYPE *RETURN_CODE );
88 extern void WAIT_EVENT (
89 EVENT_ID_TYPE EVENT_ID,
90 SYSTEM_TIME_TYPE TIME_OUT,
91 RETURN_CODE_TYPE *RETURN_CODE );
93 extern void GET_EVENT_ID (
94 EVENT_NAME_TYPE EVENT_NAME,
95 EVENT_ID_TYPE *EVENT_ID,
96 RETURN_CODE_TYPE *RETURN_CODE );
98 extern void GET_EVENT_STATUS (
99 EVENT_ID_TYPE EVENT_ID,
101 RETURN_CODE_TYPE *RETURN_CODE );