AVRCpp::Port< DDRReg, PORTReg, PINReg > Struct Template Reference

#include <IO.h>

List of all members.

Public Types

typedef PORTReg Output
typedef PINReg Input

Static Public Member Functions

static void SetAsTriStateInput (uint8_t flags)
static void SetAsInput (uint8_t flags)
static void SetAsOutput (uint8_t flags)
static bool IsOutput (uint8_t flags)
static bool IsInput (uint8_t flags)
static bool IsPulledUpInput (uint8_t flags)
static bool IsTriStateInput (uint8_t flags)


Detailed Description

template<typename DDRReg, typename PORTReg, typename PINReg>
struct AVRCpp::Port< DDRReg, PORTReg, PINReg >

Definition at line 154 of file IO.h.


Member Typedef Documentation

template<typename DDRReg, typename PORTReg, typename PINReg>
typedef PORTReg AVRCpp::Port< DDRReg, PORTReg, PINReg >::Output

Definition at line 156 of file IO.h.

template<typename DDRReg, typename PORTReg, typename PINReg>
typedef PINReg AVRCpp::Port< DDRReg, PORTReg, PINReg >::Input

Definition at line 157 of file IO.h.


Member Function Documentation

template<typename DDRReg, typename PORTReg, typename PINReg>
static void AVRCpp::Port< DDRReg, PORTReg, PINReg >::SetAsTriStateInput ( uint8_t  flags  )  [inline, static]

Definition at line 159 of file IO.h.

00159 { ClearBits<PORTReg>(flags), ClearBits<DDRReg>(flags); }

template<typename DDRReg, typename PORTReg, typename PINReg>
static void AVRCpp::Port< DDRReg, PORTReg, PINReg >::SetAsInput ( uint8_t  flags  )  [inline, static]

Definition at line 160 of file IO.h.

00160 { SetBits<PORTReg>(flags), ClearBits<DDRReg>(flags); }

template<typename DDRReg, typename PORTReg, typename PINReg>
static void AVRCpp::Port< DDRReg, PORTReg, PINReg >::SetAsOutput ( uint8_t  flags  )  [inline, static]

Definition at line 161 of file IO.h.

00161 { SetBits<DDRReg>(flags); }

template<typename DDRReg, typename PORTReg, typename PINReg>
static bool AVRCpp::Port< DDRReg, PORTReg, PINReg >::IsOutput ( uint8_t  flags  )  [inline, static]

Definition at line 162 of file IO.h.

00162 { return IsBitsSet<DDRReg>(flags); }

template<typename DDRReg, typename PORTReg, typename PINReg>
static bool AVRCpp::Port< DDRReg, PORTReg, PINReg >::IsInput ( uint8_t  flags  )  [inline, static]

Definition at line 163 of file IO.h.

00163 { return !IsOutput(); }

template<typename DDRReg, typename PORTReg, typename PINReg>
static bool AVRCpp::Port< DDRReg, PORTReg, PINReg >::IsPulledUpInput ( uint8_t  flags  )  [inline, static]

Definition at line 164 of file IO.h.

00164 { return IsBitsSet<PORTReg>(flags) && !IsBitsSet<DDRReg>(flags); }

template<typename DDRReg, typename PORTReg, typename PINReg>
static bool AVRCpp::Port< DDRReg, PORTReg, PINReg >::IsTriStateInput ( uint8_t  flags  )  [inline, static]

Definition at line 165 of file IO.h.

00165 { return !IsBitsSet<PORTReg>(flags) && !IsBitsSet<DDRReg>(flags); }


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