HWAcomp Class Reference

#include <hwacomp.h>

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

List of all members.

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< HWAcompacsr_reg

Protected Attributes

HWIrqSystemirqSystem
PinAtPort pinAin0
PinAtPort pinAin1
unsigned char acsr
unsigned int irqVec

Detailed Description

Definition at line 36 of file hwacomp.h.


Constructor & Destructor Documentation

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().

Here is the call graph for this function:


Member Function Documentation

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.

Here is the call graph for this function:

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().

Here is the call graph for this function:

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().

Here is the caller graph for this function:

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().

Here is the call graph for this function:


Member Data Documentation

unsigned char HWAcomp::acsr [protected]

Definition at line 42 of file hwacomp.h.

Referenced by ClearIrqFlag(), GetAcsr(), PinStateHasChanged(), Reset(), and SetAcsr().

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().

Definition at line 39 of file hwacomp.h.

Referenced by PinStateHasChanged().

Definition at line 40 of file hwacomp.h.

Referenced by PinStateHasChanged().


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