Cat
Public Member Functions | List of all members
SpecsParallelBus Class Reference

#include <include/SpecsParallelBus.h>

Inheritance diagram for SpecsParallelBus:
SpecsInterface Interface Element Hierarchy Object Attrib

Public Member Functions

 SpecsParallelBus ()
 
 ~SpecsParallelBus ()
 
void help ()
 
StatusCode init ()
 
void reset ()
 
void update ()
 
- Public Member Functions inherited from SpecsInterface
 SpecsInterface ()
 
virtual ~SpecsInterface ()
 
void setAddress (unsigned char)
 
unsigned char address ()
 
void setOutputSelect (unsigned char)
 
unsigned char outputSelect ()
 
virtual SpecsSlavespecsSlave ()
 
virtual SpecsMasterspecsMaster ()
 
virtual SPECSSLAVE * specsSlaveDevice ()
 
virtual SPECSMASTER * specsMasterDevice ()
 
virtual StatusCode read (IOdata *io)
 
virtual StatusCode write (IOdata *io)
 
bool specsWriteI2c (unsigned char address, unsigned char nData, U8 *data)
 
bool specsWriteI2c (unsigned char address, std::vector< U8 > data)
 
bool specsReadI2c (unsigned char address, unsigned char nOctects, U8 *i2cWords)
 
bool specsReadI2c (unsigned char address, std::vector< unsigned char > &specsWords)
 
bool specsWriteI2c (unsigned char address, unsigned char subAddress, unsigned char nData, U8 *data)
 
bool specsWriteI2c (unsigned char address, unsigned char outputSel, unsigned char subAddress, unsigned char nData, U8 *data)
 
bool specsReadI2c (unsigned char address, unsigned char subAddress, unsigned char nOctets, U8 *i2cWords)
 
bool specsReadI2c (unsigned char address, unsigned char outputSel, unsigned char subAddress, unsigned char nOctets, U8 *i2cWords)
 
bool specsWriteParallel (unsigned char address, unsigned short data)
 
bool specsReadParallel (unsigned char address, U16 &data)
 
bool specsWriteRegister (unsigned char, unsigned short)
 
bool specsReadRegister (unsigned char, U16 &)
 
- Public Member Functions inherited from Interface
 Interface ()
 Standard constructor. More...
 
virtual ~Interface ()
 Destructor. More...
 
- Public Member Functions inherited from Element
 Element ()
 Standard constructor. More...
 
virtual ~Element ()
 Destructor. More...
 
void recursiveInitElement ()
 
void recursiveInitCommunications ()
 
StatusCode setConnection (Hierarchy *)
 
Hierarchyconnection ()
 
- Public Member Functions inherited from Hierarchy
 Hierarchy ()
 Standard constructor. More...
 
virtual ~Hierarchy ()
 Destructor. More...
 
void clear ()
 
void setParent (Hierarchy *parent)
 
Hierarchyparent ()
 
Hierarchyparent (std::string)
 
Hierarchyorigin ()
 
virtual void addChild (Hierarchy *element)
 
std::vector< Hierarchy * > children ()
 
Hierarchychild (std::string)
 
HierarchychildTyped (std::string)
 
unsigned long numberOfChildren ()
 
bool hasChildren ()
 
void delChild (Hierarchy *)
 
void delChild (std::string)
 
std::string path (std::string=std::string(""))
 
std::string pathTyped (std::string=std::string(""))
 
void tree (std::string indent=std::string(""))
 
void tree ()
 
- Public Member Functions inherited from Object
 Object ()
 Standard constructor. More...
 
virtual ~Object ()
 Destructor. More...
 
std::string name () const
 
std::string type ()
 
unsigned char id ()
 
std::string title ()
 
void msgSvc (int level, std::string msg, std::string name)
 
void msg (std::string mymsg)
 
void verbose (std::string mymsg)
 
void debug (std::string mymsg)
 
void info (std::string mymsg)
 
void warning (std::string mymsg)
 
void error (std::string mymsg)
 
void fatal (std::string mymsg)
 
void msg (std::string mymsg, std::string name)
 
void verbose (std::string mymsg, std::string name)
 
void debug (std::string mymsg, std::string name)
 
void info (std::string mymsg, std::string name)
 
void warning (std::string mymsg, std::string name)
 
