Cat
|
#include <inc/SpecsMezzanine.h>
Public Member Functions | |
SpecsMezzanine () | |
Standard constructor. More... | |
virtual | ~SpecsMezzanine () |
Standard Desctructor. More... | |
void | addBus (Element *) |
void | help () |
bool | led () |
int | date () |
void | setLed (bool) |
bool | cmdline (std::vector< std::string >) |
![]() | |
SpecsSlave () | |
~SpecsSlave () | |
void | addI2c (Hierarchy *) |
void | setAddress (unsigned char) |
SPECSSLAVE * | specsSlaveDevice () |
bool | detect () |
StatusCode | init () |
void | recursiveInitCommunications () |
void | resetInternal () |
void | reset () |
![]() | |
SpecsInterface () | |
virtual | ~SpecsInterface () |
virtual void | update () |
void | setAddress (unsigned char) |
unsigned char | address () |
void | setOutputSelect (unsigned char) |
unsigned char | outputSelect () |
virtual SpecsSlave * | specsSlave () |
virtual SpecsMaster * | specsMaster () |
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 &) |
![]() | |
Interface () | |
Standard constructor. More... | |
virtual | ~Interface () |
Destructor. More... | |
![]() | |
Element () | |
Standard constructor. More... | |
virtual | ~Element () |
Destructor. More... | |
void | recursiveInitElement () |
void | recursiveInitCommunications () |
StatusCode | setConnection (Hierarchy *) |
Hierarchy * | connection () |
![]() | |
Hierarchy () | |
Standard constructor. More... | |
virtual | ~Hierarchy () |
Destructor. More... | |
void | clear () |
void | setParent (Hierarchy *parent) |
Hierarchy * | parent () |
Hierarchy * | parent (std::string) |
Hierarchy * | origin () |
virtual void | addChild (Hierarchy *element) |
std::vector< Hierarchy * > | children () |
Hierarchy * | child (std::string) |
Hierarchy * | childTyped (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 () |
![]() | |
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 () |
![]() | |
Attrib () | |
Standard constructor. More... | |
virtual | ~Attrib () |
Destructor. More... | |
bool | is (int attribut) |
void | add (int attribut) |
void | remove (int attribut) |
std::string | attributs () |
Private Attributes | |
SpecsBus * | m_bus |
DCU * | m_dcu |
Additional Inherited Members | |
![]() | |
enum | Attribut { UNDEFINED, PASSIVE, ACTIVE, INTERFACE, IO, IODATA, ELEMENT, HARDWARE, PROCESSUS, SOFTWARE } |
![]() | |
SpecsI2c * | i2c |
![]() | |
unsigned char | m_address |
unsigned char | m_outputSelect |
![]() | |
Hierarchy * | m_connection |
![]() | |
std::string | m_attribString [10] |
Definition at line 18 of file SpecsMezzanine.h.
SpecsMezzanine::SpecsMezzanine | ( | ) |
Standard constructor.
Definition at line 22 of file SpecsMezzanine.cpp.
References Hierarchy::addChild(), SpecsSlave::addI2c(), Object::debug(), m_bus, m_dcu, SpecsSlave::setAddress(), DCU::setAddress(), Object::setName(), DCU::setOutputSelect(), Hierarchy::setParent(), and Object::setType().
|
virtual |
void SpecsMezzanine::addBus | ( | Element * | element | ) |
Add o device on the parallel bus of the specs mezzanine
Definition at line 48 of file SpecsMezzanine.cpp.
References Hierarchy::addChild(), Object::debug(), m_bus, Object::name(), and Hierarchy::setParent().
bool SpecsMezzanine::cmdline | ( | std::vector< std::string > | cmd | ) |
access to the command line function
Definition at line 58 of file SpecsMezzanine.cpp.
References Attrib::add(), SpecsInterface::address(), shell::data(), date(), help(), Object::info(), itos(), SpecsSlave::reset(), SpecsSlave::resetInternal(), SpecsSlave::setAddress(), setLed(), SpecsInterface::specsReadI2c(), SpecsInterface::specsReadRegister(), SpecsInterface::specsWriteI2c(), and SpecsInterface::specsWriteRegister().
int SpecsMezzanine::date | ( | ) |
Get the Specs Slave Date
Definition at line 174 of file SpecsMezzanine.cpp.
References SpecsInterface::specsReadRegister(), and Object::warning().
Referenced by cmdline().
|
virtual |
Help message for the Specs Slaves
Reimplemented from SpecsInterface.
Definition at line 159 of file SpecsMezzanine.cpp.
References Object::info(), and Object::msgSvc().
Referenced by cmdline().
bool SpecsMezzanine::led | ( | ) |
Get the state of the LEDs controlled by the Specs Slave
Definition at line 213 of file SpecsMezzanine.cpp.
References Object::debug(), SpecsInterface::specsReadRegister(), and Object::warning().
void SpecsMezzanine::setLed | ( | bool | state | ) |
Set the state of the LEDs controlled by the Specs Slave
Definition at line 190 of file SpecsMezzanine.cpp.
References Object::debug(), SpecsInterface::specsReadRegister(), SpecsInterface::specsWriteRegister(), and Object::warning().
Referenced by cmdline().
|
private |
Definition at line 59 of file SpecsMezzanine.h.
Referenced by addBus(), and SpecsMezzanine().
|
private |
Definition at line 60 of file SpecsMezzanine.h.
Referenced by SpecsMezzanine().