|
Cat
|
#include <ICECALv3.h>
Public Member Functions | |
| ICECALv3 () | |
| void | setAddress (U8 address) |
| void | setNRetries (int nRet) |
| void | resetPumps () |
| void | bypassMisoMosi (U16 writeData) |
| PyObject * | getDelayLineCh (int ch) |
| StatusCode | setDelayLineCh (int ch, PyObject *) |
| PyObject * | getAnalogCh (int ch) |
| StatusCode | setAnalogCh (int ch, PyObject *) |
| PyObject * | getMainReg () |
| StatusCode | setMainReg (PyObject *) |
| PyObject * | spiFERTest (long nTest) |
| StatusCode | dumpConfig (string configFile, PyObject *chipId) |
| PyObject * | loadConfig (string configFile) |
| double | version () |
| bool | bxidResynchStatus () |
| void | spiAddressScan () |
| ~ICECALv3 () | |
| void | help () |
| StatusCode | init () |
| void | reset () |
| void | update () |
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 Member Functions | |
| U16 | spiRead (U8 confRegAddr, U8 offsetAddr=128) |
| void | spiWrite (U8 confRegAddr, U16 confRegData) |
| bool | spiWriteSafe (U8 confRegAddr, U16 confRegData) |
| bool | writeAsicParams (string fileName, PyObject *params) |
| int | parseParameterList (string configFile, string paramName[64], int paramValue[64]) |
| PyObject * | fillParams (string paramListRet[], int paramListLen, string paramName[64], int paramValue[64], int fileParamLen) |
| bool | checkChNumber (int ch) |
| std::string | itohs (int value) |
Private Attributes | |
| Register * | confReg |
| int | nRetries |
| bool | err |
Additional Inherited Members | |
Public Types inherited from Attrib | |
| enum | Attribut { UNDEFINED, PASSIVE, ACTIVE, INTERFACE, IO, IODATA, ELEMENT, HARDWARE, PROCESSUS, SOFTWARE } |
Protected Attributes inherited from Element | |
| Hierarchy * | m_connection |
Protected Attributes inherited from Attrib | |
| std::string | m_attribString [10] |
Definition at line 58 of file ICECALv3.h.
| ICECALv3::ICECALv3 | ( | ) |
Definition at line 16 of file ICECALv3.cpp.
References Attrib::add(), Hierarchy::addChild(), IOdata::Byte, confReg, Object::debug(), IOdata::defDataU8(), Attrib::ELEMENT, Attrib::HARDWARE, IOobject::io(), Object::setId(), Object::setName(), IOdata::setSubAddress(), Object::setType(), and IOdata::setWordSize().
|
inline |
Definition at line 98 of file ICECALv3.h.
| bool ICECALv3::bxidResynchStatus | ( | ) |
Definition at line 677 of file ICECALv3.cpp.
References BXID_RESYNCH_ADDR, Object::info(), itohs(), and spiRead().
Referenced by BOOST_PYTHON_MODULE().
|
inline |
|
inlineprivate |
Definition at line 155 of file ICECALv3.h.
References itos().
| StatusCode ICECALv3::dumpConfig | ( | string | configFile, |
| PyObject * | chipId | ||
| ) |
Definition at line 132 of file ICECALv3.cpp.
References StatusCode::FAILURE, getAnalogCh(), getDelayLineCh(), getMainReg(), StatusCode::SUCCESS, and writeAsicParams().
Referenced by BOOST_PYTHON_MODULE().
|
private |
| PyObject * ICECALv3::getAnalogCh | ( | int | ch | ) |
Definition at line 312 of file ICECALv3.cpp.
References err, icecalLSBAddrCh, icecalMSBAddrCh, Object::info(), itohs(), itos(), and spiRead().
Referenced by BOOST_PYTHON_MODULE(), and dumpConfig().
| PyObject * ICECALv3::getDelayLineCh | ( | int | ch | ) |
Definition at line 246 of file ICECALv3.cpp.
References delayLineAddrCh, err, Object::info(), itohs(), itos(), and spiRead().
Referenced by BOOST_PYTHON_MODULE(), and dumpConfig().
| PyObject * ICECALv3::getMainReg | ( | ) |
Definition at line 415 of file ICECALv3.cpp.
References err, icecalMainAddr, Object::info(), itohs(), itos(), and spiRead().
Referenced by BOOST_PYTHON_MODULE(), and dumpConfig().
|
inlinevirtual |
|
inlinevirtual |
init the component
Implements Element.
Definition at line 111 of file ICECALv3.h.
References shell::reset(), and StatusCode::SUCCESS.
|
inlineprivate |
Definition at line 164 of file ICECALv3.h.
Referenced by bxidResynchStatus(), getAnalogCh(), getDelayLineCh(), getMainReg(), setAnalogCh(), spiAddressScan(), spiFERTest(), spiRead(), spiWrite(), and spiWriteSafe().
| PyObject * ICECALv3::loadConfig | ( | string | configFile | ) |
Definition at line 36 of file ICECALv3.cpp.
References fillParams(), parseParameterList(), setAnalogCh(), setDelayLineCh(), and setMainReg().
Referenced by BOOST_PYTHON_MODULE().
|
private |
Definition at line 77 of file ICECALv3.cpp.
References Object::error().
Referenced by loadConfig().
|
virtual |
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 Element.
Definition at line 655 of file ICECALv3.cpp.
|
inline |
|
inline |
| StatusCode ICECALv3::setAnalogCh | ( | int | ch, |
| PyObject * | icecalChParams | ||
| ) |
Definition at line 361 of file ICECALv3.cpp.
References err, Object::error(), StatusCode::FAILURE, icecalLSBAddrCh, icecalMSBAddrCh, itohs(), spiWriteSafe(), and StatusCode::SUCCESS.
Referenced by BOOST_PYTHON_MODULE(), and loadConfig().
| StatusCode ICECALv3::setDelayLineCh | ( | int | ch, |
| PyObject * | dllParams | ||
| ) |
Definition at line 281 of file ICECALv3.cpp.
References delayLineAddrCh, err, StatusCode::FAILURE, spiWriteSafe(), and StatusCode::SUCCESS.
Referenced by BOOST_PYTHON_MODULE(), and loadConfig().
| StatusCode ICECALv3::setMainReg | ( | PyObject * | icecalMainParams | ) |
Definition at line 474 of file ICECALv3.cpp.
References err, StatusCode::FAILURE, icecalMainAddr, spiWriteSafe(), and StatusCode::SUCCESS.
Referenced by BOOST_PYTHON_MODULE(), and loadConfig().
|
inline |
| void ICECALv3::spiAddressScan | ( | ) |
Definition at line 688 of file ICECALv3.cpp.
References itohs(), itos(), spiRead(), and Object::warning().
Referenced by BOOST_PYTHON_MODULE().
| PyObject * ICECALv3::spiFERTest | ( | long | nTest | ) |
Definition at line 577 of file ICECALv3.cpp.
References delayLineAddrCh, Object::error(), icecalLSBAddrCh, icecalMainAddr, icecalMSBAddrCh, Object::info(), itohs(), spiRead(), spiWrite(), and Object::warning().
Referenced by BOOST_PYTHON_MODULE().
Definition at line 537 of file ICECALv3.cpp.
References confReg, IOdata::dataU8(), Object::debug(), err, IOobject::io(), StatusCode::isFailure(), itohs(), IOobject::read(), and Object::warning().
Referenced by bxidResynchStatus(), getAnalogCh(), getDelayLineCh(), getMainReg(), spiAddressScan(), spiFERTest(), spiWriteSafe(), and version().
Definition at line 561 of file ICECALv3.cpp.
References confReg, IOdata::dataU8(), Object::debug(), err, IOobject::io(), StatusCode::isFailure(), itohs(), Object::warning(), and IOobject::write().
Referenced by spiFERTest(), and spiWriteSafe().
Definition at line 513 of file ICECALv3.cpp.
References Object::error(), itohs(), nRetries, spiRead(), spiWrite(), and Object::warning().
Referenced by setAnalogCh(), setDelayLineCh(), and setMainReg().
|
inlinevirtual |
Update the Element configuration from the actual hardware
Implements Element.
Definition at line 127 of file ICECALv3.h.
Referenced by A3PE_BitFlip.A3PE_BitFlip::__init__(), Acquisition.Acquisition::__init__(), EmulateFE.EmulateFE::__init__(), 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().
| double ICECALv3::version | ( | ) |
Definition at line 660 of file ICECALv3.cpp.
References ftos(), ICECAL_VERSION_ADDR, Object::info(), itos(), and spiRead().
Referenced by BOOST_PYTHON_MODULE().
|
private |
Definition at line 156 of file ICECALv3.cpp.
References CALIBRATION_FILE_VER.
Referenced by dumpConfig().
|
private |
Definition at line 129 of file ICECALv3.h.
Referenced by ICECALv3(), spiRead(), and spiWrite().
|
private |
Definition at line 139 of file ICECALv3.h.
Referenced by getAnalogCh(), getDelayLineCh(), getMainReg(), setAnalogCh(), setDelayLineCh(), setMainReg(), spiRead(), and spiWrite().
|
private |
Definition at line 137 of file ICECALv3.h.
Referenced by spiWriteSafe().
1.8.13