simulavr  1.1.0
HWTimerTinyX5 Class Reference

timer unit for timer 1 on ATtiny25/45/85 More...

#include <hwtimer.h>

Inheritance diagram for HWTimerTinyX5:

Public Member Functions

 HWTimerTinyX5 (AvrDevice *core, IOSpecialReg *gtccr, IOSpecialReg *pllcsr, IRQLine *tov, IRQLine *tocra, const PinAtPort &ocra_out, const PinAtPort &ocra_outinv, IRQLine *tocrb, const PinAtPort &ocrb_out, const PinAtPort &ocrb_outinv)
 
 ~HWTimerTinyX5 ()
 
int Step (bool &untilCoreStepFinished, SystemClockOffset *nextStepIn_ns)
 Performs the async clocking, if necessary. More...
 
void Reset ()
 Perform a reset of this unit. More...
 
unsigned int CpuCycle ()
 Process timer/counter unit operations by CPU cycle. More...
 
- Public Member Functions inherited from Hardware
 Hardware (AvrDevice *core)
 
virtual ~Hardware ()
 
virtual void ClearIrqFlag (unsigned int vector)
 
virtual bool IsLevelInterrupt (unsigned int vector)
 
virtual bool LevelInterruptPending (unsigned int vector)
 
- Public Member Functions inherited from TraceValueRegister
 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...
 
TraceValueRegisterGetScopeGroupByName (const std::string &name)
 Get a here registered TraceValueRegister by it's name. More...
 
virtual TraceValueGetTraceValueByName (const std::string &name)
 Get a here registered TraceValue by it's name. More...
 
TraceValueRegisterFindScopeGroupByName (const std::string &name)
 Seek for a TraceValueRegister by it's name. More...
 
TraceValueFindTraceValueByName (const std::string &name)
 Seek for a TraceValue by it's name. More...
 
TraceSetGetAllTraceValues (void)
 Get all here registered TraceValue's only (not with descending values) More...
 
TraceSetGetAllTraceValuesRecursive (void)
 Get all here registered TraceValue's with descending values. More...
 
- Public Member Functions inherited from SimulationMember
virtual ~SimulationMember ()
 
- Public Member Functions inherited from IOSpecialRegClient
virtual ~IOSpecialRegClient ()
 

Public Attributes

IOReg< HWTimerTinyX5tccr_reg
 control register More...
 
IOReg< HWTimerTinyX5tcnt_reg
 counter register More...
 
IOReg< HWTimerTinyX5tocra_reg
 OCR register channel A. More...
 
IOReg< HWTimerTinyX5tocrb_reg
 OCR register channel B. More...
 
IOReg< HWTimerTinyX5tocrc_reg
 OCR register channel C. More...
 
IOReg< HWTimerTinyX5dtps1_reg
 dead time generator prescaler register More...
 
IOReg< HWTimerTinyX5dt1a_reg
 dead time generator register channel A More...
 
IOReg< HWTimerTinyX5dt1b_reg
 dead time generator register channel B More...
 

Protected Member Functions

void Set_TCNT (unsigned char val)
 Register access to set counter register. More...
 
unsigned char Get_TCNT ()
 Register access to read counter register. More...
 
void Set_TCCR (unsigned char val)
 Register access to set control register. More...
 
unsigned char Get_TCCR ()
 Register access to read control register. More...
 
void Set_OCRA (unsigned char val)
 Register access to set output compare register A. More...
 
unsigned char Get_OCRA ()
 Register access to read output compare register A. More...
 
void Set_OCRB (unsigned char val)
 Register access to set output compare register B. More...
 
unsigned char Get_OCRB ()
 Register access to read output compare register B. More...
 
void Set_OCRC (unsigned char val)
 Register access to set output compare register C. More...
 
unsigned char Get_OCRC ()
 Register access to read output compare register C. More...
 
void Set_DTPS1 (unsigned char val)
 Register access to set dead time prescaler. More...
 
