AVRCpp::Timer Namespace Reference

Functionality of Timers/Counters. More...


Classes

struct  TimerCounter0
struct  TimerCounter1
struct  TimerCounter2

Namespaces

namespace  Internal
 Only for library's internal use.

Enumerations

enum  ClockA {
  NoClockA = 0x00,
  NoPrescaleA = 0x01,
  Prescale8A = 0x02,
  Prescale32A = 0x03,
  Prescale64A = 0x04,
  Prescale128A = 0x05,
  Prescale256A = 0x06,
  Prescale1024A = 0x07
}
enum  ClockB {
  NoClockB = 0x00,
  NoPrescaleB = 0x01,
  Prescale8B = 0x02,
  Prescale64B = 0x03,
  Prescale256B = 0x04,
  Prescale1024B = 0x05,
  ExternalFall = 0x06,
  ExternalRise = 0x07
}
enum  CompareOutputMode {
  NormalPortOperation = 0x00,
  Toggle = 0x10,
  Clear = 0x20,
  Set = 0x30
}
enum  CompareOutputModeA {
  NormalPortOperationA = 0x00,
  ToggleA = 0x40,
  ClearA = 0x80,
  SetA = 0xC0
}
enum  CompareOutputModeB {
  NormalPortOperationB = 0x00,
  ToggleB = 0x10,
  ClearB = 0x20,
  SetB = 0x30
}
enum  CompareOutputModeC {
  NormalPortOperationC = 0x00,
  ToggleC = 0x04,
  ClearC = 0x08,
  SetC = 0x0C
}
enum  InputNoiseCanceler {
  On = 0x80,
  Off = 0x00
}
enum  InputCaptureEdge {
  Rise = 0x40,
  Fall = 0x00
}
enum  Mode {
  Normal = 0x00,
  ClearTimerOnCompareMatch = 0x08,
  PhaseCorrectPWM = 0x40,
  FastPWM = 0x48
}
enum  FixedTop16 {
  Normal16 = 0x00,
  FastPWM16BitsCount8 = 0x09,
  FastPWM16BitsCount9 = 0x0A,
  FastPWM16BitsCount10 = 0x0B,
  PhaseCorrectPWM16BitsCount8 = 0x01,
  PhaseCorrectPWM16BitsCount9 = 0x02,
  PhaseCorrectPWM16BitsCount10 = 0x03
}
enum  TopFromInputCapture16 {
  ClearTimerOnCompareMatch16TopFromInputCapture = 0x18,
  FastPWM16TopFromInputCapture = 0x1A,
  PhaseCorrectPWM16TopFromInputCapture = 0x12,
  PhaseAndFrequencyCorrectPWM16TopFromInputCapture = 0x10
}
enum  TopFromOutputCompareA16 {
  ClearTimerOnCompareMatch16TopFromOutputCompareA = 0x08,
  FastPWM16TopFromOutputCompareA = 0x1B,
  PhaseCorrectPWM16TopFromOutputCompareA = 0x13,
  PhaseAndFrequencyCorrectPWM16TopFromOutputCompareA = 0x11
}
enum  FixedTop8 {
  Normal8 = 0x00,
  FastPWM8 = 0x03,
  PhaseCorrectPWM8 = 0x01
}
enum  TopFromOutputCompareA8 {
  ClearTimerOnCompareMatch8TopFromOutputCompareA = 0x02,
  FastPWM8TopFromOutputCompareA = 0x0B,
  PhaseCorrectPWM8TopFromOutputCompareA = 0x09
}

Functions

void StartSynchronization ()
void EndSynchronization ()
void PrescalerReset10 ()


Detailed Description

Functionality of Timers/Counters.

Enumeration Type Documentation

enum AVRCpp::Timer::ClockA

Enumerator:
NoClockA 
NoPrescaleA 
Prescale8A 
Prescale32A 
Prescale64A 
Prescale128A 
Prescale256A 
Prescale1024A 

Definition at line 38 of file Timer.h.

00039                 {
00040                         NoClockA                = 0x00,
00041                         NoPrescaleA             = 0x01,
00042                         Prescale8A              = 0x02,
00043                         Prescale32A             = 0x03,
00044                         Prescale64A             = 0x04,
00045                         Prescale128A    = 0x05,
00046                         Prescale256A    = 0x06,
00047                         Prescale1024A   = 0x07
00048                         
00049                 }; // enum ClockA

enum AVRCpp::Timer::ClockB

Enumerator:
NoClockB 
NoPrescaleB 
Prescale8B 
Prescale64B 
Prescale256B 
Prescale1024B 
ExternalFall 
ExternalRise 

Definition at line 51 of file Timer.h.

00052                 {
00053                         NoClockB                = 0x00,
00054                         NoPrescaleB             = 0x01,
00055                         Prescale8B              = 0x02,
00056                         Prescale64B             = 0x03,
00057                         Prescale256B    = 0x04,
00058                         Prescale1024B   = 0x05,
00059                         ExternalFall    = 0x06,
00060                         ExternalRise    = 0x07
00061                         
00062                 }; // enum ClockB

enum AVRCpp::Timer::CompareOutputMode

Enumerator:
NormalPortOperation 
Toggle 
Clear 
Set 

Definition at line 64 of file Timer.h.

00065                 {
00066                         NormalPortOperation     = 0x00,
00067                         Toggle                          = 0x10,
00068                         Clear                           = 0x20,
00069                         Set                                     = 0x30
00070                         
00071                 }; // enum CompareOutputMode

enum AVRCpp::Timer::CompareOutputModeA

Enumerator:
NormalPortOperationA 
ToggleA 
ClearA 
SetA 

Definition at line 73 of file Timer.h.

00074                 {
00075                         NormalPortOperationA    = 0x00,
00076                         ToggleA                                 = 0x40,
00077                         ClearA                                  = 0x80,
00078                         SetA                                    = 0xC0
00079                         
00080                 }; // enum CompareOutputModeA

enum AVRCpp::Timer::CompareOutputModeB

Enumerator:
NormalPortOperationB 
ToggleB 
ClearB 
SetB 

Definition at line 82 of file Timer.h.

00083                 {
00084                         NormalPortOperationB    = 0x00,
00085                         ToggleB                                 = 0x10,
00086                         ClearB                                  = 0x20,
00087                         SetB                                    = 0x30
00088                         
00089                 }; // enum CompareOutputModeB

enum AVRCpp::Timer::CompareOutputModeC

Enumerator:
NormalPortOperationC 
ToggleC 
ClearC 
SetC 

Definition at line 91 of file Timer.h.

00092                 {
00093                         NormalPortOperationC    = 0x00,
00094                         ToggleC                                 = 0x04,
00095                         ClearC                                  = 0x08,
00096                         SetC                                    = 0x0C
00097                         
00098                 }; // CompareOutputModeC

enum AVRCpp::Timer::FixedTop16

Enumerator:
Normal16 
FastPWM16BitsCount8 
FastPWM16BitsCount9 
FastPWM16BitsCount10 
PhaseCorrectPWM16BitsCount8 
PhaseCorrectPWM16BitsCount9 
PhaseCorrectPWM16BitsCount10 

Definition at line 123 of file Timer.h.

00124                 {
00125                         Normal16                                                = 0x00,
00126                         FastPWM16BitsCount8                             = 0x09,
00127                         FastPWM16BitsCount9                             = 0x0A,
00128                         FastPWM16BitsCount10                    = 0x0B,
00129                         PhaseCorrectPWM16BitsCount8             = 0x01,
00130                         PhaseCorrectPWM16BitsCount9             = 0x02,
00131                         PhaseCorrectPWM16BitsCount10    = 0x03
00132                         
00133                 }; // enum FixedTop16

enum AVRCpp::Timer::FixedTop8

Enumerator:
Normal8 
FastPWM8 
PhaseCorrectPWM8 

Definition at line 153 of file Timer.h.

00154                 {
00155                         Normal8                         = 0x00,
00156                         FastPWM8                        = 0x03,
00157                         PhaseCorrectPWM8        = 0x01
00158                         
00159                 }; // enum FixedTop8

enum AVRCpp::Timer::InputCaptureEdge

Enumerator:
Rise 
Fall 

Definition at line 107 of file Timer.h.

00108                 {
00109                         Rise    = 0x40,
00110                         Fall    = 0x00
00111                         
00112                 }; // enum InputCaptureEdge

enum AVRCpp::Timer::InputNoiseCanceler

Enumerator:
On 
Off 

Definition at line 100 of file Timer.h.

00101                 {
00102                         On      = 0x80,
00103                         Off     = 0x00
00104                         
00105                 }; // enum InputNoiseCanceler

enum AVRCpp::Timer::Mode

Enumerator:
Normal 
ClearTimerOnCompareMatch 
PhaseCorrectPWM 
FastPWM 

Definition at line 114 of file Timer.h.

00115                 {
00116                         Normal                                          = 0x00,
00117                         ClearTimerOnCompareMatch        = 0x08,
00118                         PhaseCorrectPWM                         = 0x40,
00119                         FastPWM                                         = 0x48
00120                         
00121                 }; // enum Mode;

enum AVRCpp::Timer::TopFromInputCapture16

Enumerator:
ClearTimerOnCompareMatch16TopFromInputCapture 
FastPWM16TopFromInputCapture 
PhaseCorrectPWM16TopFromInputCapture 
PhaseAndFrequencyCorrectPWM16TopFromInputCapture 

Definition at line 135 of file Timer.h.

00136                 {
00137                         ClearTimerOnCompareMatch16TopFromInputCapture           = 0x18,
00138                         FastPWM16TopFromInputCapture                                            = 0x1A,
00139                         PhaseCorrectPWM16TopFromInputCapture                            = 0x12,
00140                         PhaseAndFrequencyCorrectPWM16TopFromInputCapture        = 0x10
00141                         
00142                 }; // enum TopFromInputCapture16

enum AVRCpp::Timer::TopFromOutputCompareA16

Enumerator:
ClearTimerOnCompareMatch16TopFromOutputCompareA 
FastPWM16TopFromOutputCompareA 
PhaseCorrectPWM16TopFromOutputCompareA 
PhaseAndFrequencyCorrectPWM16TopFromOutputCompareA 

Definition at line 144 of file Timer.h.

00145                 {
00146                         ClearTimerOnCompareMatch16TopFromOutputCompareA         = 0x08,
00147                         FastPWM16TopFromOutputCompareA                                          = 0x1B,
00148                         PhaseCorrectPWM16TopFromOutputCompareA                          = 0x13,
00149                         PhaseAndFrequencyCorrectPWM16TopFromOutputCompareA      = 0x11
00150                         
00151                 }; // enum TopFromOutputCompareA16

enum AVRCpp::Timer::TopFromOutputCompareA8

Enumerator:
ClearTimerOnCompareMatch8TopFromOutputCompareA 
FastPWM8TopFromOutputCompareA 
PhaseCorrectPWM8TopFromOutputCompareA 

Definition at line 161 of file Timer.h.

00162                 {
00163                         ClearTimerOnCompareMatch8TopFromOutputCompareA  = 0x02,
00164                         FastPWM8TopFromOutputCompareA                                   = 0x0B,
00165                         PhaseCorrectPWM8TopFromOutputCompareA                   = 0x09
00166                         
00167                 }; // enum TopFromOutputCompareA8


Function Documentation

void AVRCpp::Timer::EndSynchronization (  )  [inline]

Definition at line 76 of file Timer.h.

00076 { ClearBits<_GTCCR>(_TSM); }

void AVRCpp::Timer::PrescalerReset10 (  )  [inline]

Definition at line 78 of file Timer.h.

00078 { SetBits<_GTCCR>(_PSRSYNC); }

void AVRCpp::Timer::StartSynchronization (  )  [inline]

Definition at line 75 of file Timer.h.

00075 { SetBits<_GTCCR>(_TSM); }


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