ExternalIRQPort Class Reference

Pin-change interrupt on all pins of a port. More...

#include <externalirq.h>

Inheritance diagram for ExternalIRQPort:
Inheritance graph
[legend]
Collaboration diagram for ExternalIRQPort:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 ExternalIRQPort (IOSpecialReg *ctrl, HWPort *port)
void PinStateHasChanged (Pin *pin)

Protected Attributes

bool state [8]
 saved states from all pins
Pinpins [8]
 pins of port for identifying, which bit is changed
int portSize
 how much pins the port controls

Detailed Description

Pin-change interrupt on all pins of a port.

Definition at line 137 of file externalirq.h.


Constructor & Destructor Documentation

ExternalIRQPort::ExternalIRQPort ( IOSpecialReg ctrl,
HWPort port 
)

Definition at line 220 of file externalirq.cpp.

References HWPort::GetPin(), HWPort::GetPortSize(), pins, portSize, Pin::RegisterCallback(), ExternalIRQ::ResetMode(), and state.

Here is the call graph for this function:


Member Function Documentation

void ExternalIRQPort::PinStateHasChanged ( Pin pin  )  [virtual]

Implements HasPinNotifyFunction.

Definition at line 238 of file externalirq.cpp.

References ExternalIRQ::fireInterrupt(), ExternalIRQ::mode, pins, portSize, and state.

Here is the call graph for this function:


Member Data Documentation

Pin* ExternalIRQPort::pins[8] [protected]

pins of port for identifying, which bit is changed

Definition at line 141 of file externalirq.h.

Referenced by ExternalIRQPort(), and PinStateHasChanged().

int ExternalIRQPort::portSize [protected]

how much pins the port controls

Definition at line 142 of file externalirq.h.

Referenced by ExternalIRQPort(), and PinStateHasChanged().

bool ExternalIRQPort::state[8] [protected]

saved states from all pins

Definition at line 140 of file externalirq.h.

Referenced by ExternalIRQPort(), and PinStateHasChanged().


The documentation for this class was generated from the following files:
Generated on Sun Feb 12 16:51:02 2012 for Simulavr by  doxygen 1.6.3