Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members

L1394::internal::TopoNode Class Reference
[Internal]

A TopoNode represent an node in the topologie structure. More...

#include <l1394_toponode.h>

List of all members.

Public Member Functions

 TopoNode (int, TopoNode *)
 Constructor.
 ~TopoNode ()
 Destructor.
void setChild (int i, TopoNode *node)
 add a child to a port
void setPortStatus (int, unsigned short int)
TopoNodegetChild (int i)
 return a pointer to the i'th node
unsigned short int getPortStatus (int i)
int getMaxPort ()
int getPhyId ()
int getPhySpeed ()
int getPhyDelay ()
int getPwrClass ()
int getGapCount ()
int getLinkActive ()
void setNodeInfo (Quadlet *t)
void printNode ()
const char * getPhySpeedSpec (int i)

Static Public Attributes

static const char * phy_speed_spec []
static const char * phy_delay_spec []
static const char * pwr_class_spec []
static const char * port_value []

Friends

ostream & operator<< (ostream &, TopoNode &)


Detailed Description

A TopoNode represent an node in the topologie structure.

A TopoNode store also information from the physical layer. This value describe the information like speed, ports, powerclass and so on.

Author:
Michael Repplinger

Definition at line 40 of file l1394_toponode.h.


Constructor & Destructor Documentation

L1394::internal::TopoNode::TopoNode int  maxp,
TopoNode p
 

Constructor.

Parameters:
int Integer Value that specify the port count
TopoNode* pointer to parent node

Definition at line 51 of file l1394_toponode.cpp.

L1394::internal::TopoNode::~TopoNode  ) 
 

Destructor.

Definition at line 64 of file l1394_toponode.cpp.


Member Function Documentation

L1394::internal::TopoNode::getChild int  i  )  [inline]
 

return a pointer to the i'th node

Parameters:
int Integer value that specify the port

Definition at line 71 of file l1394_toponode.h.

Referenced by printNode().

int L1394::internal::TopoNode::getGapCount  )  [inline]
 

Definition at line 83 of file l1394_toponode.h.

References L1394::Quadlet::getBitRange().

int L1394::internal::TopoNode::getLinkActive  )  [inline]
 

Definition at line 84 of file l1394_toponode.h.

References L1394::Quadlet::getBit().

int L1394::internal::TopoNode::getMaxPort  )  [inline]
 

Definition at line 78 of file l1394_toponode.h.

int L1394::internal::TopoNode::getPhyDelay  )  [inline]
 

Definition at line 81 of file l1394_toponode.h.

References L1394::Quadlet::getBitRange().

Referenced by L1394::internal::operator<<().

int L1394::internal::TopoNode::getPhyId  )  [inline]
 

Definition at line 79 of file l1394_toponode.h.

References L1394::Quadlet::getBitRange().

Referenced by printNode().

int L1394::internal::TopoNode::getPhySpeed  )  [inline]
 

Definition at line 80 of file l1394_toponode.h.

References L1394::Quadlet::getBitRange().

Referenced by L1394::internal::operator<<().

const char* L1394::internal::TopoNode::getPhySpeedSpec int  i  )  [inline]
 

Definition at line 88 of file l1394_toponode.h.

References phy_speed_spec.

unsigned short int L1394::internal::TopoNode::getPortStatus int  i  )  [inline]
 

Definition at line 76 of file l1394_toponode.h.

int L1394::internal::TopoNode::getPwrClass  )  [inline]
 

Definition at line 82 of file l1394_toponode.h.

References L1394::Quadlet::getBitRange().

Referenced by L1394::internal::operator<<().

void L1394::internal::TopoNode::printNode  ) 
 

Definition at line 80 of file l1394_toponode.cpp.

References getChild(), getPhyId(), and port_value.

Referenced by L1394::internal::BusTopology::print().

L1394::internal::TopoNode::setChild int  i,
TopoNode node
[inline]
 

add a child to a port

Parameters:
int Integer value that specify the port
TopoNode* pointer to the childnode.

Definition at line 61 of file l1394_toponode.h.

void L1394::internal::TopoNode::setNodeInfo Quadlet t  ) 
 

Definition at line 92 of file l1394_toponode.cpp.

L1394::internal::TopoNode::setPortStatus int  ,
unsigned short  int
 

Definition at line 73 of file l1394_toponode.cpp.


Friends And Related Function Documentation

ostream& operator<< ostream &  o,
TopoNode n
[friend]
 

Definition at line 97 of file l1394_toponode.cpp.


Member Data Documentation

const char * L1394::internal::TopoNode::phy_delay_spec [static]
 

Initial value:

      {"<=144ns (~14/Base_Rate)", "<reserved>", "<reserved>","<reserved>"}

Definition at line 48 of file l1394_toponode.cpp.

Referenced by L1394::internal::operator<<().

const char * L1394::internal::TopoNode::phy_speed_spec [static]
 

Initial value:

      {"98.304 Mbit/s", "196.608 Mbit/s",
       "393.216 Mbit/s", "<reserved>"}

Definition at line 31 of file l1394_toponode.cpp.

Referenced by getPhySpeedSpec(), and L1394::internal::operator<<().

const char * L1394::internal::TopoNode::port_value [static]
 

Initial value:

             {" Port not present",  "Not active",
              "Active and connected to parent node",
              "Active and connected to child node" }

Definition at line 25 of file l1394_toponode.cpp.

Referenced by printNode().

const char * L1394::internal::TopoNode::pwr_class_spec [static]
 

Initial value:

      {"Node does need bus power and does not repeat power.",
       "Self powered and provides 15W (minimum) to bus.",
       "Self powered and provides 30W (minimum) to bus.",
       "Self powered and provides 45W (minimum) to bus.",
       "Node need 3W from the bus.",
       "<reserved>",
       "Node need 3W from the bus. Additional 3W(max) is need to enable link.",
       "Node need 3W from the bus. Additional 7W(max) is need to enable link."}

Definition at line 35 of file l1394_toponode.cpp.

Referenced by L1394::internal::operator<<().


The documentation for this class was generated from the following files:
Generated on Wed Aug 24 00:36:45 2005 for L1394 by doxygen 1.4.2
L1394 library (NMM) grahics.cs.uni-sb.de/~repplix/l1394_home/