Difference between revisions of "MansOS Alarm"

From DiLab
Jump to: navigation, search
(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 ...)
(No difference)

Revision as of 21:07, 28 August 2010

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.