MansOS Alarm

From DiLab
Revision as of 21:07, 28 August 2010 by Leo (talk | contribs) (New page: __NOTOC__ NOTE: This feature is not implemented as described currently. Older interface version exists. '''Include file:''' #include "alarm.h" == Data types == '''AlarmId_t''' - alarm ...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

NOTE: This feature is not implemented as described currently. Older interface version exists.

Include file:

#include "alarm.h"

Data types

AlarmId_t - alarm handle for identifying the alarm when calling the alarm procedures.


Functions

Prototype Description
AlarmId_t alarmNew();
Create a new alarm. Returns the ID for the new alarm.
void alarmSet( AlarmId_t id, AlarmType_t, uint delayInMs );
Set the alarm type and time period. Do not start the alarm. Stop the alarm if it is already running.
void alarmStart( AlarmId_t id );
Start the alarm. Resets the alarm if it was already running.
void alarmStop( AlarmId_t id );
Stop the alarm. You may start this alarm later again.