Alarm Class Reference
List of all members.
Detailed Description
level
Alarm object
- Author:
- EPOS-- and Group 06
Definition at line 24 of file alarm.h.
Member Typedef Documentation
The alarm callback handler
Defies the HandlerQueue type
Definition at line 48 of file alarm.h.
Constructor & Destructor Documentation
Alarm::Alarm |
( |
const RTC::Microseconds & |
time, |
|
|
int |
times, |
|
|
Handler |
handler | |
|
) |
| | |
Alarm constructor for asynchronous function callback
- Parameters:
-
| time | the number of RTC::Microseconds (unsigned long) |
| times | the number of times to repeat the Alarm the callback to be called asynchronously |
Definition at line 50 of file alarm.cc.
Alarm::Alarm |
( |
const RTC::Microseconds & |
time, |
|
|
int |
times | |
|
) |
| | |
Alarm constructor that will free a waiting after the alarm conclusion
Definition at line 60 of file alarm.cc.
Member Function Documentation
int Alarm::alarmLoop |
( |
|
) |
[static] |
AlarmLoop callback.
Definition at line 25 of file alarm.cc.
void Alarm::delay |
( |
const RTC::Microseconds & |
time |
) |
[static] |
Delays the Thread that called the delay
- Parameters:
-
| time | the number of RTC::Microseconds to wait until the execution is proceeded |
Definition at line 87 of file alarm.cc.
static TSC::Hertz Alarm::frequency |
( |
|
) |
[inline, static] |
Returns the current frequency of the Timer
Definition at line 87 of file alarm.h.
int Alarm::init |
( |
System_Info * |
si |
) |
[static] |
void Alarm::master |
( |
const RTC::Microseconds & |
time, |
|
|
const Handler & |
handler | |
|
) |
| | [static, private] |
Private setMaster function
- Parameters:
-
| time | the number of microseconds between each activation of the master |
| handler | the master callback |
Definition at line 74 of file alarm.cc.
static RTC::Microseconds Alarm::period |
( |
|
) |
[inline, static] |
void Alarm::timerHandler |
( |
void |
|
) |
[static, private] |
The internal timerHandler function
free all waiting Thread
Definition at line 94 of file alarm.cc.
Waits the alarm to signal. If already signaled and times equals to zero doesn't wait and if the times is different of zero than waits till the next signal
Only waits if the Alarm has yet to be signalized
Definition at line 82 of file alarm.cc.
Member Data Documentation
The number of time elapsed since the system initialization
Definition at line 162 of file alarm.h.
The handler link to the HandlerQueue
Definition at line 152 of file alarm.h.
A Queue of Handler that will be called from the Handler Thread
Definition at line 182 of file alarm.h.
Internal link to intrusive list
Definition at line 138 of file alarm.h.
The interval of ticks of the master Alarm
Definition at line 172 of file alarm.h.
The number of _ticks to signal the Alarm
Definition at line 130 of file alarm.h.
Timer singleton
Definition at line 157 of file alarm.h.
Number of times that the Alarm will be signalized
Definition at line 134 of file alarm.h.
ATOMIC constant (for better code reading)
Definition at line 41 of file alarm.h.
Defines the Alarm frequency as an alias to Traits<Timer>::FREQUENCY
Definition at line 36 of file alarm.h.
defines a SINGLE_TIME constant, which is actually the number one
Definition at line 58 of file alarm.h.
The documentation for this class was generated from the following files:
- /home/andref/projetos/epos--/include/alarm.h
- /home/andref/projetos/epos--/src/abstraction/alarm.cc
- /home/andref/projetos/epos--/src/abstraction/alarm_init.cc