AVRCpp::Timer::TimerCounter3 Struct Reference

#include <Timer.h>

Inherits AVRCpp::Timer::Internal::ThreeChannel16BitTimer< CounterRegister, OutputCompareRegisterA, OutputCompareRegisterB, OutputCompareRegisterC, InputCaptureRegister, ControlRegisterA, ControlRegisterB, ControlRegisterC, ClockEnum, ChannelAOutputPin, ChannelBOutputPin, ChannelCOutputPin, InputCaptureInputPin >< _TCNT3,_OCR3A,_OCR3B,_OCR3C,_ICR3,_TCCR3A,_TCCR3B,_TCCR3C,ClockB,OutputPin3< PortE >,OutputPin4< PortE >,OutputPin5< PortE >,InputPin7< PortE > >.

List of all members.

Public Types

typedef OutputCompareRegisterA OutputCompareA
typedef OutputCompareRegisterB OutputCompareB
typedef OutputCompareRegisterC OutputCompareC
typedef InputCaptureRegister InputCapture
typedef ChannelAOutputPin ChannelAPin
typedef ChannelBOutputPin ChannelBPin
typedef ChannelCOutputPin ChannelCPin
typedef InputCaptureInputPin InputCapturePin
typedef CounterRegister Counter

Static Public Member Functions

static void ForceOutputCompareA ()
static void ForceOutputCompareB ()
static void ForceOutputCompareC ()
static void SetUp (ClockEnum clock, FixedTop16 fixedTop16, CompareOutputModeA compareOutputModeA, CompareOutputModeB compareOutputModeB, CompareOutputModeC compareOutputModeC, InputNoiseCanceler inputNoiseCanceler, InputCaptureEdge inputCaptureEdge)
static void SetUp (ClockEnum clock, TopFromInputCapture16 topFromInputCapture16, CompareOutputModeA compareOutputModeA, CompareOutputModeB compareOutputModeB, CompareOutputModeC compareOutputModeC)
static void SetUp (ClockEnum clock, TopFromOutputCompareA16 topFromOutputCompareA16, CompareOutputModeB compareOutputModeB, CompareOutputModeC compareOutputModeC, InputNoiseCanceler inputNoiseCanceler, InputCaptureEdge inputCaptureEdge)
static void SelectClock (ClockEnumclock)
static uint8_t GetSelectedClock ()

Classes

struct  CompareMatchAInterrupt
struct  CompareMatchBInterrupt
struct  CompareMatchCInterrupt
struct  InputCaptureInterrupt
struct  OverflowInterrupt


Detailed Description

Definition at line 144 of file Timer.h.


Member Typedef Documentation

template<class CounterRegister, class OutputCompareRegisterA, class OutputCompareRegisterB, class OutputCompareRegisterC, class InputCaptureRegister, class ControlRegisterA, class ControlRegisterB, class ControlRegisterC, class ClockEnum, class ChannelAOutputPin, class ChannelBOutputPin, class ChannelCOutputPin, class InputCaptureInputPin>
typedef OutputCompareRegisterA AVRCpp::Timer::Internal::ThreeChannel16BitTimer< CounterRegister, OutputCompareRegisterA, OutputCompareRegisterB, OutputCompareRegisterC, InputCaptureRegister, ControlRegisterA, ControlRegisterB, ControlRegisterC, ClockEnum, ChannelAOutputPin, ChannelBOutputPin, ChannelCOutputPin, InputCaptureInputPin >::OutputCompareA [inherited]

Definition at line 696 of file Timer.h.

template<class CounterRegister, class OutputCompareRegisterA, class OutputCompareRegisterB, class OutputCompareRegisterC, class InputCaptureRegister, class ControlRegisterA, class ControlRegisterB, class ControlRegisterC, class ClockEnum, class ChannelAOutputPin, class ChannelBOutputPin, class ChannelCOutputPin, class InputCaptureInputPin>
typedef OutputCompareRegisterB AVRCpp::Timer::Internal::ThreeChannel16BitTimer< CounterRegister, OutputCompareRegisterA, OutputCompareRegisterB, OutputCompareRegisterC, InputCaptureRegister, ControlRegisterA, ControlRegisterB, ControlRegisterC, ClockEnum, ChannelAOutputPin, ChannelBOutputPin, ChannelCOutputPin, InputCaptureInputPin >::OutputCompareB [inherited]