unsigned char Get_DTPS1 ()
 Register access to read dead time prescaler. More...
 
void Set_DT1A (unsigned char val)
 Register access to set dead time value for channel A. More...
 
unsigned char Get_DT1A ()
 Register access to read dead time value for channel A. More...
 
void Set_DT1B (unsigned char val)
 Register access to set dead time value for channel B. More...
 
unsigned char Get_DT1B ()
 Register access to read dead time value for channel B. More...
 
unsigned char set_from_reg (const IOSpecialReg *reg, unsigned char nv)
 IO register interface set method, see IOSpecialRegClient. More...
 
unsigned char get_from_client (const IOSpecialReg *reg, unsigned char v)
 IO register interface get method, see IOSpecialRegClient. More...
 
void SetPrescalerClock (bool pcke)
 Set clock source for prescaler. More...
 
void TimerCounter (void)
 Count function, contains prescaler, multiplexer and counter functionality. More...
 
bool PrescalerMux (void)
 Prescaler multiplex function, returns true, if a count pulse is happen. More...
 
bool DeadTimePrescalerMux (void)
 Dead time prescaler multiplex function, returns true, if a count pulse is happen. More...
 
void TransferInputValues (void)
 Transfer register input to internal register set. More...
 
void TransferOutputValues (void)
 Transfer internal register values (if needed) to by core readable register. More...
 
- Protected Member Functions inherited from TraceValueRegister
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...
 

Protected Attributes

AvrDevicecore
 pointer to device core More...
 
IOSpecialReggtccrRegister
 instance of GTCCR register More...
 
IOSpecialRegpllcsrRegister
 instance of PLLCSR register More...
 
IOSpecialRegdtps1Register
 instance of DTPS1 register More...
 
IOSpecialRegdt1aRegister
 instance of DT1A register More...
 
IOSpecialRegdt1bRegister
 instance of DT1B register More...
 
IRQLinetimerOverflowInt
 irq line for overflow interrupt More...
 
IRQLinetimerOCRAInt
 irq line for output compare A interrupt More...
 
IRQLinetimerOCRBInt
 irq line for output compare B interrupt More...
 

Private Types

enum  TMODEtype { TMODE_NORMAL = 0x0, TMODE_PWMA = 0x1, TMODE_PWMB = 0x2 }
 

Private Attributes

TraceValuecounterTrace
 TraceValue instance for counter itself. More...
 
TraceValueprescalerTrace
 TraceValue instance for prescaler. More...
 
TraceValuedTPrescalerTrace
 TraceValue instance for dead time prescaler. More...
 
unsigned long counter
 THE timer counter. More...
 
unsigned long prescaler
 THE prescaler counter. More...
 
unsigned char dtprescaler
 dead time prescaler counter More...
 
HWTimerTinyX5_SyncReg tccr_inout_val
 register value TCCR1 More...
 
HWTimerTinyX5_SyncReg ocra_inout_val
 register value OCRA More...
 
HWTimerTinyX5_SyncReg ocrb_inout_val
 register value OCRB More...
 
HWTimerTinyX5_SyncReg ocrc_inout_val
 register value OCRC More...
 
HWTimerTinyX5_SyncReg gtccr_in_val
 input register value GTCCR More...
 
unsigned char dtps1_inout_val
 register value DTPS1 More...
 
HWTimerTinyX5_SyncReg dt1a_inout_val
 register value DT1A More...
 
HWTimerTinyX5_SyncReg dt1b_inout_val
 register value DT1B More...
 
unsigned char tcnt_out_val
 output register value for TCNT More...
 
unsigned char tcnt_out_async_tmp
 temporary register value for TCNT in async mode More...
 
unsigned char tcnt_in_val
 input register value for TCNT More...
 
bool tcnt_set_flag
 flag to signal, that a new counter value was set More...
 
bool tov_internal_flag
 TOV flag is set, have to be delayed by 1 CK. More...
 
