The Pedigree Project  0.1
Public Member Functions | Private Member Functions | Private Attributes | Static Private Attributes | List of all members
Decrementer Class Reference

#include <Decrementer.h>

+ Inheritance diagram for Decrementer:
+ Collaboration diagram for Decrementer:

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 &)
 
Decrementeroperator= (const Decrementer &)
 
virtual void interrupt (size_t interruptNumber, InterruptState &state)
 
virtual ~InterruptHandler ()
 

Private Attributes

TimerHandlerm_Handler
 
uint32_t m_Frequency
 

Static Private Attributes

static Decrementer m_Instance
 

Additional Inherited Members

- Protected Member Functions inherited from SchedulerTimer
 SchedulerTimer ()
 
virtual ~SchedulerTimer ()
 

Detailed Description

The decrementer timer implements the SchedulerTimer interface

Definition at line 33 of file Decrementer.h.

Constructor & Destructor Documentation

Decrementer::Decrementer ( )

The default constructor

Definition at line 68 of file Decrementer.cc.

Referenced by ~Decrementer().

+ Here is the caller graph for this function:

virtual Decrementer::~Decrementer ( )
inlinevirtual

The destructor

Definition at line 50 of file Decrementer.h.

References Decrementer(), interrupt(), and operator=().

Decrementer::Decrementer ( const Decrementer )
private

The copy-constructor

Note
NOT implemented

Member Function Documentation

bool Decrementer::initialise ( )

Initialises the class

Returns
true, if successful, false otherwise

Definition at line 41 of file Decrementer.cc.

References InterruptManager::instance(), OpenFirmware::instance(), m_Frequency, and WARNING.

void Decrementer::interrupt ( size_t  nInterruptNumber,
InterruptState &  state 
)
privatevirtual

Called when the handler is registered with the interrupt manager and the interrupt occurred

Parameters
[in]nInterruptNumberthe interrupt number
[in]statereference 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().

+ Here is the caller graph for this function:

Decrementer& Decrementer::operator= ( const Decrementer )
private

The assignment operator

Note
NOT implemented

Referenced by ~Decrementer().

+ Here is the caller graph for this function:

void Decrementer::uninitialise ( )

Uninitialises the class

Definition at line 64 of file Decrementer.cc.

Member Data Documentation

uint32_t Decrementer::m_Frequency
private

The rate of the decrementer, in hertz

Definition at line 71 of file Decrementer.h.

Referenced by initialise(), and interrupt().

TimerHandler* Decrementer::m_Handler
private

The scheduler

Definition at line 68 of file Decrementer.h.

Referenced by interrupt().

Decrementer Decrementer::m_Instance
staticprivate

The Decrementer class instance

Definition at line 74 of file Decrementer.h.


The documentation for this class was generated from the following files: