Go to the source code of this file.
Classes | |
| struct | AlarmBaseType |
| This data type represents a structure for storage of counter characteristics. More... | |
| struct | t_counter |
| struct | t_alarm |
Defines | |
| #define | ALARMCALLBACK(x) void x(AlarmType AlarmID) |
Typedefs | |
| typedef unsigned | TickType |
| This data type represents count values in ticks. | |
| typedef TickType * | TickRefType |
| typedef AlarmBaseType * | AlarmBaseRefType |
| typedef t_alarm * | AlarmType |
Functions | |
| StatusType | GetAlarmBase (AlarmType AlarmId, AlarmBaseRefType info) |
| The system service GetAlarmBase reads the alarm base characteristics. | |
| StatusType | GetAlarm (AlarmType AlarmID, TickRefType Info) |
| The system service GetAlarm returns the relative value in ticks before the alarm <AlarmID> expires. | |
| StatusType | SetRelAlarm (AlarmType AlarmID, TickType increment, TickType cycle) |
| The system service occupies the alarm <AlarmID> element. | |
| StatusType | SetAbsAlarm (AlarmType AlarmID, TickType start, TickType cycle) |
| The system service occupies the alarm <AlarmID> element. | |
| StatusType | CancelAlarm (AlarmType AlarmID) |
| The system service cancels the alarm <AlarmID>. | |
Definition in file alarm.h.
|
|
The system service cancels the alarm <AlarmID>.
|
|
||||||||||||
|
The system service GetAlarm returns the relative value in ticks before the alarm <AlarmID> expires.
|
|
||||||||||||
|
The system service GetAlarmBase reads the alarm base characteristics. The return value <Info> is a structure in which the information of data type AlarmBaseType is stored.
|
|
||||||||||||||||
|
The system service occupies the alarm <AlarmID> element. When <start> ticks are reached, the task assigned to the alarm <AlarmID> is activated or the assigned event (only for extended tasks) is set or the alarm-callback routine is called. If the absolute value <start> is very close to the current counter value, the alarm may expire, and the task may become ready or the alarm-callback may be called before the system service returns to the user. If the absolute value <start> already was reached before the system call, the alarm shall only expire when the absolute value <start> is reached again, i.e. after the next overrun of the counter. If <cycle> is unequal zero, the alarm element is logged on again immediately after expiry with the relative value <cycle>. The alarm <AlarmID> shall not already be in use. To change values of alarms already in use the alarm shall be cancelled first. If the alarm is already in use, this call will be ignored and the error E_OS_STATE is returned. Allowed on task level and in ISR, but not in hook routines.
|
|
||||||||||||||||
|
The system service occupies the alarm <AlarmID> element. After <increment> ticks have elapsed, the task assigned to the alarm <AlarmID> is activated or the assigned event (only for extended tasks) is set or the alarm-callback routine is called. The behaviour of <increment> equal to 0 is up to the implementation. If the relative value <increment> is very small, the alarm may expire, and the task may become ready or the alarm-callback may be called before the system service returns to the user. If <cycle> is unequal zero, the alarm element is logged on again immediately after expiry with the relative value <cycle>. The alarm <AlarmID> must not already be in use. To change values of alarms already in use the alarm shall be cancelled first. If the alarm is already in use, this call will be ignored and the error E_OS_STATE is returned. Allowed on task level and in ISR, but not in hook routines.
|
1.4.6