simulavr
1.1.0
|
#include <hwwado.h>
Public Member Functions | |
HWWado (AvrDevice *) | |
virtual unsigned int | CpuCycle () |
void | SetWdtcr (unsigned char val) |
unsigned char | GetWdtcr () |
void | Wdr () |
void | Reset () |
![]() | |
Hardware (AvrDevice *core) | |
virtual | ~Hardware () |
virtual void | ClearIrqFlag (unsigned int vector) |
virtual bool | IsLevelInterrupt (unsigned int vector) |
virtual bool | LevelInterruptPending (unsigned int vector) |
![]() | |
TraceValueRegister (TraceValueRegister *parent, const std::string &name) | |
Create a TraceValueRegister, with a scope prefix built on parent scope + name. More... | |
TraceValueRegister () | |
Create a TraceValueRegister, with a empty scope name, single device application. More... | |
virtual | ~TraceValueRegister () |
const std::string | GetTraceValuePrefix (void) |
Returns the scope prefix. More... | |
const std::string | GetScopeName (void) |
Returns the scope name. More... | |
void | RegisterTraceValue (TraceValue *t) |
Registers a TraceValue for this register. More... | |
void | UnregisterTraceValue (TraceValue *t) |
Unregisters a TraceValue, remove it from register. More... | |
TraceValueRegister * | GetScopeGroupByName (const std::string &name) |
Get a here registered TraceValueRegister by it's name. More... | |
virtual TraceValue * | GetTraceValueByName (const std::string &name) |
Get a here registered TraceValue by it's name. More... | |
TraceValueRegister * | FindScopeGroupByName (const std::string &name) |
Seek for a TraceValueRegister by it's name. More... | |
TraceValue * | FindTraceValueByName (const std::string &name) |
Seek for a TraceValue by it's name. More... | |
TraceSet * | GetAllTraceValues (void) |
Get all here registered TraceValue's only (not with descending values) More... | |
TraceSet * | GetAllTraceValuesRecursive (void) |
Get all here registered TraceValue's with descending values. More... | |
Public Attributes | |
IOReg< HWWado > | wdtcr_reg |
Protected Attributes | |
unsigned char | wdtcr |
unsigned char | cntWde |
SystemClockOffset | timeOutAt |
AvrDevice * | core |
Additional Inherited Members | |
![]() | |
virtual size_t | _tvr_getValuesCount (void) |
Get the count of all TraceValues, that are registered here and descending. More... | |
virtual void | _tvr_insertTraceValuesToSet (TraceSet &t) |
Insert all TraceValues into TraceSet, that registered here and descending. More... | |
HWWado::HWWado | ( | AvrDevice * | c | ) |
Definition at line 68 of file hwwado.cpp.
References AvrDevice::AddToCycleList(), core, and Reset().
|
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.
|
inline |
|
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 cntWde, timeOutAt, and wdtcr.
Referenced by GetWdtcr(), and HWWado().
void HWWado::SetWdtcr | ( | unsigned char | val | ) |
void HWWado::Wdr | ( | ) |
Definition at line 85 of file hwwado.cpp.
References SystemClock::GetCurrentTime(), SystemClock::Instance(), timeOutAt, and wdtcr.
Referenced by GetWdtcr(), and avr_op_WDR::operator()().
|
protected |
Definition at line 41 of file hwwado.h.
Referenced by CpuCycle(), Reset(), and SetWdtcr().
|
protected |
Definition at line 43 of file hwwado.h.
Referenced by CpuCycle(), and HWWado().
|
protected |
Definition at line 42 of file hwwado.h.
Referenced by CpuCycle(), Reset(), and Wdr().
|
protected |
Definition at line 40 of file hwwado.h.
Referenced by CpuCycle(), GetWdtcr(), Reset(), SetWdtcr(), and Wdr().
Definition at line 54 of file hwwado.h.
Referenced by AvrDevice_at90canbase::AvrDevice_at90canbase(), and AvrDevice_atmega16_32::AvrDevice_atmega16_32().