The Pedigree Project
0.1
|
#include <Decrementer.h>
Public Member Functions | |
virtual bool | registerHandler (TimerHandler *handler) |
bool | initialise () INITIALISATION_ONLY |
void | uninitialise () |
Decrementer () INITIALISATION_ONLY | |
virtual | ~Decrementer () |
Private Member Functions | |
Decrementer (const Decrementer &) | |
Decrementer & | operator= (const Decrementer &) |
virtual void | interrupt (size_t interruptNumber, InterruptState &state) |
virtual | ~InterruptHandler () |
Private Attributes | |
TimerHandler * | m_Handler |
uint32_t | m_Frequency |
Static Private Attributes | |
static Decrementer | m_Instance |
Additional Inherited Members | |
Protected Member Functions inherited from SchedulerTimer | |
SchedulerTimer () | |
virtual | ~SchedulerTimer () |
The decrementer timer implements the SchedulerTimer interface
Definition at line 33 of file Decrementer.h.
Decrementer::Decrementer | ( | ) |
The default constructor
Definition at line 68 of file Decrementer.cc.
Referenced by ~Decrementer().
|
inlinevirtual |
The destructor
Definition at line 50 of file Decrementer.h.
References Decrementer(), interrupt(), and operator=().
|
private |
The copy-constructor
bool Decrementer::initialise | ( | ) |
Initialises the class
Definition at line 41 of file Decrementer.cc.
References InterruptManager::instance(), OpenFirmware::instance(), m_Frequency, and WARNING.
|
privatevirtual |
Called when the handler is registered with the interrupt manager and the interrupt occurred
[in] | nInterruptNumber | the interrupt number |
[in] | state | reference to the state before the interrupt |
Implements InterruptHandler.
Definition at line 74 of file Decrementer.cc.
References LIKELY, m_Frequency, m_Handler, and TimerHandler::timer().
Referenced by ~Decrementer().
|
private |
The assignment operator
Referenced by ~Decrementer().
void Decrementer::uninitialise | ( | ) |
Uninitialises the class
Definition at line 64 of file Decrementer.cc.
|
private |
The rate of the decrementer, in hertz
Definition at line 71 of file Decrementer.h.
Referenced by initialise(), and interrupt().
|
private |
|
staticprivate |
The Decrementer class instance
Definition at line 74 of file Decrementer.h.