|
Cat
|
#include <SpecsSlave.h>
Public Member Functions | |
| SpecsSlave () | |
| ~SpecsSlave () | |
| void | addI2c (Hierarchy *) |
| void | setAddress (unsigned char) |
| SPECSSLAVE * | specsSlaveDevice () |
| bool | detect () |
| StatusCode | init () |
| void | recursiveInitCommunications () |
| void | resetInternal () |
| void | reset () |
Public Member Functions inherited from SpecsInterface | |
| SpecsInterface () | |
| virtual | ~SpecsInterface () |
| virtual void | help () |
| 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 &) |
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 *) |
| Hierarchy * | connection () |
Public Member Functions inherited from Hierarchy | |
| 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 () |
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 () |
Protected Attributes | |
| SpecsI2c * | i2c |
Protected Attributes inherited from SpecsInterface | |
| unsigned char | m_address |
| unsigned char | m_outputSelect |
Protected Attributes inherited from Element | |
| Hierarchy * | m_connection |
Protected Attributes inherited from Attrib | |
| std::string | m_attribString [10] |
Private Attributes | |
| SPECSSLAVE | specsSlave |
Additional Inherited Members | |
Public Types inherited from Attrib | |
| enum | Attribut { UNDEFINED, PASSIVE, ACTIVE, INTERFACE, IO, IODATA, ELEMENT, HARDWARE, PROCESSUS, SOFTWARE } |
Definition at line 21 of file SpecsSlave.h.
| SpecsSlave::SpecsSlave | ( | ) |
Definition at line 32 of file SpecsSlave.cpp.
References Attrib::add(), Object::debug(), Attrib::ELEMENT, Attrib::HARDWARE, setAddress(), Object::setId(), and Object::setType().
| SpecsSlave::~SpecsSlave | ( | ) |
Definition at line 44 of file SpecsSlave.cpp.
| void SpecsSlave::addI2c | ( | Hierarchy * | element | ) |
Definition at line 175 of file SpecsSlave.cpp.
References Hierarchy::addChild(), Object::debug(), i2c, Object::name(), and Hierarchy::setParent().
Referenced by BOOST_PYTHON_MODULE(), and SpecsMezzanine::SpecsMezzanine().
| bool SpecsSlave::detect | ( | ) |
Detect connection with the SpecsSlave by trying a register read
detect a SpecsSlave at a certain address
| add | address of the specs slave looked at |
Definition at line 119 of file SpecsSlave.cpp.
References SpecsInterface::address(), Object::debug(), Object::info(), itos(), Object::name(), SpecsMaster::reset(), SpecsInterface::specsMaster(), SpecsInterface::specsMasterDevice(), SpecsInterface::specsSlave(), specsSlaveDevice(), and Object::warning().
Referenced by BOOST_PYTHON_MODULE().
|
virtual |
init the component
Reimplemented from SpecsInterface.
Definition at line 69 of file SpecsSlave.cpp.
References SpecsInterface::address(), Object::debug(), StatusCode::FAILURE, Object::fatal(), Object::info(), itos(), Object::name(), reset(), resetInternal(), SpecsInterface::specsMasterDevice(), SpecsInterface::specsSlave(), StatusCode::SUCCESS, and Object::warning().
Referenced by BOOST_PYTHON_MODULE(), and recursiveInitCommunications().
| void SpecsSlave::recursiveInitCommunications | ( | ) |
Definition at line 163 of file SpecsSlave.cpp.
References Hierarchy::children(), and init().
|
virtual |
External Reset of the Slave
Reimplemented from SpecsInterface.
Definition at line 204 of file SpecsSlave.cpp.
References SpecsInterface::address(), Object::debug(), itos(), Object::name(), specsSlaveDevice(), and Object::warning().
Referenced by SpecsMezzanine::cmdline(), and init().
| void SpecsSlave::resetInternal | ( | ) |
Internal Reset of the Slave
Definition at line 184 of file SpecsSlave.cpp.
References SpecsInterface::address(), Object::info(), itos(), Object::name(), specsSlaveDevice(), and Object::warning().
Referenced by BOOST_PYTHON_MODULE(), SpecsMezzanine::cmdline(), and init().
| void SpecsSlave::setAddress | ( | unsigned char | add | ) |
Definition at line 50 of file SpecsSlave.cpp.
References Attrib::add(), SpecsInterface::m_address, and SpecsInterface::specsSlave().
Referenced by BOOST_PYTHON_MODULE(), SpecsMezzanine::cmdline(), SpecsGlue::SpecsGlue(), SpecsMezzanine::SpecsMezzanine(), and SpecsSlave().
|
virtual |
Get the closest slave in the element hierarchy
Reimplemented from SpecsInterface.
Definition at line 61 of file SpecsSlave.cpp.
References SpecsInterface::specsSlave().
Referenced by detect(), reset(), and resetInternal().
|
protected |
Definition at line 28 of file SpecsSlave.h.
Referenced by addI2c().
|
private |
Definition at line 24 of file SpecsSlave.h.
1.8.13