|
Cat
|
#include <inc/UsbSpiBus.h>
Public Types | |
| typedef unsigned long | U32 |
| typedef unsigned short | U16 |
| typedef unsigned char | U8 |
Public Types inherited from Attrib | |
| enum | Attribut { UNDEFINED, PASSIVE, ACTIVE, INTERFACE, IO, IODATA, ELEMENT, HARDWARE, PROCESSUS, SOFTWARE } |
Public Member Functions | |
| UsbSpiBus () | |
| Standard constructor. More... | |
| virtual | ~UsbSpiBus () |
| Destructor. More... | |
| void | help () |
| virtual StatusCode | init () |
| void | reset () |
| void | update () |
| void | ctrlWd (U8) |
| void | setTxNeg (bool txNeg) |
| bool | txNeg () |
| void | setRxNeg (bool rxNeg) |
| bool | rxNeg () |
| void | setASS (bool aSS) |
| bool | aSS () |
| void | setLSBFirst (bool lSBFirst) |
| bool | lSBFirst () |
| char | dataLength () |
| void | setDataLength (char dataLength) |
| U32 | clockDivider () |
| StatusCode | setClockDivider (U32) |
| Register * | regCtrl () |
| Register * | regClockDivider () |
| Register * | regSlaveSelect () |
| Register * | regRxData () |
| Register * | regTxData () |
| virtual StatusCode | read (IOdata *) |
| virtual StatusCode | write (IOdata *) |
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 () |
Private Attributes | |
| char | m_dataLength |
| bool | m_aSS |
| bool | m_lSBFirst |
| bool | m_txNeg |
| bool | m_rxNeg |
| U32 | m_clockDivider |
| Register * | m_regCtrl |
| Register * | m_regClockDivider |
| Register * | m_regSlaveSelect |
| Register * | m_regRxData |
| Register * | m_regTxData |
Additional Inherited Members | |
Protected Attributes inherited from Element | |
| Hierarchy * | m_connection |
Protected Attributes inherited from Attrib | |
| std::string | m_attribString [10] |
Definition at line 17 of file UsbSpiBus.h.
| typedef unsigned short UsbSpiBus::U16 |
Definition at line 20 of file UsbSpiBus.h.
| typedef unsigned long UsbSpiBus::U32 |
Definition at line 19 of file UsbSpiBus.h.
| typedef unsigned char UsbSpiBus::U8 |
Definition at line 21 of file UsbSpiBus.h.
| UsbSpiBus::UsbSpiBus | ( | ) |
Standard constructor.
Definition at line 17 of file UsbSpiBus.cpp.
References Hierarchy::addChild(), IOdata::Byte, IOdata::defDataU8(), IOobject::io(), m_aSS, m_dataLength, m_lSBFirst, m_regClockDivider, m_regCtrl, m_regRxData, m_regSlaveSelect, m_regTxData, m_rxNeg, m_txNeg, IOdata::setAddress(), Object::setName(), Object::setType(), and IOdata::setWordSize().
|
virtual |
Destructor.
Definition at line 66 of file UsbSpiBus.cpp.
|
inline |
Definition at line 67 of file UsbSpiBus.h.
References m_aSS.
Referenced by BOOST_PYTHON_MODULE(), and setASS().
| unsigned int long UsbSpiBus::clockDivider | ( | ) |
Definition at line 127 of file UsbSpiBus.cpp.
References Element::connection(), IOdata::dataU8(), StatusCode::FAILURE, IOobject::io(), m_clockDivider, Element::m_connection, m_regClockDivider, Interface::read(), and Object::warning().
Referenced by BOOST_PYTHON_MODULE(), setClockDivider(), and setDataLength().
| void UsbSpiBus::ctrlWd | ( | U8 | length | ) |
Definition at line 89 of file UsbSpiBus.cpp.
References IOdata::dataU8(), IOobject::io(), m_aSS, m_dataLength, m_lSBFirst, m_regCtrl, m_rxNeg, and m_txNeg.
Referenced by read(), update(), and write().
|
inline |
|
inlinevirtual |
printout help for the element
Implements Interface.
Definition at line 30 of file UsbSpiBus.h.
References Object::info(), init(), and Object::name().
Referenced by BOOST_PYTHON_MODULE().
|
virtual |
init the component
Implements Interface.
Definition at line 74 of file UsbSpiBus.cpp.
References StatusCode::FAILURE, Object::fatal(), Element::m_connection, Hierarchy::parent(), Element::setConnection(), StatusCode::SUCCESS, and Object::type().
Referenced by BOOST_PYTHON_MODULE(), and help().
|
inline |
Definition at line 71 of file UsbSpiBus.h.
References m_lSBFirst.
Referenced by BOOST_PYTHON_MODULE(), and setLSBFirst().
|
virtual |
Implements Interface.
Definition at line 142 of file UsbSpiBus.cpp.
References IOdata::address(), Element::connection(), ctrlWd(), IOdata::dataU8(), IOdata::dump(), StatusCode::FAILURE, Object::info(), IOobject::io(), itos(), IOdata::length(), Element::m_connection, m_dataLength, m_regCtrl, m_regRxData, m_regSlaveSelect, m_regTxData, Interface::read(), StatusCode::SUCCESS, Object::warning(), and Interface::write().
Referenced by regTxData().
|
inline |
Definition at line 88 of file UsbSpiBus.h.
References m_regClockDivider.
Referenced by BOOST_PYTHON_MODULE().
|
inline |
Definition at line 84 of file UsbSpiBus.h.
References m_regCtrl.
Referenced by BOOST_PYTHON_MODULE().
|
inline |
Definition at line 96 of file UsbSpiBus.h.
References m_regTxData.
Referenced by BOOST_PYTHON_MODULE().
|
inline |
Definition at line 92 of file UsbSpiBus.h.
References m_regSlaveSelect.
Referenced by BOOST_PYTHON_MODULE().
|
inline |
Definition at line 100 of file UsbSpiBus.h.
References m_regTxData, read(), and write().
Referenced by BOOST_PYTHON_MODULE().
|
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.
Implements Interface.
Definition at line 46 of file UsbSpiBus.h.
References Object::info(), and Object::name().
Referenced by BOOST_PYTHON_MODULE().
|
inline |
Definition at line 63 of file UsbSpiBus.h.
References m_rxNeg.
Referenced by BOOST_PYTHON_MODULE(), and setRxNeg().
|
inline |
| StatusCode UsbSpiBus::setClockDivider | ( | U32 | value | ) |
Definition at line 105 of file UsbSpiBus.cpp.
References clockDivider(), Element::connection(), IOdata::dataU8(), StatusCode::FAILURE, IOobject::io(), Element::m_connection, m_regClockDivider, StatusCode::SUCCESS, Object::warning(), and Interface::write().
Referenced by BOOST_PYTHON_MODULE(), and setDataLength().
|
inline |
Definition at line 75 of file UsbSpiBus.h.
References clockDivider(), dataLength(), Object::info(), itos(), m_dataLength, and setClockDivider().
|
inline |
Definition at line 69 of file UsbSpiBus.h.
References lSBFirst(), and m_lSBFirst.
Referenced by BOOST_PYTHON_MODULE().
|
inline |
Definition at line 61 of file UsbSpiBus.h.
References m_rxNeg, and rxNeg().
Referenced by BOOST_PYTHON_MODULE().
|
inline |
Definition at line 57 of file UsbSpiBus.h.
References m_txNeg, and txNeg().
Referenced by BOOST_PYTHON_MODULE().
|
inline |
Definition at line 59 of file UsbSpiBus.h.
References m_txNeg.
Referenced by BOOST_PYTHON_MODULE(), and setTxNeg().
|
inlinevirtual |
Update the Element configuration from the actual hardware
Implements Interface.
Definition at line 51 of file UsbSpiBus.h.
References ctrlWd(), Object::info(), and Object::name().
Referenced by BOOST_PYTHON_MODULE(), AppFrame.AppFrame::deleteHardware(), ConfFrame.ConfFrame::onChange(), GraphFrame.GraphFrame::onChange(), CfgFrame.CfgFrame::onChange(), ConfFrame.ConfFrame::onEdit(), AppFrame.AppFrame::onLoad(), ConfFrame.ConfFrame::onReLoad(), GraphFrame.GraphFrame::onReLoad(), CfgFrame.CfgFrame::onReLoad(), and AppFrame.AppFrame::onReLoad().
|
virtual |
Implements Interface.
Definition at line 195 of file UsbSpiBus.cpp.
References IOdata::address(), Element::connection(), ctrlWd(), IOdata::dataU8(), IOdata::dump(), StatusCode::FAILURE, Object::info(), IOobject::io(), itos(), IOdata::length(), Element::m_connection, m_dataLength, m_regCtrl, m_regSlaveSelect, m_regTxData, StatusCode::SUCCESS, Object::warning(), and Interface::write().
Referenced by regTxData().
|
private |
Definition at line 112 of file UsbSpiBus.h.
Referenced by aSS(), ctrlWd(), setASS(), and UsbSpiBus().
|
private |
Definition at line 116 of file UsbSpiBus.h.
Referenced by clockDivider().
|
private |
Definition at line 111 of file UsbSpiBus.h.
Referenced by ctrlWd(), dataLength(), read(), setDataLength(), UsbSpiBus(), and write().
|
private |
Definition at line 113 of file UsbSpiBus.h.
Referenced by ctrlWd(), lSBFirst(), setLSBFirst(), and UsbSpiBus().
|
private |
Definition at line 118 of file UsbSpiBus.h.
Referenced by clockDivider(), regClockDivider(), setClockDivider(), and UsbSpiBus().
|
private |
Definition at line 117 of file UsbSpiBus.h.
Referenced by ctrlWd(), read(), regCtrl(), UsbSpiBus(), and write().
|
private |
Definition at line 120 of file UsbSpiBus.h.
Referenced by read(), and UsbSpiBus().
|
private |
Definition at line 119 of file UsbSpiBus.h.
Referenced by read(), regSlaveSelect(), UsbSpiBus(), and write().
|
private |
Definition at line 121 of file UsbSpiBus.h.
Referenced by read(), regRxData(), regTxData(), UsbSpiBus(), and write().
|
private |
Definition at line 115 of file UsbSpiBus.h.
Referenced by ctrlWd(), rxNeg(), setRxNeg(), and UsbSpiBus().
|
private |
Definition at line 114 of file UsbSpiBus.h.
Referenced by ctrlWd(), setTxNeg(), txNeg(), and UsbSpiBus().
1.8.13