bool tocra_internal_flag
 OCFxA flag is set, have to be delayed by 1 CK. More...
 
bool tocrb_internal_flag
 OCFxB flag is set, have to be delayed by 1 CK. More...
 
unsigned char ocra_internal_val
 internal (async) register value for OCRA1 More...
 
unsigned long ocra_compare
 active compare value for OCR A unit More...
 
TimerTinyX5_OCR ocra_unit
 OCR control unit for OCR channel A. More...
 
unsigned char ocrb_internal_val
 internal (async) register value for OCRB1 More...
 
unsigned long ocrb_compare
 active compare value for OCR B unit More...
 
TimerTinyX5_OCR ocrb_unit
 OCR control unit for OCR channel B. More...
 
int cfg_prescaler
 internal (async) prescaler setting More...
 
int cfg_dtprescaler
 internal (async) dead time prescaler setting More...
 
int cfg_mode
 internal (async) timer mode setting More...
 
bool cfg_ctc
 internal (async) flag for clear timer counter More...
 
int cfg_com_a
 internal (async) setting for compare output modul A More...
 
int cfg_com_b
 internal (async) setting for compare output modul B More...
 
int asyncClock_step
 step counter for step delays. -1, if not in async mode More...
 
bool asyncClock_async
 mode switch for async mode More...
 
bool asyncClock_lsm
 mode switch for lsm mode (32MHz clock) More...
 
bool asyncClock_pll
 pll is switched on More...
 
bool asyncClock_plllock
 pll frequency is locked More...
 
SystemClockOffset asyncClock_locktime
 time, when pll is locked More...
 

Detailed Description

timer unit for timer 1 on ATtiny25/45/85

Timer1 on ATtiny25/45/85 is an async timer, which can be clocked till 64MHz by pll from system clock.

Definition at line 778 of file hwtimer.h.

Member Enumeration Documentation

◆ TMODEtype

Enumerator
TMODE_NORMAL 

timer in normal mode, upcounting from 0x0 to 0xff or 0 to OCRC (CTC mode)

TMODE_PWMA 

timer in PWM mode, upcounting from 0 to OCRC, PWM A active

TMODE_PWMB 

timer in PWM mode, upcounting from 0 to OCRC, PWM B active

Definition at line 826 of file hwtimer.h.

Constructor & Destructor Documentation

◆ HWTimerTinyX5()

HWTimerTinyX5::HWTimerTinyX5 ( AvrDevice core,
IOSpecialReg gtccr,
IOSpecialReg pllcsr,
IRQLine tov,
IRQLine tocra,
const PinAtPort ocra_out,
const PinAtPort ocra_outinv,
IRQLine tocrb,
const PinAtPort ocrb_out,
const PinAtPort ocrb_outinv 
)

◆ ~HWTimerTinyX5()

HWTimerTinyX5::~HWTimerTinyX5 ( )
inline

Definition at line 934 of file hwtimer.h.

Member Function Documentation

◆ CpuCycle()

unsigned int HWTimerTinyX5::CpuCycle ( void  )
virtual

Process timer/counter unit operations by CPU cycle.

Reimplemented from Hardware.

Definition at line 1434 of file hwtimer.cpp.

References asyncClock_locktime, asyncClock_pll, asyncClock_plllock, asyncClock_step, SystemClock::Instance(), TimerCounter(), TransferInputValues(), and TransferOutputValues().

◆ DeadTimePrescalerMux()

bool HWTimerTinyX5::DeadTimePrescalerMux ( void  )
protected

Dead time prescaler multiplex function, returns true, if a count pulse is happen.

Definition at line 1562 of file hwtimer.cpp.

References cfg_dtprescaler, TraceValue::change(), dtprescaler, and dTPrescalerTrace.

Referenced by TimerCounter().

◆ Get_DT1A()

unsigned char HWTimerTinyX5::Get_DT1A ( )
inlineprotected

