41 const std::string &tracename,
56 const std::string &tracename,
94 const std::string &tracename,
102 clockSelectBit(clockSelBit)
111 const std::string &tracename,
118 HWPrescaler(core, tracename, ioreg, resetBit, resetSyncBit),
Basic AVR device, contains the core functionality.
bool pinstate
saved pin status of osc. pin
void AddToCycleList(Hardware *hw)
PinAtPort tosc_pin
input pin for external timer oscillator
IOSpecialReg * resetRegister
instance of IO register with reset bits
int _resetBit
holds bit position for reset bit on IO register
virtual unsigned int CpuCycle()
Count functionality for prescaler.
unsigned char set_from_reg(const IOSpecialReg *reg, unsigned char nv)
IO register interface set method, see IOSpecialRegClient.
void connectSRegClient(IOSpecialRegClient *c)
Registers a client to this IO register to inform this client on read or write access.
IOSpecialReg * asyncRegister
instance of IO register with assr bits
int clockSelectBit
holds bit position of counter clock select
HWPrescalerAsync(AvrDevice *core, const std::string &tracename, PinAtPort tosc_pin, IOSpecialReg *asyreg, int clockSelBit, IOSpecialReg *resreg, int resetBit)
Creates HWPrescalerAsync instance with reset but without sync reset feature.
TraceValueCoreRegister coreTraceGroup
bool clockselect
holds the clock select state, true is external clock
void Reset()
Reset method, sets prescaler counter to 0.
int _resetSyncBit
holds sync bit position for prescaler reset synchronisation
Prescaler unit for support timers with clock.
unsigned short preScaleValue
prescaler counter value
HWPrescaler(AvrDevice *core, const std::string &tracename)
Creates HWPrescaler instance without reset feature.
unsigned char set_from_reg(const IOSpecialReg *reg, unsigned char nv)
IO register interface set method, see IOSpecialRegClient.
TraceValue * trace_direct(TraceValueRegister *t, const std::string &name, const bool *val)
Register a directly traced bool value.