Extends HWPrescaler with a external clock oszillator pin. More...
#include <timerprescaler.h>


Public Member Functions | |
| 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. | |
| HWPrescalerAsync (AvrDevice *core, const std::string &tracename, PinAtPort tosc_pin, IOSpecialReg *asyreg, int clockSelBit, IOSpecialReg *resreg, int resetBit, int resetSyncBit) | |
| Creates HWPrescalerAsync instance with reset and sync reset feature. | |
| virtual unsigned int | CpuCycle () |
| Count functionality for prescaler. | |
Protected Member Functions | |
| unsigned char | set_from_reg (const IOSpecialReg *reg, unsigned char nv) |
| IO register interface set method, see IOSpecialRegClient. | |
Private Attributes | |
| IOSpecialReg * | asyncRegister |
| instance of IO register with assr bits | |
| PinAtPort | tosc_pin |
| input pin for external timer oscillator | |
| bool | pinstate |
| saved pin status of osc. pin | |
| bool | clockselect |
| holds the clock select state, true is external clock | |
| int | clockSelectBit |
| holds bit position of counter clock select | |
Extends HWPrescaler with a external clock oszillator pin.
Definition at line 83 of file timerprescaler.h.
| HWPrescalerAsync::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.
Definition at line 93 of file timerprescaler.cpp.
References asyncRegister, clockselect, IOSpecialReg::connectSRegClient(), PinAtPort::GetPin(), pinstate, and tosc_pin.

| HWPrescalerAsync::HWPrescalerAsync | ( | AvrDevice * | core, | |
| const std::string & | tracename, | |||
| PinAtPort | tosc_pin, | |||
| IOSpecialReg * | asyreg, | |||
| int | clockSelBit, | |||
| IOSpecialReg * | resreg, | |||
| int | resetBit, | |||
| int | resetSyncBit | |||
| ) |
Creates HWPrescalerAsync instance with reset and sync reset feature.
Definition at line 110 of file timerprescaler.cpp.
References asyncRegister, clockselect, IOSpecialReg::connectSRegClient(), PinAtPort::GetPin(), pinstate, and tosc_pin.

| unsigned int HWPrescalerAsync::CpuCycle | ( | void | ) | [virtual] |
Count functionality for prescaler.
Reimplemented from HWPrescaler.
Definition at line 128 of file timerprescaler.cpp.
References clockselect, HWPrescaler::countEnable, PinAtPort::GetPin(), pinstate, HWPrescaler::preScaleValue, and tosc_pin.

| unsigned char HWPrescalerAsync::set_from_reg | ( | const IOSpecialReg * | reg, | |
| unsigned char | nv | |||
| ) | [protected, virtual] |
IO register interface set method, see IOSpecialRegClient.
Reimplemented from HWPrescaler.
Definition at line 142 of file timerprescaler.cpp.
References asyncRegister, clockselect, and clockSelectBit.
IOSpecialReg* HWPrescalerAsync::asyncRegister [private] |
instance of IO register with assr bits
Definition at line 111 of file timerprescaler.h.
Referenced by HWPrescalerAsync(), and set_from_reg().
bool HWPrescalerAsync::clockselect [private] |
holds the clock select state, true is external clock
Definition at line 114 of file timerprescaler.h.
Referenced by CpuCycle(), HWPrescalerAsync(), and set_from_reg().
int HWPrescalerAsync::clockSelectBit [private] |
holds bit position of counter clock select
Definition at line 115 of file timerprescaler.h.
Referenced by set_from_reg().
bool HWPrescalerAsync::pinstate [private] |
saved pin status of osc. pin
Definition at line 113 of file timerprescaler.h.
Referenced by CpuCycle(), and HWPrescalerAsync().
PinAtPort HWPrescalerAsync::tosc_pin [private] |
input pin for external timer oscillator
Definition at line 112 of file timerprescaler.h.
Referenced by CpuCycle(), and HWPrescalerAsync().
1.6.3