Register access to read dead time value for channel A.

Definition at line 884 of file hwtimer.h.

References HWTimerTinyX5_SyncReg::GetBusValue().

◆ Get_DT1B()

unsigned char HWTimerTinyX5::Get_DT1B ( )
inlineprotected

Register access to read dead time value for channel B.

Definition at line 889 of file hwtimer.h.

References HWTimerTinyX5_SyncReg::GetBusValue().

◆ Get_DTPS1()

unsigned char HWTimerTinyX5::Get_DTPS1 ( )
inlineprotected

Register access to read dead time prescaler.

Definition at line 879 of file hwtimer.h.

◆ get_from_client()

unsigned char HWTimerTinyX5::get_from_client ( const IOSpecialReg reg,
unsigned char  v 
)
protectedvirtual

IO register interface get method, see IOSpecialRegClient.

Implements IOSpecialRegClient.

Definition at line 1622 of file hwtimer.cpp.

References asyncClock_plllock, gtccrRegister, and pllcsrRegister.

◆ Get_OCRA()

unsigned char HWTimerTinyX5::Get_OCRA ( )
inlineprotected

Register access to read output compare register A.

Definition at line 864 of file hwtimer.h.

References HWTimerTinyX5_SyncReg::GetBusValue().

◆ Get_OCRB()

unsigned char HWTimerTinyX5::Get_OCRB ( )
inlineprotected

Register access to read output compare register B.

Definition at line 869 of file hwtimer.h.

References HWTimerTinyX5_SyncReg::GetBusValue().

◆ Get_OCRC()

unsigned char HWTimerTinyX5::Get_OCRC ( )
inlineprotected

Register access to read output compare register C.

Definition at line 874 of file hwtimer.h.

References HWTimerTinyX5_SyncReg::GetBusValue().

◆ Get_TCCR()

unsigned char HWTimerTinyX5::Get_TCCR ( )
inlineprotected

Register access to read control register.

Definition at line 859 of file hwtimer.h.

References HWTimerTinyX5_SyncReg::GetBusValue().

◆ Get_TCNT()

unsigned char HWTimerTinyX5::Get_TCNT ( )
inlineprotected

Register access to read counter register.

Definition at line 854 of file hwtimer.h.

◆ PrescalerMux()

bool HWTimerTinyX5::PrescalerMux ( void  )
protected

Prescaler multiplex function, returns true, if a count pulse is happen.

Definition at line 1502 of file hwtimer.cpp.

References cfg_prescaler, TraceValue::change(), prescaler, and prescalerTrace.

Referenced by TimerCounter().

◆ Reset()

◆ Set_DT1A()

void HWTimerTinyX5::Set_DT1A ( unsigned char  val)
inlineprotected

Register access to set dead time value for channel A.

Definition at line 882 of file hwtimer.h.

◆ Set_DT1B()

void HWTimerTinyX5::Set_DT1B ( unsigned char  val)
inlineprotected

Register access to set dead time value for channel B.

Definition at line 887 of file hwtimer.h.

◆ Set_DTPS1()

void HWTimerTinyX5::Set_DTPS1 ( unsigned char  val)
inlineprotected

Register access to set dead time prescaler.

Definition at line 877 of file hwtimer.h.

◆ set_from_reg()

unsigned char HWTimerTinyX5::set_from_reg ( const IOSpecialReg reg,
unsigned char  nv 
)
protectedvirtual

◆ Set_OCRA()

void HWTimerTinyX5::Set_OCRA ( unsigned char  val)
inlineprotected

Register access to set output compare register A.

Definition at line 862 of file hwtimer.h.

◆ Set_OCRB()

void HWTimerTinyX5::Set_OCRB ( unsigned char  val)
inlineprotected

Register access to set output compare register B.

Definition at line 867 of file hwtimer.h.

◆ Set_OCRC()

