AVRCpp::MultiPortInputPins< Port0, flags0, Port1, flags1, Port2, flags2, Port3, flags3, Port4, flags4, Port5, flags5, Port6, flags6, Port7, flags7 > Class Template Reference

#include <DiverseIO.h>

List of all members.

Static Public Member Functions

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

Protected Types

typedef Port0::Input Pins0
typedef Port1::Input Pins1
typedef Port2::Input Pins2
typedef Port3::Input Pins3
typedef Port4::Input Pins4
typedef Port5::Input Pins5
typedef Port6::Input Pins6
typedef Port7::Input Pins7


Detailed Description

template<class Port0, uint8_t flags0, class Port1, uint8_t flags1, class Port2 = PortB, uint8_t flags2 = 0, class Port3 = PortB, uint8_t flags3 = 0, class Port4 = PortB, uint8_t flags4 = 0, class Port5 = PortB, uint8_t flags5 = 0, class Port6 = PortB, uint8_t flags6 = 0, class Port7 = PortB, uint8_t flags7 = 0>
class AVRCpp::MultiPortInputPins< Port0, flags0, Port1, flags1, Port2, flags2, Port3, flags3, Port4, flags4, Port5, flags5, Port6, flags6, Port7, flags7 >

Definition at line 66 of file DiverseIO.h.


Member Typedef Documentation

template<class Port0, uint8_t flags0, class Port1, uint8_t flags1, class Port2 = PortB, uint8_t flags2 = 0, class Port3 = PortB, uint8_t flags3 = 0, class Port4 = PortB, uint8_t flags4 = 0, class Port5 = PortB, uint8_t flags5 = 0, class Port6 = PortB, uint8_t flags6 = 0, class Port7 = PortB, uint8_t flags7 = 0>
typedef Port0::Input AVRCpp::MultiPortInputPins< Port0, flags0, Port1, flags1, Port2, flags2, Port3, flags3, Port4, flags4, Port5, flags5, Port6, flags6, Port7, flags7 >::Pins0 [protected]

Definition at line 70 of file DiverseIO.h.

template<class Port0, uint8_t flags0, class Port1, uint8_t flags1, class Port2 = PortB, uint8_t flags2 = 0, class Port3 = PortB, uint8_t flags3 = 0, class Port4 = PortB, uint8_t flags4 = 0, class Port5 = PortB, uint8_t flags5 = 0, class Port6 = PortB, uint8_t flags6 = 0, class Port7 = PortB, uint8_t flags7 = 0>
typedef Port1::Input AVRCpp::MultiPortInputPins< Port0, flags0, Port1, flags1, Port2, flags2, Port3, flags3, Port4, flags4, Port5, flags5, Port6, flags6, Port7, flags7 >::Pins1 [protected]

Definition at line 71 of file DiverseIO.h.

template<class Port0, uint8_t flags0, class Port1, uint8_t flags1, class Port2 = PortB, uint8_t flags2 = 0, class Port3 = PortB, uint8_t flags3 = 0, class Port4 = PortB, uint8_t flags4 = 0, class Port5 = PortB, uint8_t flags5 = 0, class Port6 = PortB, uint8_t flags6 = 0, class Port7 = PortB, uint8_t flags7 = 0>
typedef Port2::Input AVRCpp::MultiPortInputPins< Port0, flags0, Port1, flags1, Port2, flags2, Port3, flags3, Port4, flags4, Port5, flags5, Port6, flags6, Port7, flags7 >::Pins2 [protected]

Definition at line 72 of file DiverseIO.h.

template<class Port0, uint8_t flags0, class Port1, uint8_t flags1, class Port2 = PortB, uint8_t flags2 = 0, class Port3 = PortB, uint8_t flags3 = 0, class Port4 = PortB, uint8_t flags4 = 0, class Port5 = PortB, uint8_t flags5 = 0, class Port6 = PortB, uint8_t flags6 = 0, class Port7 = PortB, uint8_t flags7 = 0>
typedef Port3::Input AVRCpp::MultiPortInputPins< Port0, flags0, Port1, flags1, Port2, flags2, Port3, flags3, Port4, flags4, Port5, flags5, Port6, flags6, Port7, flags7 >::Pins3 [protected]

Definition at line 73 of file DiverseIO.h.

template<class Port0, uint8_t flags0, class Port1, uint8_t flags1, class Port2 = PortB, uint8_t flags2 = 0, class Port3 = PortB, uint8_t flags3 = 0, class Port4 = PortB, uint8_t flags4 = 0, class Port5 = PortB, uint8_t flags5 = 0, class Port6 = PortB, uint8_t flags6 = 0, class Port7 = PortB, uint8_t flags7 = 0>
typedef Port4::Input AVRCpp::MultiPortInputPins< Port0, flags0, Port1, flags1, Port2, flags2, Port3, flags3, Port4, flags4, Port5, flags5, Port6, flags6, Port7, flags7 >::Pins4 [protected]

Definition at line 74 of file DiverseIO.h.

