Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

Zygoma::Interrupt Class Reference

#include <interrupt.h>

List of all members.


Detailed Description

The base class for an inyerrupt service routine.

Drivers wishing to implement an interrupt service route must provide an object implementing this interface to the interrupt handler.

The phase 1 handler is called with interrupts disabled and nees to be small, fast, and efficient. It should return true to indicate it has services the interrupt, false otherwise.

The phase 2 handler is called with interrupts enabled. It is called only if the phase 1 handler indicated that it serviced the interrupt successfully.


Public Member Functions

virtual ~Interrupt ()=0
 Purve virtual Interrupt destructor.
virtual bool phase1 (int interruptNumber, void *serviceData)=0
 The phase 1 interrupt handler.
virtual void phase2 (int interruptNumber, void *serviceData)=0
 The phase 2 interrupt handler.


Constructor & Destructor Documentation

Zygoma::Interrupt::~Interrupt  )  [inline, pure virtual]
 

Purve virtual Interrupt destructor.


Member Function Documentation

virtual bool Zygoma::Interrupt::phase1 int  interruptNumber,
void *  serviceData
[pure virtual]
 

The phase 1 interrupt handler.

Parameters:
interruptNumber [IN] The number of the interrupt to be serviced.
serviceData [IN] User-define data,
Invoked with interrupts disabled.

Returns:
true if the interrupt was services successfully, false otherwise.

virtual void Zygoma::Interrupt::phase2 int  interruptNumber,
void *  serviceData
[pure virtual]
 

The phase 2 interrupt handler.

Parameters:
interruptNumber [IN] The number of the interrupt to be serviced.
serviceData [IN] User-define data,
Invoked with interrupts enabled.


The documentation for this class was generated from the following file:
Generated on Fri Sep 2 10:45:07 2005 for zygoma by doxygen 1.4.2