AVRCpp::CombinedInputPins< InputPins0, InputPins1, InputPins2, InputPins3, InputPins4, InputPins5, InputPins6, InputPins7 > Class Template Reference

#include <DiverseIO.h>

Inherits AVRCpp::MultiPortInputPins< InputPins0::MyPort, InputPins0::myFlags, InputPins1::MyPort, InputPins1::myFlags, InputPins2::MyPort, InputPins2::myFlags, InputPins3::MyPort, InputPins3::myFlags, InputPins4::MyPort, InputPins4::myFlags, InputPins5::MyPort, InputPins5::myFlags, InputPins6::MyPort, InputPins6::myFlags, InputPins7::MyPort, InputPins7::myFlags >.

List of all members.

Static Public Member Functions

static void InitInput ()
static void InitDefaultInput ()
static bool IsAnySet ()
static bool IsSet ()

Protected Types

typedef InputPins0::MyPort::Input Pins0
typedef InputPins1::MyPort::Input Pins1
typedef InputPins2::MyPort::Input Pins2
typedef InputPins3::MyPort::Input Pins3
typedef InputPins4::MyPort::Input Pins4
typedef InputPins5::MyPort::Input Pins5
typedef InputPins6::MyPort::Input Pins6
typedef InputPins7::MyPort::Input Pins7


Detailed Description

template<class InputPins0, class InputPins1, class InputPins2 = InputPins<PortB, 0>, class InputPins3 = InputPins<PortB, 0>, class InputPins4 = InputPins<PortB, 0>, class InputPins5 = InputPins<PortB, 0>, class InputPins6 = InputPins<PortB, 0>, class InputPins7 = InputPins<PortB, 0>>
class AVRCpp::CombinedInputPins< InputPins0, InputPins1, InputPins2, InputPins3, InputPins4, InputPins5, InputPins6, InputPins7 >

Definition at line 276 of file DiverseIO.h.


Member Typedef Documentation

typedef InputPins0::MyPort ::Input AVRCpp::MultiPortInputPins< InputPins0::MyPort , flags0, InputPins1::MyPort , flags1, InputPins2::MyPort , flags2, InputPins3::MyPort , flags3, InputPins4::MyPort , flags4, InputPins5::MyPort , flags5, InputPins6::MyPort , flags6, InputPins7::MyPort , flags7 >::Pins0 [protected, inherited]

Definition at line 70 of file DiverseIO.h.

typedef InputPins1::MyPort ::Input AVRCpp::MultiPortInputPins< InputPins0::MyPort , flags0, InputPins1::MyPort , flags1, InputPins2::MyPort , flags2, InputPins3::MyPort , flags3, InputPins4::MyPort , flags4, InputPins5::MyPort , flags5, InputPins6::MyPort , flags6, InputPins7::MyPort , flags7 >::Pins1 [protected, inherited]

Definition at line 71 of file DiverseIO.h.

typedef InputPins2::MyPort ::Input AVRCpp::MultiPortInputPins< InputPins0::MyPort , flags0, InputPins1::MyPort , flags1, InputPins2::MyPort , flags2, InputPins3::MyPort , flags3, InputPins4::MyPort , flags4, InputPins5::MyPort , flags5, InputPins6::MyPort , flags6, InputPins7::MyPort , flags7 >::Pins2 [protected, inherited]

Definition at line 72 of file DiverseIO.h.

typedef InputPins3::MyPort ::Input AVRCpp::MultiPortInputPins< InputPins0::MyPort , flags0, InputPins1::MyPort , flags1, InputPins2::MyPort , flags2, InputPins3::MyPort , flags3, InputPins4::MyPort , flags4, InputPins5::MyPort , flags5, InputPins6::MyPort , flags6, InputPins7::MyPort , flags7 >::Pins3 [protected, inherited]

Definition at line 73 of file DiverseIO.h.

typedef InputPins4::MyPort ::Input AVRCpp::MultiPortInputPins< InputPins0::MyPort , flags0, InputPins1::MyPort , flags1, InputPins2::MyPort , flags2, InputPins3::MyPort , flags3, InputPins4::MyPort , flags4, InputPins5::MyPort , flags5, InputPins6::MyPort , flags6, InputPins7::MyPort , flags7 >::Pins4 [protected, inherited]

Definition at line 74 of file DiverseIO.h.

typedef InputPins5::MyPort ::Input AVRCpp::MultiPortInputPins< InputPins0::MyPort , flags0, InputPins1::MyPort , flags1, InputPins2::MyPort , flags2, InputPins3::MyPort , flags3, InputPins4::MyPort , flags4, InputPins5::MyPort , flags5, InputPins6::MyPort , flags6, InputPins7::MyPort , flags7 >::Pins5 [protected, inherited]

Definition at line 75 of file DiverseIO.h.

typedef InputPins6::MyPort ::Input AVRCpp::MultiPortInputPins< InputPins0::MyPort , flags0, InputPins1::MyPort , flags1, InputPins2::MyPort , flags2, InputPins3::MyPort , flags3, InputPins4::MyPort , flags4, InputPins5::MyPort , flags5, InputPins6::MyPort , flags6, InputPins7::MyPort , flags7 >::Pins6 [protected, inherited]

