30 #define OS_ALARM_QUEUE_TAG 0x614C6D51u
61 #define OS_ALARM_TAG 0x614C724Du
107 CHECK_OFFSET(OSAlarm, 0x00, tag);
108 CHECK_OFFSET(OSAlarm, 0x04, name);
109 CHECK_OFFSET(OSAlarm, 0x0c, callback);
110 CHECK_OFFSET(OSAlarm, 0x10, group);
111 CHECK_OFFSET(OSAlarm, 0x18, nextFire);
112 CHECK_OFFSET(OSAlarm, 0x20, link);
113 CHECK_OFFSET(OSAlarm, 0x28, period);
114 CHECK_OFFSET(OSAlarm, 0x30, tbrStart);
115 CHECK_OFFSET(OSAlarm, 0x38, userData);
116 CHECK_OFFSET(OSAlarm, 0x3c, state);
117 CHECK_OFFSET(OSAlarm, 0x40, threadQueue);
118 CHECK_OFFSET(OSAlarm, 0x50, alarmQueue);
119 CHECK_OFFSET(OSAlarm, 0x54, context);
120 CHECK_SIZE(OSAlarm, 0x58);
OSAlarmQueue * alarmQueue
The queue that this alarm is currently in.
void(* OSAlarmCallback)(OSAlarm *, OSContext *)
const char * name
Name set from OSCreateAlarmEx.
BOOL OSSetAlarm(OSAlarm *alarm, OSTime time, OSAlarmCallback callback)
uint32_t group
Used with OSCancelAlarms for bulk cancellation of alarms.
OSThreadQueue threadQueue
BOOL OSCancelAlarm(OSAlarm *alarm)
void OSCreateAlarmEx(OSAlarm *alarm, const char *name)
OSTime nextFire
The time when the alarm will next be triggered.
void OSInitAlarmQueueEx(OSAlarmQueue *queue, const char *name)
OSTime period
The period between alarm triggers, this is only set for periodic alarms.
void * OSGetAlarmUserData(OSAlarm *alarm)
OSAlarmLink link
Link used for when this OSAlarm object is inside an OSAlarmQueue.
uint32_t tag
Should always be set to the value OS_ALARM_TAG.
BOOL OSWaitAlarm(OSAlarm *alarm)
void * userData
User data set with OSSetAlarmUserData and retrieved with OSGetAlarmUserData.
void OSSetAlarmUserData(OSAlarm *alarm, void *data)
void OSInitAlarmQueue(OSAlarmQueue *queue)
OSContext * context
The context the alarm was triggered on.
uint32_t state
The current state of the alarm, internal values.
BOOL OSSetPeriodicAlarm(OSAlarm *alarm, OSTime start, OSTime interval, OSAlarmCallback callback)
OSTime start
The time the alarm was started.
void OSCreateAlarm(OSAlarm *alarm)
OSAlarmCallback callback
The callback to execute once the alarm is triggered.
OSThreadQueue threadQueue
Queue of threads currently waiting for the alarm to trigger with OSWaitAlarm.
void OSSetAlarmTag(OSAlarm *alarm, uint32_t group)
void OSCancelAlarms(uint32_t group)