|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectkeso.core.AlarmService
public final class AlarmService
Provides access to Counter/Alarm related OSEK system services.
| Constructor Summary | |
|---|---|
AlarmService()
|
|
| Method Summary | |
|---|---|
static int |
cancelAlarm(Alarm alarmID)
Cancels the Alarm specified by alarmID. |
static int |
getAlarm(Alarm alarmID)
Query relative value in ticks before the Alarm expires. |
static int |
getAlarmBase(Alarm alarmID,
AlarmBase info)
Read the AlarmBase characteristics of an Alarm. |
static Alarm |
getAlarmByName(String name)
Get a reference to an Alarm object by specifying its name as it was defined in KESORC. |
static int |
setAbsAlarm(Alarm alarmID,
int start,
int cycle)
Winds up the Alarm specified by alarmID using an absolute counter value. |
static int |
setRelAlarm(Alarm alarmID,
int increment,
int cycle)
Winds up the Alarm specified by alarmID relative to the current counter value. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait |
| Constructor Detail |
|---|
public AlarmService()
| Method Detail |
|---|
public static int getAlarmBase(Alarm alarmID,
AlarmBase info)
alarmID - Alarm system object the base of which is to be determined.info - output AlarmBase object where the attributes of the underlying
counter will be stored in.
public static int getAlarm(Alarm alarmID)
alarmID - Alarm system object of the alarm to be queried
public static int setRelAlarm(Alarm alarmID,
int increment,
int cycle)
alarmID - Alarm system object of the alarm to be configuredincrement - number of counter (major) ticks relative to the current
counter value until the alarm triggerscycle - number of counter (major) ticks that a cyclic alarm is
triggered with. Becomes active after the first shot
configured by increment was triggered. Use 0 for a
single-shot alarm.
public static int setAbsAlarm(Alarm alarmID,
int start,
int cycle)
alarmID - Alarm system object of the alarm to be configuredstart - absolute counter (major) tick value at which the alarm
triggerscycle - number of counter (major) ticks that a cyclic alarm is
triggered with. Becomes active after the first shot
configured by increment was triggered. Use 0 for a
single-shot alarm.
public static int cancelAlarm(Alarm alarmID)
alarmID - Alarm system object of the alarm to be configured
public static Alarm getAlarmByName(String name)
name - Name of the alarm whose system object should be returned.
Must be a String constant.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||