HWWado Class Reference

#include <hwwado.h>

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

List of all members.

Public Member Functions

 HWWado (AvrDevice *)
virtual unsigned int CpuCycle ()
void SetWdtcr (unsigned char val)
unsigned char GetWdtcr ()
void Wdr ()
void Reset ()

Public Attributes

IOReg< HWWadowdtcr_reg

Protected Attributes

unsigned char wdtcr
unsigned char cntWde
SystemClockOffset timeOutAt
AvrDevicecore

Detailed Description

Watchdog (WDT) peripheral. Interrupts are not implemented.

Definition at line 38 of file hwwado.h.


Constructor & Destructor Documentation

HWWado::HWWado ( AvrDevice c  ) 

Definition at line 68 of file hwwado.cpp.

References AvrDevice::AddToCycleList(), core, and Reset().

Here is the call graph for this function:


Member Function Documentation

unsigned int HWWado::CpuCycle ( void   )  [virtual]

Called for each AVR cycle when this hardware has registered itself as a receiver for AVR clocks. Returns nonzero if instructions should not be executed (e.g. a Flash write is in progress).

Reimplemented from Hardware.

Definition at line 52 of file hwwado.cpp.

References cntWde, core, SystemClock::GetCurrentTime(), SystemClock::Instance(), AvrDevice::Reset(), timeOutAt, WDE, wdtcr, and WDTOE.

Here is the call graph for this function:

unsigned char HWWado::GetWdtcr (  )  [inline]

Definition at line 50 of file hwwado.h.

References wdtcr.

void HWWado::Reset ( void   )  [virtual]

Implement the hardware's reset functionality here. The default is no action on reset.

Reimplemented from Hardware.

Definition at line 78 of file hwwado.cpp.

References timeOutAt, and wdtcr.

Referenced by HWWado().

Here is the caller graph for this function:

void HWWado::SetWdtcr ( unsigned char  val  ) 

Definition at line 34 of file hwwado.cpp.

References cntWde, WDE, wdtcr, and WDTOE.

void HWWado::Wdr (  ) 

Definition at line 84 of file hwwado.cpp.

References SystemClock::GetCurrentTime(), SystemClock::Instance(), timeOutAt, and wdtcr.

Referenced by avr_op_WDR::operator()().

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

unsigned char HWWado::cntWde [protected]

Definition at line 41 of file hwwado.h.

Referenced by CpuCycle(), and SetWdtcr().

AvrDevice* HWWado::core [protected]

Definition at line 43 of file hwwado.h.

Referenced by CpuCycle(), and HWWado().

Definition at line 42 of file hwwado.h.

Referenced by CpuCycle(), Reset(), and Wdr().

unsigned char HWWado::wdtcr [protected]

Definition at line 40 of file hwwado.h.

Referenced by CpuCycle(), GetWdtcr(), Reset(), SetWdtcr(), and Wdr().


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