void HWTimerTinyX5::Set_OCRC ( unsigned char  val)
inlineprotected

Register access to set output compare register C.

Definition at line 872 of file hwtimer.h.

◆ Set_TCCR()

void HWTimerTinyX5::Set_TCCR ( unsigned char  val)
inlineprotected

Register access to set control register.

Definition at line 857 of file hwtimer.h.

◆ Set_TCNT()

void HWTimerTinyX5::Set_TCNT ( unsigned char  val)
inlineprotected

Register access to set counter register.

Definition at line 852 of file hwtimer.h.

◆ SetPrescalerClock()

void HWTimerTinyX5::SetPrescalerClock ( bool  pcke)
protected

Set clock source for prescaler.

Definition at line 1635 of file hwtimer.cpp.

References SystemClock::Add(), asyncClock_async, asyncClock_lsm, asyncClock_step, and SystemClock::Instance().

Referenced by Reset(), and set_from_reg().

◆ Step()

int HWTimerTinyX5::Step ( bool &  untilCoreStepFinished,
SystemClockOffset nextStepIn_ns 
)
virtual

Performs the async clocking, if necessary.

Implements SimulationMember.

Definition at line 1411 of file hwtimer.cpp.

References asyncClock_async, asyncClock_lsm, asyncClock_step, DumpManager::cycle(), HWTimerTinyX5_nextdelay, DumpManager::Instance(), TimerCounter(), and TransferInputValues().

◆ TimerCounter()

void HWTimerTinyX5::TimerCounter ( void  )
protected

◆ TransferInputValues()

◆ TransferOutputValues()

void HWTimerTinyX5::TransferOutputValues ( void  )
protected

Transfer internal register values (if needed) to by core readable register.

Definition at line 1719 of file hwtimer.cpp.

References asyncClock_step, counter, IRQLine::fireInterrupt(), tcnt_out_async_tmp, tcnt_out_val, timerOCRAInt, timerOCRBInt, timerOverflowInt, tocra_internal_flag, tocrb_internal_flag, and tov_internal_flag.

Referenced by CpuCycle().

Member Data Documentation

◆ asyncClock_async

bool HWTimerTinyX5::asyncClock_async
private

mode switch for async mode

Definition at line 834 of file hwtimer.h.

Referenced by HWTimerTinyX5(), SetPrescalerClock(), and Step().

◆ asyncClock_locktime

SystemClockOffset HWTimerTinyX5::asyncClock_locktime
private

time, when pll is locked

Definition at line 838 of file hwtimer.h.

Referenced by CpuCycle(), and set_from_reg().

◆ asyncClock_lsm

bool HWTimerTinyX5::asyncClock_lsm
private

mode switch for lsm mode (32MHz clock)

Definition at line 835 of file hwtimer.h.

Referenced by set_from_reg(), SetPrescalerClock(), and Step().

◆ asyncClock_pll

bool HWTimerTinyX5::asyncClock_pll
private

pll is switched on

Definition at line 836 of file hwtimer.h.

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

◆ asyncClock_plllock

bool HWTimerTinyX5::asyncClock_plllock
private

pll frequency is locked

Definition at line 837 of file hwtimer.h.

Referenced by CpuCycle(), get_from_client(), Reset(), and set_from_reg().

◆ asyncClock_step

int HWTimerTinyX5::asyncClock_step
private

step counter for step delays. -1, if not in async mode

Definition at line 833 of file hwtimer.h.

Referenced by CpuCycle(), HWTimerTinyX5(), SetPrescalerClock(), Step(), and TransferOutputValues().

◆ cfg_com_a

int HWTimerTinyX5::cfg_com_a
private

internal (async) setting for compare output modul A

Definition at line 823 of file hwtimer.h.

Referenced by Reset(), and TransferInputValues().

◆ cfg_com_b

int HWTimerTinyX5::cfg_com_b
private

internal (async) setting for compare output modul B

Definition at line 824 of file hwtimer.h.