Definition at line 697 of file Timer.h.

template<class CounterRegister, class OutputCompareRegisterA, class OutputCompareRegisterB, class OutputCompareRegisterC, class InputCaptureRegister, class ControlRegisterA, class ControlRegisterB, class ControlRegisterC, class ClockEnum, class ChannelAOutputPin, class ChannelBOutputPin, class ChannelCOutputPin, class InputCaptureInputPin>
typedef OutputCompareRegisterC AVRCpp::Timer::Internal::ThreeChannel16BitTimer< CounterRegister, OutputCompareRegisterA, OutputCompareRegisterB, OutputCompareRegisterC, InputCaptureRegister, ControlRegisterA, ControlRegisterB, ControlRegisterC, ClockEnum, ChannelAOutputPin, ChannelBOutputPin, ChannelCOutputPin, InputCaptureInputPin >::OutputCompareC [inherited]

Definition at line 698 of file Timer.h.

template<class CounterRegister, class OutputCompareRegisterA, class OutputCompareRegisterB, class OutputCompareRegisterC, class InputCaptureRegister, class ControlRegisterA, class ControlRegisterB, class ControlRegisterC, class ClockEnum, class ChannelAOutputPin, class ChannelBOutputPin, class ChannelCOutputPin, class InputCaptureInputPin>
typedef InputCaptureRegister AVRCpp::Timer::Internal::ThreeChannel16BitTimer< CounterRegister, OutputCompareRegisterA, OutputCompareRegisterB, OutputCompareRegisterC, InputCaptureRegister, ControlRegisterA, ControlRegisterB, ControlRegisterC, ClockEnum, ChannelAOutputPin, ChannelBOutputPin, ChannelCOutputPin, InputCaptureInputPin >::InputCapture [inherited]

Definition at line 699 of file Timer.h.

template<class CounterRegister, class OutputCompareRegisterA, class OutputCompareRegisterB, class OutputCompareRegisterC, class InputCaptureRegister, class ControlRegisterA, class ControlRegisterB, class ControlRegisterC, class ClockEnum, class ChannelAOutputPin, class ChannelBOutputPin, class ChannelCOutputPin, class InputCaptureInputPin>
typedef ChannelAOutputPin AVRCpp::Timer::Internal::ThreeChannel16BitTimer< CounterRegister, OutputCompareRegisterA, OutputCompareRegisterB, OutputCompareRegisterC, InputCaptureRegister, ControlRegisterA, ControlRegisterB, ControlRegisterC, ClockEnum, ChannelAOutputPin, ChannelBOutputPin, ChannelCOutputPin, InputCaptureInputPin >::ChannelAPin [inherited]

Definition at line 701 of file Timer.h.

template<class CounterRegister, class OutputCompareRegisterA, class OutputCompareRegisterB, class OutputCompareRegisterC, class InputCaptureRegister, class ControlRegisterA, class ControlRegisterB, class ControlRegisterC, class ClockEnum, class ChannelAOutputPin, class ChannelBOutputPin, class ChannelCOutputPin, class InputCaptureInputPin>
typedef ChannelBOutputPin AVRCpp::Timer::Internal::ThreeChannel16BitTimer< CounterRegister, OutputCompareRegisterA, OutputCompareRegisterB, OutputCompareRegisterC, InputCaptureRegister, ControlRegisterA, ControlRegisterB, ControlRegisterC, ClockEnum, ChannelAOutputPin, ChannelBOutputPin, ChannelCOutputPin, InputCaptureInputPin >::ChannelBPin [inherited]

Definition at line 702 of file Timer.h.

template<class CounterRegister, class OutputCompareRegisterA, class OutputCompareRegisterB, class OutputCompareRegisterC, class InputCaptureRegister, class ControlRegisterA, class ControlRegisterB, class ControlRegisterC, class ClockEnum, class ChannelAOutputPin, class ChannelBOutputPin, class ChannelCOutputPin, class InputCaptureInputPin>
typedef ChannelCOutputPin AVRCpp::Timer::Internal::ThreeChannel16BitTimer< CounterRegister, OutputCompareRegisterA, OutputCompareRegisterB, OutputCompareRegisterC, InputCaptureRegister, ControlRegisterA, ControlRegisterB, ControlRegisterC, ClockEnum, ChannelAOutputPin, ChannelBOutputPin, ChannelCOutputPin, InputCaptureInputPin >::ChannelCPin [inherited]

Definition at line 703 of file Timer.h.

template<class CounterRegister, class OutputCompareRegisterA, class OutputCompareRegisterB, class OutputCompareRegisterC, class InputCaptureRegister, class ControlRegisterA, class ControlRegisterB, class ControlRegisterC, class ClockEnum, class ChannelAOutputPin, class ChannelBOutputPin, class ChannelCOutputPin, class InputCaptureInputPin>
typedef InputCaptureInputPin AVRCpp::Timer::Internal::ThreeChannel16BitTimer< CounterRegister, OutputCompareRegisterA, OutputCompareRegisterB, OutputCompareRegisterC, InputCaptureRegister, ControlRegisterA, ControlRegisterB, ControlRegisterC, ClockEnum, ChannelAOutputPin, ChannelBOutputPin, ChannelCOutputPin, InputCaptureInputPin >::InputCapturePin [inherited]

Definition at line 704 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 OutputCompareRegisterC, class InputCaptureRegister, class ControlRegisterA, class ControlRegisterB, class ControlRegisterC, class ClockEnum, class ChannelAOutputPin, class ChannelBOutputPin, class ChannelCOutputPin, class InputCaptureInputPin>
static void AVRCpp::Timer::Internal::ThreeChannel16BitTimer< CounterRegister, OutputCompareRegisterA, OutputCompareRegisterB, OutputCompareRegisterC, InputCaptureRegister, ControlRegisterA, ControlRegisterB, ControlRegisterC, ClockEnum, ChannelAOutputPin, ChannelBOutputPin, ChannelCOutputPin, InputCaptureInputPin >::ForceOutputCompareA (  )  [inline, static, inherited]

Definition at line 706 of file Timer.h.

00706 { SetBits<ControlRegisterC>(ForceA); }

template<class CounterRegister, class OutputCompareRegisterA, class OutputCompareRegisterB, class OutputCompareRegisterC, class InputCaptureRegister, class ControlRegisterA, class ControlRegisterB, class ControlRegisterC, class ClockEnum, class ChannelAOutputPin, class ChannelBOutputPin, class ChannelCOutputPin, class InputCaptureInputPin>
static void AVRCpp::Timer::Internal::ThreeChannel16BitTimer< CounterRegister, OutputCompareRegisterA, OutputCompareRegisterB, OutputCompareRegisterC, InputCaptureRegister, ControlRegisterA, ControlRegisterB, ControlRegisterC, ClockEnum, ChannelAOutputPin, ChannelBOutputPin, ChannelCOutputPin, InputCaptureInputPin >::ForceOutputCompareB (  )  [inline, static, inherited]

Definition at line 707 of file Timer.h.

00707 { SetBits<ControlRegisterC>(ForceB); }

template<class CounterRegister, class OutputCompareRegisterA, class OutputCompareRegisterB, class OutputCompareRegisterC, class InputCaptureRegister, class ControlRegisterA, class ControlRegisterB, class ControlRegisterC, class ClockEnum, class ChannelAOutputPin, class ChannelBOutputPin, class ChannelCOutputPin, class InputCaptureInputPin>
static void AVRCpp::Timer::Internal::ThreeChannel16BitTimer< CounterRegister, OutputCompareRegisterA, OutputCompareRegisterB, OutputCompareRegisterC, InputCaptureRegister, ControlRegisterA, ControlRegisterB, ControlRegisterC, ClockEnum, ChannelAOutputPin, ChannelBOutputPin, ChannelCOutputPin, InputCaptureInputPin >::ForceOutputCompareC (  )  [inline, static, inherited]

Definition at line 708 of file Timer.h.

00708 { SetBits<ControlRegisterC>(ForceC); }

template<class CounterRegister, class OutputCompareRegisterA, class OutputCompareRegisterB, class OutputCompareRegisterC, class InputCaptureRegister, class ControlRegisterA, class ControlRegisterB, class ControlRegisterC, class ClockEnum, class ChannelAOutputPin, class ChannelBOutputPin, class ChannelCOutputPin, class InputCaptureInputPin>
static void AVRCpp::Timer::Internal::ThreeChannel16BitTimer< CounterRegister, OutputCompareRegisterA, OutputCompareRegisterB, OutputCompareRegisterC, InputCaptureRegister, ControlRegisterA, ControlRegisterB, ControlRegisterC, ClockEnum, ChannelAOutputPin, ChannelBOutputPin, ChannelCOutputPin, InputCaptureInputPin >::SetUp ( ClockEnum  clock,
FixedTop16  fixedTop16,
CompareOutputModeA  compareOutputModeA,
CompareOutputModeB  compareOutputModeB,
CompareOutputModeC  compareOutputModeC,
InputNoiseCanceler  inputNoiseCanceler,
InputCaptureEdge  inputCaptureEdge 
) [inline, static, inherited]

Definition at line 710 of file Timer.h.

00718                                 {
00719                                         ControlRegisterA::Set(compareOutputModeA | compareOutputModeB | compareOutputModeC | (fixedTop16 & TopMaskA16) );
00720                                         ControlRegisterB::Set(inputNoiseCanceler | inputCaptureEdge | clock | (fixedTop16 & TopMaskB16) );
00721                                         
00722                                 } // SetUp 1

template<class CounterRegister, class OutputCompareRegisterA, class OutputCompareRegisterB, class OutputCompareRegisterC, class InputCaptureRegister, class ControlRegisterA, class ControlRegisterB, class ControlRegisterC, class ClockEnum, class ChannelAOutputPin, class ChannelBOutputPin, class ChannelCOutputPin, class InputCaptureInputPin>
static void AVRCpp::Timer::Internal::ThreeChannel16BitTimer< CounterRegister, OutputCompareRegisterA, OutputCompareRegisterB, OutputCompareRegisterC, InputCaptureRegister, ControlRegisterA, ControlRegisterB, ControlRegisterC, ClockEnum, ChannelAOutputPin, ChannelBOutputPin, ChannelCOutputPin, InputCaptureInputPin >::SetUp ( ClockEnum  clock,
TopFromInputCapture16  topFromInputCapture16,
CompareOutputModeA  compareOutputModeA,
CompareOutputModeB  compareOutputModeB,
CompareOutputModeC  compareOutputModeC 
) [inline, static, inherited]

Definition at line 724 of file Timer.h.

00730                                 {
00731                                         ControlRegisterA::Set(compareOutputModeA | compareOutputModeB | compareOutputModeC | (topFromInputCapture16 & TopMaskA16) );
00732                                         ControlRegisterB::Set(clock | (topFromInputCapture16 & TopMaskB16) );
00733                                         
00734                                 } // SetUp 2

template<class CounterRegister, class OutputCompareRegisterA, class OutputCompareRegisterB, class OutputCompareRegisterC, class InputCaptureRegister, class ControlRegisterA, class ControlRegisterB, class ControlRegisterC, class ClockEnum, class ChannelAOutputPin, class ChannelBOutputPin, class ChannelCOutputPin, class InputCaptureInputPin>
static void AVRCpp::Timer::Internal::ThreeChannel16BitTimer< CounterRegister, OutputCompareRegisterA, OutputCompareRegisterB, OutputCompareRegisterC, InputCaptureRegister, ControlRegisterA, ControlRegisterB, ControlRegisterC, ClockEnum, ChannelAOutputPin, ChannelBOutputPin, ChannelCOutputPin, InputCaptureInputPin >::SetUp ( ClockEnum  clock,
TopFromOutputCompareA16  topFromOutputCompareA16,
CompareOutputModeB  compareOutputModeB,
CompareOutputModeC  compareOutputModeC,
InputNoiseCanceler  inputNoiseCanceler,
InputCaptureEdge  inputCaptureEdge 
) [inline, static, inherited]

Definition at line 736 of file Timer.h.

00743                                 {
00744                                         ControlRegisterA::Set(compareOutputModeB | compareOutputModeC | (topFromOutputCompareA16 & TopMaskA16) );
00745                                         ControlRegisterB::Set(inputNoiseCanceler | inputCaptureEdge | clock | (topFromOutputCompareA16 & TopMaskB16) );
00746                                         
00747                                 } // SetUp 3

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:41:09 2007 for AVR C++ Lib for ATmega64 by  doxygen 1.5.2
SourceForge.net Logo MTÜ TTÜ Robotiklubi