PrescalerMultiplexerExt Class Reference

PrescalerMultiplexer with external count pin. More...

#include <prescalermux.h>

Inheritance diagram for PrescalerMultiplexerExt:
Inheritance graph
[legend]
Collaboration diagram for PrescalerMultiplexerExt:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 PrescalerMultiplexerExt (HWPrescaler *ps, PinAtPort pi)
 Creates a multiplexer instance with a count input pin, connected with prescaler.
virtual bool isClock (unsigned int cs)

Protected Attributes

PinAtPort clkpin
bool clkpin_old

Detailed Description

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 54 of file prescalermux.h.


Constructor & Destructor Documentation

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.


Member Function Documentation

bool PrescalerMultiplexerExt::isClock ( unsigned int  cs  )  [virtual]

Requests a clock event depending on cs

Parameters:
cs multiplexer select value
Returns:
true, if a clock event occured

Reimplemented from PrescalerMultiplexer.

Definition at line 71 of file prescalermux.cpp.

References avr_error, clkpin, clkpin_old, HWPrescaler::GetValue(), and PrescalerMultiplexer::prescaler.

Here is the call graph for this function:


Member Data Documentation

Definition at line 57 of file prescalermux.h.

Referenced by isClock(), and PrescalerMultiplexerExt().

Definition at line 58 of file prescalermux.h.

Referenced by isClock(), and PrescalerMultiplexerExt().


The documentation for this class was generated from the following files:
Generated on Sun Feb 12 16:52:59 2012 for Simulavr by  doxygen 1.6.3