|
simulavr
1.1.0
|
PrescalerMultiplexer with external count pin. More...
#include <prescalermux.h>
Public Member Functions | |
| PrescalerMultiplexerExt (HWPrescaler *ps, PinAtPort pi) | |
| Creates a multiplexer instance with a count input pin, connected with prescaler. More... | |
| virtual bool | isClock (unsigned int cs) |
Public Member Functions inherited from PrescalerMultiplexer | |
| PrescalerMultiplexer (HWPrescaler *ps) | |
| Creates a multiplexer instance, connected with prescaler. More... | |
| virtual | ~PrescalerMultiplexer () |
Protected Attributes | |
| PinAtPort | clkpin |
| bool | clkpin_old |
Protected Attributes inherited from PrescalerMultiplexer | |
| HWPrescaler * | prescaler |
| pointer to prescaler More... | |
PrescalerMultiplexer with external count pin.
Multiplexer with the following clock rates: no clock, CK, CK/8, CK/64, CK/256, CK/1024 and falling or rising edge on external count pin. Clock is the clock from prescaler.
Definition at line 55 of file prescalermux.h.
| PrescalerMultiplexerExt::PrescalerMultiplexerExt | ( | HWPrescaler * | ps, |
| PinAtPort | pi | ||
| ) |
Creates a multiplexer instance with a count input pin, connected with prescaler.
Definition at line 65 of file prescalermux.cpp.
References clkpin, and clkpin_old.
|
virtual |
Requests a clock event depending on cs
| cs | multiplexer select value |
Reimplemented from PrescalerMultiplexer.
Definition at line 71 of file prescalermux.cpp.
References avr_error, clkpin, clkpin_old, HWPrescaler::GetValue(), and PrescalerMultiplexer::prescaler.
|
protected |
Definition at line 58 of file prescalermux.h.
Referenced by isClock(), and PrescalerMultiplexerExt().
|
protected |
Definition at line 59 of file prescalermux.h.
Referenced by isClock(), and PrescalerMultiplexerExt().