MansOS Alarm
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. |