template<class Port0, uint8_t flags0, class Port1, uint8_t flags1, class Port2 = PortB, uint8_t flags2 = 0, class Port3 = PortB, uint8_t flags3 = 0, class Port4 = PortB, uint8_t flags4 = 0, class Port5 = PortB, uint8_t flags5 = 0, class Port6 = PortB, uint8_t flags6 = 0, class Port7 = PortB, uint8_t flags7 = 0>
typedef Port5::Input AVRCpp::MultiPortInputPins< Port0, flags0, Port1, flags1, Port2, flags2, Port3, flags3, Port4, flags4, Port5, flags5, Port6, flags6, Port7, flags7 >::Pins5 [protected]

Definition at line 75 of file DiverseIO.h.

template<class Port0, uint8_t flags0, class Port1, uint8_t flags1, class Port2 = PortB, uint8_t flags2 = 0, class Port3 = PortB, uint8_t flags3 = 0, class Port4 = PortB, uint8_t flags4 = 0, class Port5 = PortB, uint8_t flags5 = 0, class Port6 = PortB, uint8_t flags6 = 0, class Port7 = PortB, uint8_t flags7 = 0>
typedef Port6::Input AVRCpp::MultiPortInputPins< Port0, flags0, Port1, flags1, Port2, flags2, Port3, flags3, Port4, flags4, Port5, flags5, Port6, flags6, Port7, flags7 >::Pins6 [protected]

Definition at line 76 of file DiverseIO.h.

template<class Port0, uint8_t flags0, class Port1, uint8_t flags1, class Port2 = PortB, uint8_t flags2 = 0, class Port3 = PortB, uint8_t flags3 = 0, class Port4 = PortB, uint8_t flags4 = 0, class Port5 = PortB, uint8_t flags5 = 0, class Port6 = PortB, uint8_t flags6 = 0, class Port7 = PortB, uint8_t flags7 = 0>
typedef Port7::Input AVRCpp::MultiPortInputPins< Port0, flags0, Port1, flags1, Port2, flags2, Port3, flags3, Port4, flags4, Port5, flags5, Port6, flags6, Port7, flags7 >::Pins7 [protected]

Definition at line 77 of file DiverseIO.h.


Member Function Documentation

template<class Port0, uint8_t flags0, class Port1, uint8_t flags1, class Port2 = PortB, uint8_t flags2 = 0, class Port3 = PortB, uint8_t flags3 = 0, class Port4 = PortB, uint8_t flags4 = 0, class Port5 = PortB, uint8_t flags5 = 0, class Port6 = PortB, uint8_t flags6 = 0, class Port7 = PortB, uint8_t flags7 = 0>
static void AVRCpp::MultiPortInputPins< Port0, flags0, Port1, flags1, Port2, flags2, Port3, flags3, Port4, flags4, Port5, flags5, Port6, flags6, Port7, flags7 >::InitInput (  )  [inline, static]

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

template<class Port0, uint8_t flags0, class Port1, uint8_t flags1, class Port2 = PortB, uint8_t flags2 = 0, class Port3 = PortB, uint8_t flags3 = 0, class Port4 = PortB, uint8_t flags4 = 0, class Port5 = PortB, uint8_t flags5 = 0, class Port6 = PortB, uint8_t flags6 = 0, class Port7 = PortB, uint8_t flags7 = 0>
static void AVRCpp::MultiPortInputPins< Port0, flags0, Port1, flags1, Port2, flags2, Port3, flags3, Port4, flags4, Port5, flags5, Port6, flags6, Port7, flags7 >::InitDefaultInput (  )  [inline, static]

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

template<class Port0, uint8_t flags0, class Port1, uint8_t flags1, class Port2 = PortB, uint8_t flags2 = 0, class Port3 = PortB, uint8_t flags3 = 0, class Port4 = PortB, uint8_t flags4 = 0, class Port5 = PortB, uint8_t flags5 = 0, class Port6 = PortB, uint8_t flags6 = 0, class Port7 = PortB, uint8_t flags7 = 0>
static bool AVRCpp::MultiPortInputPins< Port0, flags0, Port1, flags1, Port2, flags2, Port3, flags3, Port4, flags4, Port5, flags5, Port6, flags6, Port7, flags7 >::IsAnySet (  )  [inline, static]

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

template<class Port0, uint8_t flags0, class Port1, uint8_t flags1, class Port2 = PortB, uint8_t flags2 = 0, class Port3 = PortB, uint8_t flags3 = 0, class Port4 = PortB, uint8_t flags4 = 0, class Port5 = PortB, uint8_t flags5 = 0, class Port6 = PortB, uint8_t flags6 = 0, class Port7 = PortB, uint8_t flags7 = 0>
static bool AVRCpp::MultiPortInputPins< Port0, flags0, Port1, flags1, Port2, flags2, Port3, flags3, Port4, flags4, Port5, flags5, Port6, flags6, Port7, flags7 >::IsSet (  )  [inline, static]

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:05 2007 for AVR C++ Lib for ATmega64 by  doxygen 1.5.2
SourceForge.net Logo MTÜ TTÜ Robotiklubi