Referenced by Reset(), and TransferInputValues().

◆ cfg_ctc

bool HWTimerTinyX5::cfg_ctc
private

internal (async) flag for clear timer counter

Definition at line 822 of file hwtimer.h.

Referenced by Reset(), TimerCounter(), and TransferInputValues().

◆ cfg_dtprescaler

int HWTimerTinyX5::cfg_dtprescaler
private

internal (async) dead time prescaler setting

Definition at line 820 of file hwtimer.h.

Referenced by DeadTimePrescalerMux(), and TransferInputValues().

◆ cfg_mode

int HWTimerTinyX5::cfg_mode
private

internal (async) timer mode setting

Definition at line 821 of file hwtimer.h.

Referenced by Reset(), TimerCounter(), and TransferInputValues().

◆ cfg_prescaler

int HWTimerTinyX5::cfg_prescaler
private

internal (async) prescaler setting

Definition at line 819 of file hwtimer.h.

Referenced by PrescalerMux(), Reset(), and TransferInputValues().

◆ core

AvrDevice* HWTimerTinyX5::core
protected

pointer to device core

Definition at line 841 of file hwtimer.h.

◆ counter

unsigned long HWTimerTinyX5::counter
private

THE timer counter.

Definition at line 789 of file hwtimer.h.

Referenced by Reset(), TimerCounter(), TransferInputValues(), and TransferOutputValues().

◆ counterTrace

TraceValue* HWTimerTinyX5::counterTrace
private

TraceValue instance for counter itself.

Definition at line 784 of file hwtimer.h.

Referenced by HWTimerTinyX5(), and TimerCounter().

◆ dt1a_inout_val

HWTimerTinyX5_SyncReg HWTimerTinyX5::dt1a_inout_val
private

register value DT1A

Definition at line 800 of file hwtimer.h.

Referenced by Reset(), and TransferInputValues().

◆ dt1a_reg

IOReg<HWTimerTinyX5> HWTimerTinyX5::dt1a_reg

dead time generator register channel A

Definition at line 921 of file hwtimer.h.

Referenced by AvrDevice_attinyX5::AvrDevice_attinyX5().

◆ dt1aRegister

IOSpecialReg* HWTimerTinyX5::dt1aRegister
protected

instance of DT1A register

Definition at line 845 of file hwtimer.h.

◆ dt1b_inout_val

HWTimerTinyX5_SyncReg HWTimerTinyX5::dt1b_inout_val
private

register value DT1B

Definition at line 801 of file hwtimer.h.

Referenced by Reset(), and TransferInputValues().

◆ dt1b_reg

IOReg<HWTimerTinyX5> HWTimerTinyX5::dt1b_reg

dead time generator register channel B

Definition at line 922 of file hwtimer.h.

Referenced by AvrDevice_attinyX5::AvrDevice_attinyX5().

◆ dt1bRegister

IOSpecialReg* HWTimerTinyX5::dt1bRegister
protected

instance of DT1B register

Definition at line 846 of file hwtimer.h.

◆ dtprescaler

unsigned char HWTimerTinyX5::dtprescaler
private

dead time prescaler counter

Definition at line 791 of file hwtimer.h.

Referenced by DeadTimePrescalerMux(), and Reset().

◆ dTPrescalerTrace

TraceValue* HWTimerTinyX5::dTPrescalerTrace
private

TraceValue instance for dead time prescaler.

Definition at line 786 of file hwtimer.h.

Referenced by DeadTimePrescalerMux(), and HWTimerTinyX5().

◆ dtps1_inout_val

unsigned char HWTimerTinyX5::dtps1_inout_val
private

register value DTPS1

Definition at line 799 of file hwtimer.h.

Referenced by Reset(), and TransferInputValues().

◆ dtps1_reg

IOReg<HWTimerTinyX5> HWTimerTinyX5::dtps1_reg

dead time generator prescaler register

