#include <hwacomp.h>
Public Member Functions | |
HWAcomp (AvrDevice *core, HWIrqSystem *irqsys, PinAtPort ain0, PinAtPort ain1, unsigned int irqVec) | |
unsigned char | GetAcsr () |
void | SetAcsr (unsigned char val) |
void | Reset () |
void | ClearIrqFlag (unsigned int vec) |
void | PinStateHasChanged (Pin *) |
Public Attributes | |
IOReg< HWAcomp > | acsr_reg |
Protected Attributes | |
HWIrqSystem * | irqSystem |
PinAtPort | pinAin0 |
PinAtPort | pinAin1 |
unsigned char | acsr |
unsigned int | irqVec |
Definition at line 36 of file hwacomp.h.
HWAcomp::HWAcomp | ( | AvrDevice * | core, | |
HWIrqSystem * | irqsys, | |||
PinAtPort | ain0, | |||
PinAtPort | ain1, | |||
unsigned int | irqVec | |||
) |
Definition at line 39 of file hwacomp.cpp.
References HWIrqSystem::DebugVerifyInterruptVector(), PinAtPort::GetPin(), irqSystem, irqVec, Pin::RegisterCallback(), and Reset().
void HWAcomp::ClearIrqFlag | ( | unsigned int | vector | ) | [virtual] |
This signals the hardware that the given IRQ vector has been handled by the AVR core.
Reimplemented from Hardware.
Definition at line 106 of file hwacomp.cpp.
References ACI, acsr, HWIrqSystem::ClearIrqFlag(), irqSystem, and irqVec.
unsigned char HWAcomp::GetAcsr | ( | ) |
Definition at line 74 of file hwacomp.cpp.
References acsr.
void HWAcomp::PinStateHasChanged | ( | Pin * | p | ) | [virtual] |
Implements HasPinNotifyFunction.
Definition at line 78 of file hwacomp.cpp.
References ACI, ACIE, ACIS0, ACIS1, ACO, acsr, PinAtPort::GetAnalog(), irqSystem, irqVec, pinAin0, pinAin1, and HWIrqSystem::SetIrqFlag().
void HWAcomp::Reset | ( | void | ) | [virtual] |
Implement the hardware's reset functionality here. The default is no action on reset.
Reimplemented from Hardware.
Definition at line 54 of file hwacomp.cpp.
References acsr.
Referenced by HWAcomp().
void HWAcomp::SetAcsr | ( | unsigned char | val | ) |
Definition at line 58 of file hwacomp.cpp.
References ACI, ACIE, acsr, HWIrqSystem::ClearIrqFlag(), irqSystem, irqVec, and HWIrqSystem::SetIrqFlag().
unsigned char HWAcomp::acsr [protected] |
Definition at line 42 of file hwacomp.h.
Referenced by ClearIrqFlag(), GetAcsr(), PinStateHasChanged(), Reset(), and SetAcsr().
Definition at line 53 of file hwacomp.h.
Referenced by AvrDevice_at90canbase::AvrDevice_at90canbase(), AvrDevice_at90s4433::AvrDevice_at90s4433(), and AvrDevice_at90s8515::AvrDevice_at90s8515().
HWIrqSystem* HWAcomp::irqSystem [protected] |
Definition at line 38 of file hwacomp.h.
Referenced by ClearIrqFlag(), HWAcomp(), PinStateHasChanged(), and SetAcsr().
unsigned int HWAcomp::irqVec [protected] |
Definition at line 43 of file hwacomp.h.
Referenced by ClearIrqFlag(), HWAcomp(), PinStateHasChanged(), and SetAcsr().
PinAtPort HWAcomp::pinAin0 [protected] |
Definition at line 39 of file hwacomp.h.
Referenced by PinStateHasChanged().
PinAtPort HWAcomp::pinAin1 [protected] |
Definition at line 40 of file hwacomp.h.
Referenced by PinStateHasChanged().