PrescalerMultiplexer Class Reference

PrescalerMultiplexer without external count pin. More...

#include <prescalermux.h>

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

List of all members.

Public Member Functions

 PrescalerMultiplexer (HWPrescaler *ps)
 Creates a multiplexer instance, connected with prescaler.
virtual bool isClock (unsigned int cs)

Protected Attributes

HWPrescalerprescaler
 pointer to prescaler

Detailed Description

PrescalerMultiplexer without external count pin.

Multiplexer with the following clock rates: no clock, CK, CK/8, CK/32, CK/64, CK/128, CK/256, CK/1024. Clock is the clock from prescaler.

Definition at line 35 of file prescalermux.h.


Constructor & Destructor Documentation

PrescalerMultiplexer::PrescalerMultiplexer ( HWPrescaler ps  ) 

Creates a multiplexer instance, connected with prescaler.

Definition at line 29 of file prescalermux.cpp.


Member Function Documentation

bool PrescalerMultiplexer::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 in PrescalerMultiplexerExt, and PrescalerMultiplexerT15.

Definition at line 32 of file prescalermux.cpp.

References avr_error, HWPrescaler::GetValue(), and prescaler.

Referenced by BasicTimerUnit::CpuCycle().

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

pointer to prescaler

Definition at line 38 of file prescalermux.h.

Referenced by PrescalerMultiplexerExt::isClock(), and isClock().


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