AVRCpp::Timer::TimerCounter0 Struct Reference

#include <Timer.h>

Inherits AVRCpp::Timer::Internal::TwoChannel8BitTimer< CounterRegister, OutputCompareRegisterA, OutputCompareRegisterB, ControlRegisterA, ControlRegisterB, ClockEnum, ChannelAOutputPin, ChannelBOutputPin >< _TCNT0,_OCR0A,_OCR0B,_TCCR0A,_TCCR0B,ClockB,OutputPin3< PortB >,OutputPin4< PortB > >.

List of all members.

Public Types

typedef OutputCompareRegisterA OutputCompareA
typedef OutputCompareRegisterB OutputCompareB
typedef ChannelAOutputPin ChannelAPin
typedef ChannelBOutputPin ChannelBPin
typedef CounterRegister Counter

Static Public Member Functions

static void ForceOutputCompareA ()
static void ForceOutputCompareB ()
static void SetUp (ClockEnum clock, FixedTop8 fixedTop8, CompareOutputModeA compareOutputModeA, CompareOutputModeB compareOutputModeB)
static void SetUp (ClockEnum clock, TopFromOutputCompareA8 topFromOutputCompareA8, CompareOutputModeB compareOutputModeB)
static void SelectClock (ClockEnumclock)
static uint8_t GetSelectedClock ()

Classes

struct  CompareMatchAInterrupt
struct  CompareMatchBInterrupt
struct  OverflowInterrupt


Detailed Description

Definition at line 81 of file Timer.h.


Member Typedef Documentation

template<class CounterRegister, class OutputCompareRegisterA, class OutputCompareRegisterB, class ControlRegisterA, class ControlRegisterB, class ClockEnum, class ChannelAOutputPin, class ChannelBOutputPin>
typedef OutputCompareRegisterA AVRCpp::Timer::Internal::TwoChannel8BitTimer< CounterRegister, OutputCompareRegisterA, OutputCompareRegisterB, ControlRegisterA, ControlRegisterB, ClockEnum, ChannelAOutputPin, ChannelBOutputPin >::OutputCompareA [inherited]

Definition at line 386 of file Timer.h.

template<class CounterRegister, class OutputCompareRegisterA, class OutputCompareRegisterB, class ControlRegisterA, class ControlRegisterB, class ClockEnum, class ChannelAOutputPin, class ChannelBOutputPin>
typedef OutputCompareRegisterB AVRCpp::Timer::Internal::TwoChannel8BitTimer< CounterRegister, OutputCompareRegisterA, OutputCompareRegisterB, ControlRegisterA, ControlRegisterB, ClockEnum, ChannelAOutputPin, ChannelBOutputPin >::OutputCompareB [inherited]

Definition at line 387 of file Timer.h.

template<class CounterRegister, class OutputCompareRegisterA, class OutputCompareRegisterB, class ControlRegisterA, class ControlRegisterB, class ClockEnum, class ChannelAOutputPin, class ChannelBOutputPin>
typedef ChannelAOutputPin AVRCpp::Timer::Internal::TwoChannel8BitTimer< CounterRegister, OutputCompareRegisterA, OutputCompareRegisterB, ControlRegisterA, ControlRegisterB, ClockEnum, ChannelAOutputPin, ChannelBOutputPin >::ChannelAPin [inherited]

Definition at line 389 of file Timer.h.

template<class CounterRegister, class OutputCompareRegisterA, class OutputCompareRegisterB, class ControlRegisterA, class ControlRegisterB, class ClockEnum, class ChannelAOutputPin, class ChannelBOutputPin>
typedef ChannelBOutputPin AVRCpp::Timer::Internal::TwoChannel8BitTimer< CounterRegister, OutputCompareRegisterA, OutputCompareRegisterB, ControlRegisterA, ControlRegisterB, ClockEnum, ChannelAOutputPin, ChannelBOutputPin >::ChannelBPin [inherited]

Definition at line 390 of file Timer.h.

typedef CounterRegister AVRCpp::Timer::Internal::SimpleTimer< CounterRegister , ControlRegisterB , ClockEnum >::Counter [inherited]

Definition at line 231 of file Timer.h.


Member Function Documentation