Definition at line 920 of file hwtimer.h.

Referenced by AvrDevice_attinyX5::AvrDevice_attinyX5().

◆ dtps1Register

IOSpecialReg* HWTimerTinyX5::dtps1Register
protected

instance of DTPS1 register

Definition at line 844 of file hwtimer.h.

◆ gtccr_in_val

HWTimerTinyX5_SyncReg HWTimerTinyX5::gtccr_in_val
private

input register value GTCCR

Definition at line 798 of file hwtimer.h.

Referenced by Reset(), set_from_reg(), and TransferInputValues().

◆ gtccrRegister

IOSpecialReg* HWTimerTinyX5::gtccrRegister
protected

instance of GTCCR register

Definition at line 842 of file hwtimer.h.

Referenced by get_from_client(), HWTimerTinyX5(), and set_from_reg().

◆ ocra_compare

unsigned long HWTimerTinyX5::ocra_compare
private

active compare value for OCR A unit

Definition at line 814 of file hwtimer.h.

Referenced by TimerCounter(), and TransferInputValues().

◆ ocra_inout_val

HWTimerTinyX5_SyncReg HWTimerTinyX5::ocra_inout_val
private

register value OCRA

Definition at line 795 of file hwtimer.h.

Referenced by Reset(), and TransferInputValues().

◆ ocra_internal_val

unsigned char HWTimerTinyX5::ocra_internal_val
private

internal (async) register value for OCRA1

Definition at line 813 of file hwtimer.h.

Referenced by Reset(), TimerCounter(), and TransferInputValues().

◆ ocra_unit

TimerTinyX5_OCR HWTimerTinyX5::ocra_unit
private

OCR control unit for OCR channel A.

Definition at line 815 of file hwtimer.h.

Referenced by Reset(), TimerCounter(), and TransferInputValues().

◆ ocrb_compare

unsigned long HWTimerTinyX5::ocrb_compare
private

active compare value for OCR B unit

Definition at line 817 of file hwtimer.h.

Referenced by TimerCounter(), and TransferInputValues().

◆ ocrb_inout_val

HWTimerTinyX5_SyncReg HWTimerTinyX5::ocrb_inout_val
private

register value OCRB

Definition at line 796 of file hwtimer.h.

Referenced by Reset(), and TransferInputValues().

◆ ocrb_internal_val

unsigned char HWTimerTinyX5::ocrb_internal_val
private

internal (async) register value for OCRB1

Definition at line 816 of file hwtimer.h.

Referenced by Reset(), TimerCounter(), and TransferInputValues().

◆ ocrb_unit

TimerTinyX5_OCR HWTimerTinyX5::ocrb_unit
private

OCR control unit for OCR channel B.

Definition at line 818 of file hwtimer.h.

Referenced by Reset(), TimerCounter(), and TransferInputValues().

◆ ocrc_inout_val

HWTimerTinyX5_SyncReg HWTimerTinyX5::ocrc_inout_val
private

register value OCRC

Definition at line 797 of file hwtimer.h.

Referenced by Reset(), TimerCounter(), and TransferInputValues().

◆ pllcsrRegister

IOSpecialReg* HWTimerTinyX5::pllcsrRegister
protected

instance of PLLCSR register

Definition at line 843 of file hwtimer.h.

Referenced by get_from_client(), HWTimerTinyX5(), and set_from_reg().

◆ prescaler

unsigned long HWTimerTinyX5::prescaler
private

THE prescaler counter.

Definition at line 790 of file hwtimer.h.

Referenced by PrescalerMux(), Reset(), and set_from_reg().

◆ prescalerTrace

TraceValue* HWTimerTinyX5::prescalerTrace
private

TraceValue instance for prescaler.

Definition at line 785 of file hwtimer.h.

Referenced by HWTimerTinyX5(), and PrescalerMux().

◆ tccr_inout_val

HWTimerTinyX5_SyncReg HWTimerTinyX5::tccr_inout_val
private