void error (std::string mymsg, std::string name)
 
void fatal (std::string mymsg, std::string name)
 
void setName (std::string name)
 
void setType (std::string type)
 
void setId (unsigned char id)
 
void setTitle (std::string title)
 
void setDllName (std::string dllName)
 
std::string dllName ()
 
- Public Member Functions inherited from Attrib
 Attrib ()
 Standard constructor. More...
 
virtual ~Attrib ()
 Destructor. More...
 
bool is (int attribut)
 
void add (int attribut)
 
void remove (int attribut)
 
std::string attributs ()
 

Additional Inherited Members

- Public Types inherited from Attrib
enum  Attribut {
  UNDEFINED, PASSIVE, ACTIVE, INTERFACE,
  IO, IODATA, ELEMENT, HARDWARE,
  PROCESSUS, SOFTWARE
}
 
- Protected Attributes inherited from SpecsInterface
unsigned char m_address
 
unsigned char m_outputSelect
 
- Protected Attributes inherited from Element
Hierarchym_connection
 
- Protected Attributes inherited from Attrib
std::string m_attribString [10]
 

Detailed Description

Class Describes a parallel bus

Author
Frédéric Machefert
Date
2004-01-18

Definition at line 27 of file SpecsParallelBus.h.

Constructor & Destructor Documentation

◆ SpecsParallelBus()

SpecsParallelBus::SpecsParallelBus ( )
inline

Definition at line 29 of file SpecsParallelBus.h.

References Object::debug(), Object::name(), Object::setId(), Object::setName(), and Object::setType().

29  {
30  setName("SpecsParallelBus");
31  setType("SpecsParallelBus");
32  setId(0);
33  debug(name()+" built.","SpecsParallelBus::SpecsParallelBus");
34  }
void setName(std::string name)
Definition: Object.h:51
void setType(std::string type)
Definition: Object.h:52
void setId(unsigned char id)
Definition: Object.h:53
void debug(std::string mymsg)
Definition: Object.h:37
std::string name() const
Definition: Object.h:28

◆ ~SpecsParallelBus()

SpecsParallelBus::~SpecsParallelBus ( )
inline

Definition at line 36 of file SpecsParallelBus.h.

36 {}

Member Function Documentation

◆ help()

void SpecsParallelBus::help ( )
inlinevirtual

printout help for the element

Reimplemented from SpecsInterface.

Definition at line 41 of file SpecsParallelBus.h.

References Object::info(), and Object::name().

41 { info("SpecsParallelBus "+name()+". No help.","SpecsParallelBus::help"); };
void info(std::string mymsg)
Definition: Object.h:38
std::string name() const
Definition: Object.h:28

◆ init()

StatusCode SpecsParallelBus::init ( )
inlinevirtual

init the component

Returns
void

Reimplemented from SpecsInterface.

Definition at line 47 of file SpecsParallelBus.h.

References Object::info(), Object::name(), and StatusCode::SUCCESS.

47  {
48  info("SpecsParallelBus "+name()+" initialization.","SpecsParallelBus::init");
49  return StatusCode::SUCCESS;
50  };
void info(std::string mymsg)
Definition: Object.h:38
std::string name() const
Definition: Object.h:28

◆ reset()

void SpecsParallelBus::reset ( )
inlinevirtual

Resets the Element so that is is in a standard and safe situation. Different from Element::init which configure the Element. Element::reset() is more an Emergency pull. It is often/usually called by the recursiveInitElement method at the start of the program.

Reimplemented from SpecsInterface.

Definition at line 59 of file SpecsParallelBus.h.

References Object::info(), and Object::name().

59 { info("SpecsParallelBus "+name()+" reset.","SpecsParallelBus::reset");};
void info(std::string mymsg)
Definition: Object.h:38
std::string name() const
Definition: Object.h:28

◆ update()

void SpecsParallelBus::update ( )
inlinevirtual

Update the Element configuration from the actual hardware

Reimplemented from SpecsInterface.

Definition at line 64 of file SpecsParallelBus.h.

References Object::info(), and Object::name().

64 {info("SpecsParallelBus "+name()+". Nothing to do.","SpecsParallelBus::update");};
void info(std::string mymsg)
Definition: Object.h:38
std::string name() const
Definition: Object.h:28

The documentation for this class was generated from the following file: