AVRCpp::Timer::TimerCounter1 Struct Reference

#include <Timer.h>

Inherits AVRCpp::Timer::Internal::OldTwoChannel16BitTimer< CounterRegister, OutputCompareRegisterA, OutputCompareRegisterB, InputCaptureRegister, ControlRegisterA, ControlRegisterB, ClockEnum, ChannelAOutputPin, ChannelBOutputPin, InputCaptureInputPin >< _TCNT1,_OCR1A,_OCR1B,_ICR1,_TCCR1A,_TCCR1B,ClockB,OutputPin5< PortD >,OutputPin2< PortE >,InputPin0< PortE > >.

List of all members.

Public Types

typedef OutputCompareRegisterA OutputCompareA
typedef OutputCompareRegisterB OutputCompareB
typedef InputCaptureRegister InputCapture
typedef ChannelAOutputPin ChannelAPin
typedef ChannelBOutputPin ChannelBPin
typedef InputCaptureInputPin InputCapturePin
typedef CounterRegister Counter

Static Public Member Functions

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

Classes

struct  CompareMatchAInterrupt
struct  CompareMatchBInterrupt
struct  InputCaptureInterrupt
struct  OverflowInterrupt


Detailed Description

Definition at line 82 of file Timer.h.


Member Typedef Documentation

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

Definition at line 573 of file Timer.h.

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

Definition at line 574 of file Timer.h.

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

Definition at line 575 of file Timer.h.

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

Definition at line 577 of file Timer.h.

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

Definition at line 578 of file Timer.h.

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

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

Definition at line 643 of file Timer.h.

00643 { SetBits<ControlRegisterA>(OldForceA); }

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

Definition at line 644 of file Timer.h.

00644 { SetBits<ControlRegisterA>(OldForceB); }

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

Definition at line 581 of file Timer.h.

00588                                 {
00589                                         ControlRegisterA::Set(compareOutputModeA | compareOutputModeB | (fixedTop16 & TopMaskA16) );
00590                                         ControlRegisterB::Set(inputNoiseCanceler | inputCaptureEdge | clock | (fixedTop16 & TopMaskB16) );
00591                                         
00592                                 } // SetUp 1

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

Definition at line 594 of file Timer.h.

00599                                 {
00600                                         ControlRegisterA::Set(compareOutputModeA | compareOutputModeB | (topFromInputCapture16 & TopMaskA16) );
00601                                         ControlRegisterB::Set(clock | (topFromInputCapture16 & TopMaskB16) );
00602                                         
00603                                 } // SetUp 2

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

Definition at line 605 of file Timer.h.

00611                                 {
00612                                         ControlRegisterA::Set(compareOutputModeB | (topFromOutputCompareA16 & TopMaskA16) );
00613                                         ControlRegisterB::Set(inputNoiseCanceler | inputCaptureEdge | clock | (topFromOutputCompareA16 & TopMaskB16) );
00614                                         
00615                                 } // 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:37 2007 for AVR C++ Lib for ATmega8515 by  doxygen 1.5.2
SourceForge.net Logo MTÜ TTÜ Robotiklubi