wut  v1.7.0
Wii U Toolchain
Data Structures | Macros | Typedefs | Functions
alarm.h File Reference
#include <wut.h>
#include "threadqueue.h"
#include "time.h"
#include "context.h"
Include dependency graph for alarm.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  OSAlarmQueue
 
struct  OSAlarm
 

Macros

#define OS_ALARM_QUEUE_TAG   0x614C6D51u
 
#define OS_ALARM_TAG   0x614C724Du
 

Typedefs

typedef struct OSAlarm OSAlarm
 
typedef struct OSAlarmLink OSAlarmLink
 
typedef struct OSAlarmQueue OSAlarmQueue
 
typedef void(* OSAlarmCallback) (OSAlarm *, OSContext *)
 

Functions

BOOL OSCancelAlarm (OSAlarm *alarm)
 Cancel an alarm. More...
 
void OSCancelAlarms (uint32_t group)
 Cancel all alarms which have a matching tag set by OSSetAlarmTag. More...
 
void OSCreateAlarm (OSAlarm *alarm)
 Initialise an alarm structure. More...
 
void OSCreateAlarmEx (OSAlarm *alarm, const char *name)
 Initialise an alarm structure with a name. More...
 
void * OSGetAlarmUserData (OSAlarm *alarm)
 Return user data set by OSSetAlarmUserData. More...
 
void OSInitAlarmQueue (OSAlarmQueue *queue)
 Initialise an alarm queue structure. More...
 
void OSInitAlarmQueueEx (OSAlarmQueue *queue, const char *name)
 Initialise an alarm queue structure with a name. More...
 
BOOL OSSetAlarm (OSAlarm *alarm, OSTime time, OSAlarmCallback callback)
 Set a one shot alarm to perform a callback after a set amount of time. More...
 
BOOL OSSetPeriodicAlarm (OSAlarm *alarm, OSTime start, OSTime interval, OSAlarmCallback callback)
 Set a repeated alarm to execute a callback every interval from start. More...
 
void OSSetAlarmTag (OSAlarm *alarm, uint32_t group)
 Set an alarm tag which is used in OSCancelAlarms for bulk cancellation. More...
 
void OSSetAlarmUserData (OSAlarm *alarm, void *data)
 Set alarm user data which is returned by OSGetAlarmUserData. More...
 
BOOL OSWaitAlarm (OSAlarm *alarm)
 Sleep the current thread until the alarm has been triggered or cancelled. More...