template<class CounterRegister, class OutputCompareRegisterA, class OutputCompareRegisterB, class ControlRegisterA, class ControlRegisterB, class ClockEnum, class ChannelAOutputPin, class ChannelBOutputPin>
static void AVRCpp::Timer::Internal::TwoChannel8BitTimer< CounterRegister, OutputCompareRegisterA, OutputCompareRegisterB, ControlRegisterA, ControlRegisterB, ClockEnum, ChannelAOutputPin, ChannelBOutputPin >::ForceOutputCompareA (  )  [inline, static, inherited]

Definition at line 392 of file Timer.h.

00392 { SetBits<ControlRegisterB>(ForceA); }

template<class CounterRegister, class OutputCompareRegisterA, class OutputCompareRegisterB, class ControlRegisterA, class ControlRegisterB, class ClockEnum, class ChannelAOutputPin, class ChannelBOutputPin>
static void AVRCpp::Timer::Internal::TwoChannel8BitTimer< CounterRegister, OutputCompareRegisterA, OutputCompareRegisterB, ControlRegisterA, ControlRegisterB, ClockEnum, ChannelAOutputPin, ChannelBOutputPin >::ForceOutputCompareB (  )  [inline, static, inherited]

Definition at line 393 of file Timer.h.

00393 { SetBits<ControlRegisterB>(ForceB); }

template<class CounterRegister, class OutputCompareRegisterA, class OutputCompareRegisterB, class ControlRegisterA, class ControlRegisterB, class ClockEnum, class ChannelAOutputPin, class ChannelBOutputPin>
static void AVRCpp::Timer::Internal::TwoChannel8BitTimer< CounterRegister, OutputCompareRegisterA, OutputCompareRegisterB, ControlRegisterA, ControlRegisterB, ClockEnum, ChannelAOutputPin, ChannelBOutputPin >::SetUp ( ClockEnum  clock,
FixedTop8  fixedTop8,
CompareOutputModeA  compareOutputModeA,
CompareOutputModeB  compareOutputModeB 
) [inline, static, inherited]

Definition at line 395 of file Timer.h.

00400                                 {
00401                                         ControlRegisterA::Set(compareOutputModeA | compareOutputModeB | (fixedTop8 & TopMaskA8) );
00402                                         ControlRegisterB::Set(clock | (fixedTop8 & TopMaskB8) );
00403                                         
00404                                 } // SetUp 1

template<class CounterRegister, class OutputCompareRegisterA, class OutputCompareRegisterB, class ControlRegisterA, class ControlRegisterB, class ClockEnum, class ChannelAOutputPin, class ChannelBOutputPin>
static void AVRCpp::Timer::Internal::TwoChannel8BitTimer< CounterRegister, OutputCompareRegisterA, OutputCompareRegisterB, ControlRegisterA, ControlRegisterB, ClockEnum, ChannelAOutputPin, ChannelBOutputPin >::SetUp ( ClockEnum  clock,
TopFromOutputCompareA8  topFromOutputCompareA8,
CompareOutputModeB  compareOutputModeB 
) [inline, static, inherited]

Definition at line 406 of file Timer.h.

00410                                 {
00411                                         ControlRegisterA::Set(compareOutputModeB | (topFromOutputCompareA8 & TopMaskA8) );
00412                                         ControlRegisterB::Set(clock | (topFromOutputCompareA8 & TopMaskB8) );
00413                                         
00414                                 } // SetUp 2

static void AVRCpp::Timer::Internal::SimpleTimer< CounterRegister , ControlRegisterB , ClockEnum >::SelectClock ( ClockEnum   clock  )  [inline, static, inherited]

Definition at line 233 of file Timer.h.

00233 { ChangeBits<ClockRegister>(ClockMask, clock); }

static uint8_t AVRCpp::Timer::Internal::SimpleTimer< CounterRegister , ControlRegisterB , ClockEnum >::GetSelectedClock (  )  [inline, static, inherited]

Definition at line 234 of file Timer.h.

00234 { return SelectBits<ClockRegister>(ClockMask); }


The documentation for this struct was generated from the following file:
Generated on Sat Sep 15 23:40:34 2007 for AVR C++ Lib for ATmega164P by  doxygen 1.5.2
SourceForge.net Logo MTÜ TTÜ Robotiklubi