Definition at line 76 of file DiverseIO.h.

typedef InputPins7::MyPort ::Input AVRCpp::MultiPortInputPins< InputPins0::MyPort , flags0, InputPins1::MyPort , flags1, InputPins2::MyPort , flags2, InputPins3::MyPort , flags3, InputPins4::MyPort , flags4, InputPins5::MyPort , flags5, InputPins6::MyPort , flags6, InputPins7::MyPort , flags7 >::Pins7 [protected, inherited]

Definition at line 77 of file DiverseIO.h.


Member Function Documentation

static void AVRCpp::MultiPortInputPins< InputPins0::MyPort , flags0, InputPins1::MyPort , flags1, InputPins2::MyPort , flags2, InputPins3::MyPort , flags3, InputPins4::MyPort , flags4, InputPins5::MyPort , flags5, InputPins6::MyPort , flags6, InputPins7::MyPort , flags7 >::InitInput (  )  [inline, static, inherited]

Definition at line 81 of file DiverseIO.h.

00082         {
00083                 if (flags0) Port0::SetAsInput(flags0);
00084                 if (flags1) Port1::SetAsInput(flags1);
00085                 if (flags2) Port2::SetAsInput(flags2);
00086                 if (flags3) Port3::SetAsInput(flags3);
00087                 if (flags4) Port4::SetAsInput(flags4);
00088                 if (flags5) Port5::SetAsInput(flags5);
00089                 if (flags6) Port6::SetAsInput(flags6);
00090                 if (flags7) Port7::SetAsInput(flags7);
00091                 
00092         } // InitInput

static void AVRCpp::MultiPortInputPins< InputPins0::MyPort , flags0, InputPins1::MyPort , flags1, InputPins2::MyPort , flags2, InputPins3::MyPort , flags3, InputPins4::MyPort , flags4, InputPins5::MyPort , flags5, InputPins6::MyPort , flags6, InputPins7::MyPort , flags7 >::InitDefaultInput (  )  [inline, static, inherited]

Definition at line 94 of file DiverseIO.h.

00095         {
00096                 if (flags0) Port0::SetAsTriStateInput(flags0);
00097                 if (flags1) Port1::SetAsTriStateInput(flags1);
00098                 if (flags2) Port2::SetAsTriStateInput(flags2);
00099                 if (flags3) Port3::SetAsTriStateInput(flags3);
00100                 if (flags4) Port4::SetAsTriStateInput(flags4);
00101                 if (flags5) Port5::SetAsTriStateInput(flags5);
00102                 if (flags6) Port6::SetAsTriStateInput(flags6);
00103                 if (flags7) Port7::SetAsTriStateInput(flags7);
00104                 
00105         } // InitDefaultInput

static bool AVRCpp::MultiPortInputPins< InputPins0::MyPort , flags0, InputPins1::MyPort , flags1, InputPins2::MyPort , flags2, InputPins3::MyPort , flags3, InputPins4::MyPort , flags4, InputPins5::MyPort , flags5, InputPins6::MyPort , flags6, InputPins7::MyPort , flags7 >::IsAnySet (  )  [inline, static, inherited]

Definition at line 107 of file DiverseIO.h.

00108         {
00109                 return          (flags0 ? IsAnyBitSet<Pins0>(flags0) : false)
00110                                 ||      (flags1 ? IsAnyBitSet<Pins1>(flags1) : false)
00111                                 ||      (flags2 ? IsAnyBitSet<Pins2>(flags2) : false)
00112                                 ||      (flags3 ? IsAnyBitSet<Pins3>(flags3) : false)
00113                                 ||      (flags4 ? IsAnyBitSet<Pins4>(flags4) : false)
00114                                 ||      (flags5 ? IsAnyBitSet<Pins5>(flags5) : false)
00115                                 ||      (flags6 ? IsAnyBitSet<Pins6>(flags6) : false)
00116                                 ||      (flags7 ? IsAnyBitSet<Pins7>(flags7) : false);
00117                 
00118         } // IsSet

static bool AVRCpp::MultiPortInputPins< InputPins0::MyPort , flags0, InputPins1::MyPort , flags1, InputPins2::MyPort , flags2, InputPins3::MyPort , flags3, InputPins4::MyPort , flags4, InputPins5::MyPort , flags5, InputPins6::MyPort , flags6, InputPins7::MyPort , flags7 >::IsSet (  )  [inline, static, inherited]

Definition at line 120 of file DiverseIO.h.

00121         {
00122                 return          (flags0 ? IsBitsSet<Pins0>(flags0) : true)
00123                                 &&      (flags1 ? IsBitsSet<Pins1>(flags1) : true)
00124                                 &&      (flags2 ? IsBitsSet<Pins2>(flags2) : true)
00125                                 &&      (flags3 ? IsBitsSet<Pins3>(flags3) : true)
00126                                 &&      (flags4 ? IsBitsSet<Pins4>(flags4) : true)
00127                                 &&      (flags5 ? IsBitsSet<Pins5>(flags5) : true)
00128                                 &&      (flags6 ? IsBitsSet<Pins6>(flags6) : true)
00129                                 &&      (flags7 ? IsBitsSet<Pins7>(flags7) : true);
00130                 
00131         } // IsAllSet


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