register value TCCR1

Definition at line 794 of file hwtimer.h.

Referenced by Reset(), and TransferInputValues().

◆ tccr_reg

IOReg<HWTimerTinyX5> HWTimerTinyX5::tccr_reg

control register

Definition at line 915 of file hwtimer.h.

Referenced by AvrDevice_attinyX5::AvrDevice_attinyX5().

◆ tcnt_in_val

unsigned char HWTimerTinyX5::tcnt_in_val
private

input register value for TCNT

Definition at line 806 of file hwtimer.h.

Referenced by Reset(), and TransferInputValues().

◆ tcnt_out_async_tmp

unsigned char HWTimerTinyX5::tcnt_out_async_tmp
private

temporary register value for TCNT in async mode

Definition at line 805 of file hwtimer.h.

Referenced by TransferOutputValues().

◆ tcnt_out_val

unsigned char HWTimerTinyX5::tcnt_out_val
private

output register value for TCNT

Definition at line 804 of file hwtimer.h.

Referenced by Reset(), and TransferOutputValues().

◆ tcnt_reg

IOReg<HWTimerTinyX5> HWTimerTinyX5::tcnt_reg

counter register

Definition at line 916 of file hwtimer.h.

Referenced by AvrDevice_attinyX5::AvrDevice_attinyX5().

◆ tcnt_set_flag

bool HWTimerTinyX5::tcnt_set_flag
private

flag to signal, that a new counter value was set

Definition at line 807 of file hwtimer.h.

Referenced by Reset(), and TransferInputValues().

◆ timerOCRAInt

IRQLine* HWTimerTinyX5::timerOCRAInt
protected

irq line for output compare A interrupt

Definition at line 848 of file hwtimer.h.

Referenced by TransferOutputValues().

◆ timerOCRBInt

IRQLine* HWTimerTinyX5::timerOCRBInt
protected

irq line for output compare B interrupt

Definition at line 849 of file hwtimer.h.

Referenced by TransferOutputValues().

◆ timerOverflowInt

IRQLine* HWTimerTinyX5::timerOverflowInt
protected

irq line for overflow interrupt

Definition at line 847 of file hwtimer.h.

Referenced by TransferOutputValues().

◆ tocra_internal_flag

bool HWTimerTinyX5::tocra_internal_flag
private

OCFxA flag is set, have to be delayed by 1 CK.

Definition at line 809 of file hwtimer.h.

Referenced by Reset(), TimerCounter(), and TransferOutputValues().

◆ tocra_reg

IOReg<HWTimerTinyX5> HWTimerTinyX5::tocra_reg

OCR register channel A.

Definition at line 917 of file hwtimer.h.

Referenced by AvrDevice_attinyX5::AvrDevice_attinyX5().

◆ tocrb_internal_flag

bool HWTimerTinyX5::tocrb_internal_flag
private

OCFxB flag is set, have to be delayed by 1 CK.

Definition at line 810 of file hwtimer.h.

Referenced by Reset(), TimerCounter(), and TransferOutputValues().

◆ tocrb_reg

IOReg<HWTimerTinyX5> HWTimerTinyX5::tocrb_reg

OCR register channel B.

Definition at line 918 of file hwtimer.h.

Referenced by AvrDevice_attinyX5::AvrDevice_attinyX5().

◆ tocrc_reg

IOReg<HWTimerTinyX5> HWTimerTinyX5::tocrc_reg

OCR register channel C.

Definition at line 919 of file hwtimer.h.

Referenced by AvrDevice_attinyX5::AvrDevice_attinyX5().

◆ tov_internal_flag

bool HWTimerTinyX5::tov_internal_flag
private

TOV flag is set, have to be delayed by 1 CK.

Definition at line 808 of file hwtimer.h.

Referenced by Reset(), TimerCounter(), and TransferOutputValues().


The documentation for this class was generated from the following files: