AVRCpp Namespace Reference

Base functions and classes. More...


Classes

struct  _OTGTCON
struct  _UPINT
struct  _UPBCHX
struct  _UPBCLX
struct  _UPERRX
struct  _UEINT
struct  _UEBCHX
struct  _UEBCLX
struct  _UEDATX
struct  _UEIENX
struct  _UESTA1X
struct  _UESTA0X
struct  _UECFG1X
struct  _UECFG0X
struct  _UECONX
struct  _UERST
struct  _UENUM
struct  _UEINTX
struct  _UDTST
struct  _UDMFN
struct  _UDFNUMH
struct  _UDFNUML
struct  _UDADDR
struct  _UDIEN
struct  _UDINT
struct  _UDCON
struct  _OTGINT
struct  _OTGIEN
struct  _OTGCON
struct  _UDPADDH
struct  _UDPADDL
struct  _USBINT
struct  _USBSTA
struct  _USBCON
struct  _UHWCON
struct  _UDR1
struct  _UBRR1H
struct  _UBRR1L
struct  _UCSR1C
struct  _UCSR1B
struct  _UCSR1A
struct  _TWAMR
struct  _TWCR
struct  _TWDR
struct  _TWAR
struct  _TWSR
struct  _TWBR
struct  _ASSR
struct  _OCR2B
struct  _OCR2A
struct  _TCNT2
struct  _TCCR2B
struct  _TCCR2A
struct  _UPDATX
struct  _UPIENX
struct  _UPCFG2X
struct  _UPSTAX
struct  _UPCFG1X
struct  _UPCFG0X
struct  _UPCONX
struct  _UPRST
struct  _UPNUM
struct  _UPINTX
struct  _UPINRQX
struct  _UHFLEN
struct  _UHFNUMH
struct  _UHFNUML
struct  _UHADDR
struct  _UHIEN
struct  _UHINT
struct  _UHCON
struct  _OCR3CH
struct  _OCR3CL
struct  _OCR3BH
struct  _OCR3BL
struct  _OCR3AH
struct  _OCR3AL
struct  _ICR3H
struct  _ICR3L
struct  _TCNT3H
struct  _TCNT3L
struct  _TCCR3C
struct  _TCCR3B
struct  _TCCR3A
struct  _OCR1CH
struct  _OCR1CL
struct  _OCR1BH
struct  _OCR1BL
struct  _OCR1AH
struct  _OCR1AL
struct  _ICR1H
struct  _ICR1L
struct  _TCNT1H
struct  _TCNT1L
struct  _TCCR1C
struct  _TCCR1B
struct  _TCCR1A
struct  _DIDR1
struct  _DIDR0
struct  _ADMUX
struct  _ADCSRB
struct  _ADCSRA
struct  _ADCH
struct  _ADCL
struct  _XMCRB
struct  _XMCRA
struct  _TIMSK3
struct  _TIMSK2
struct  _TIMSK1
struct  _TIMSK0
struct  _PCMSK0
struct  _EICRB
struct  _EICRA
struct  _PCICR
struct  _OSCCAL
struct  _PRR1
struct  _PRR0
struct  _CLKPR
struct  _WDTCSR
struct  _SREG
struct  _SPH
struct  _SPL
struct  _RAMPZ
struct  _SPMCSR
struct  _MCUCR
struct  _MCUSR
struct  _SMCR
struct  _OCDR
struct  _MONDR
struct  _ACSR
struct  _SPDR
struct  _SPSR
struct  _SPCR
struct  _GPIOR2
struct  _GPIOR1
struct  _PLLCSR
struct  _OCR0B
struct  _OCR0A
struct  _TCNT0
struct  _TCCR0B
struct  _TCCR0A
struct  _GTCCR
struct  _EEARH
struct  _EEARL
struct  _EEDR
struct  _EECR
struct  _GPIOR0
struct  _EIMSK
struct  _EIFR
struct  _PCIFR
struct  _TIFR3
struct  _TIFR2
struct  _TIFR1
struct  _TIFR0
struct  _PORTF
struct  _DDRF
struct  _PINF
struct  _PORTE
struct  _DDRE
struct  _PINE
struct  _PORTD
struct  _DDRD
struct  _PIND
struct  _PORTC
struct  _DDRC
struct  _PINC
struct  _PORTB
struct  _DDRB
struct  _PINB
struct  _PORTA
struct  _DDRA
struct  _PINA
struct  _UDFNUM
struct  _UDPADD
struct  _UHFNUM
struct  _OCR3C
struct  _OCR3B
struct  _OCR3A
struct  _ICR3
struct  _TCNT3
struct  _OCR1C
struct  _OCR1B
struct  _OCR1A
struct  _ICR1
struct  _TCNT1
struct  _ADC
struct  _SP
class  MultiPortInputPins
class  MultiPortOutputPins
class  CombinedInputPins
class  CombinedOutputPins
class  FlagsBuffer
class  FlagsBuffer8
class  FlagsBuffer16
struct  Bit0
struct  Bit1
struct  Bit2
struct  Bit3
struct  Bit4
struct  Bit5
struct  Bit6
struct  Bit7
struct  Port
struct  OutputPins
struct  InputPins
struct  Pins
struct  Bits
struct  BasicInterrupt
struct  Interrupt
struct  InputPin0
struct  OutputPin0
struct  Pin0
struct  InputPin1
struct  OutputPin1
struct  Pin1
struct  InputPin2
struct  OutputPin2
struct  Pin2
struct  InputPin3
struct  OutputPin3
struct  Pin3
struct  InputPin4
struct  OutputPin4
struct  Pin4
struct  InputPin5
struct  OutputPin5
struct  Pin5
struct  InputPin6
struct  OutputPin6
struct  Pin6
struct  InputPin7
struct  OutputPin7
struct  Pin7

Namespaces

namespace  AnalogToDigital
 Analog to digital converter.
namespace  Assembler
 To insert machine code explicitly into the program.
namespace  Collection
 Classes for different types of arrays, queues and strings.
namespace  EEPROM
 Functionality of EEPROM memory.
namespace  ExternalInterrupt
 Functionality of external interrupts.
namespace  GlobalInterrupts
 Enabling and disabling global interrupts.
namespace  Internal
 Only for library's internal use.
namespace  Sleeping
 Power management and sleep modes.
namespace  Timer
 Functionality of Timers/Counters.
namespace  USART
 Functionality of Universal Synchronous and Asynchronous Serial Receiver and Transmitter interfaces.

Typedefs

typedef Port< _DDRF, _PORTF,
_PINF
PortF
typedef Port< _DDRE, _PORTE,
_PINE
PortE
typedef Port< _DDRD, _PORTD,
_PIND
PortD
typedef Port< _DDRC, _PORTC,
_PINC
PortC
typedef Port< _DDRB, _PORTB,
_PINB
PortB
typedef Port< _DDRA, _PORTA,
_PINA
PortA
typedef volatile uint16_treg16_t
typedef volatile uint8_treg8_t

Functions

template<class Register>
void SetBits (typename Register::Type flags)
template<class Register>
void ClearBits (typename Register::Type flags)
template<class Register>
void SetBitsTo (typename Register::Type flags, bool value)
template<class Register>
void ToggleBits (typename Register::Type flags)
template<class Register>
void ChangeBits (typename Register::Type selection, typename Register::Type value)
template<class Register>
Register::Type SelectBits (typename Register::Type selection)
template<class Register>
bool IsAnyBitSet (typename Register::Type flags)
template<class Register>
bool IsBitsSet (typename Register::Type flags)


Detailed Description

Base functions and classes.

Typedef Documentation

typedef struct Port< _DDRA, _PORTA, _PINA > AVRCpp::PortA

Definition at line 933 of file IO.h.

typedef struct Port< _DDRB, _PORTB, _PINB > AVRCpp::PortB

Definition at line 932 of file IO.h.

typedef struct Port< _DDRC, _PORTC, _PINC > AVRCpp::PortC

Definition at line 931 of file IO.h.

typedef struct Port< _DDRD, _PORTD, _PIND > AVRCpp::PortD

Definition at line 930 of file IO.h.

typedef struct Port< _DDRE, _PORTE, _PINE > AVRCpp::PortE

Definition at line 929 of file IO.h.

typedef struct Port< _DDRF, _PORTF, _PINF > AVRCpp::PortF

Definition at line 928 of file IO.h.

typedef volatile uint16_t& AVRCpp::reg16_t

Definition at line 51 of file IO.h.

typedef volatile uint8_t& AVRCpp::reg8_t

Definition at line 52 of file IO.h.


Function Documentation

template<class Register>
void AVRCpp::ChangeBits ( typename Register::Type  selection,
typename Register::Type  value 
) [inline]

Definition at line 81 of file IO.h.

00082         {
00083                 typename Register::Type tmp = Register::Get() & ~selection;
00084                 
00085                 value &= selection;
00086                 Register::Set(tmp + value);
00087                 
00088         } // ChangeBits

template<class Register>
void AVRCpp::ClearBits ( typename Register::Type  flags  )  [inline]

Definition at line 60 of file IO.h.

00061         {
00062                 Register::Set(Register::Get() & ~flags);
00063                 
00064         } // ClearBits

template<class Register>
bool AVRCpp::IsAnyBitSet ( typename Register::Type  flags  )  [inline]

Definition at line 97 of file IO.h.

00098         {
00099                 return SelectBits<Register>(flags) != 0 ? true : false;
00100                 
00101         } // IsBitsSet

template<class Register>
bool AVRCpp::IsBitsSet ( typename Register::Type  flags  )  [inline]

Definition at line 103 of file IO.h.

00104         {
00105                 return SelectBits<Register>(flags) == flags ? true : false;
00106                 
00107         } // IsAllBitsSet

template<class Register>
Register::Type AVRCpp::SelectBits ( typename Register::Type  selection  )  [inline]

Definition at line 91 of file IO.h.

00092         {
00093                 return Register::Get() & selection;
00094                 
00095         } // IsBitsSet

template<class Register>
void AVRCpp::SetBits ( typename Register::Type  flags  )  [inline]

Definition at line 54 of file IO.h.

00055         {
00056                 Register::Set(Register::Get() | flags);
00057                 
00058         } // SetBits

template<class Register>
void AVRCpp::SetBitsTo ( typename Register::Type  flags,
bool  value 
) [inline]

Definition at line 66 of file IO.h.

00067         {
00068                 if (value)
00069                         SetBits<Register>(flags);
00070                 else
00071                         ClearBits<Register>(flags);
00072                 
00073         } // SetBitsTo

template<class Register>
void AVRCpp::ToggleBits ( typename Register::Type  flags  )  [inline]

Definition at line 75 of file IO.h.

00076         {
00077                 Register::Set(Register::Get() ^ flags);
00078                 
00079         } // ToggleBits


Generated on Sat Sep 15 23:40:06 2007 for AVR C++ Lib for AT90USB1287 by  doxygen 1.5.2
SourceForge.net Logo MTÜ TTÜ Robotiklubi