Pin-change interrupt on all pins of a port. More...
#include <externalirq.h>
Public Member Functions | |
ExternalIRQPort (IOSpecialReg *ctrl, HWPort *port) | |
void | PinStateHasChanged (Pin *pin) |
Protected Attributes | |
bool | state [8] |
saved states from all pins | |
Pin * | pins [8] |
pins of port for identifying, which bit is changed | |
int | portSize |
how much pins the port controls |
Pin-change interrupt on all pins of a port.
Definition at line 137 of file externalirq.h.
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.
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.
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().