Cat
|
#include <LSDelayChipV1.h>
Public Member Functions | |
LSDelayChipV1 () | |
void | configRegBulkRead (U8 confRegAddr) |
void | configRegBulkWrite (U8 confRegAddr, U16 confRegData) |
void | getConfigReg (U8 confRegAddr) |
void | setConfigReg (U8 confRegAddr, confRegData d) |
void | setConfigRegPhaseADC (U8 confRegAddr, U8 phaseADC) |
void | setConfigRegPhaseTH (U8 confRegAddr, U8 phaseTH) |
void | setConfigRegPhaseINT (U8 confRegAddr, U8 phaseINT) |
void | setConfigRegLVDSOutEn (U8 confRegAddr, bool en) |
void | setConfigRegDebugMode (U8 confRegAddr, bool en) |
void | setConfigRegVControlOutEn (U8 confRegAddr, bool en) |
void | setConfigRegLOCUS (U8 confRegAddr, U8 locus) |
void | resetPumps () |
void | bypassMisoMosi (U16 writeData) |
void | spiBERTest (U8 confRegAddr, long nFrames) |
void | showConfig () |
~LSDelayChipV1 () | |
void | help () |
StatusCode | init () |
void | reset () |
void | update () |
void | setAddress (U8 address) |
![]() | |
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 Member Functions | |
bool | checkConfigAddr (U8 addr) |
bool | checkStatusAddr (U8 addr) |
std::string | itohs (U16 value) |
Private Attributes | |
Register * | m_regConfig |
Register * | m_regStatus |
U8 | m_address |
U16 | m_rxConfigBits |
confRegData | m_rxConfig |
U8 | m_configAddr |
long | m_nBad |
double | m_fer |
Additional Inherited Members | |
![]() | |
enum | Attribut { UNDEFINED, PASSIVE, ACTIVE, INTERFACE, IO, IODATA, ELEMENT, HARDWARE, PROCESSUS, SOFTWARE } |
![]() | |
Hierarchy * | m_connection |
![]() | |
std::string | m_attribString [10] |
Definition at line 68 of file LSDelayChipV1.h.
|
inline |
Definition at line 71 of file LSDelayChipV1.h.
References IOdata::Byte, Attrib::ELEMENT, Attrib::HARDWARE, and confRegData::locus.
|
inline |
Definition at line 125 of file LSDelayChipV1.h.
void LSDelayChipV1::bypassMisoMosi | ( | U16 | writeData | ) |
Definition at line 144 of file LSDelayChipV1.cpp.
References configRegBulkWrite(), and SC_MOSI_MISO_BYPASS.
Referenced by BOOST_PYTHON_MODULE().
|
inlineprivate |
Definition at line 177 of file LSDelayChipV1.h.
References ADC_0_CONFREG_ADDR, ADC_1_CONFREG_ADDR, ADC_2_CONFREG_ADDR, ADC_3_CONFREG_ADDR, INT_TH_0_CONFREG_ADDR, INT_TH_1_CONFREG_ADDR, INT_TH_2_CONFREG_ADDR, INT_TH_3_CONFREG_ADDR, and itos().
Referenced by getConfigReg(), and setConfigReg().
|
inlineprivate |
Definition at line 193 of file LSDelayChipV1.h.
References DLL_0_STATREG_ADDR, DLL_1_STATREG_ADDR, DLL_2_STATREG_ADDR, DLL_3_STATREG_ADDR, and itos().
void LSDelayChipV1::configRegBulkRead | ( | U8 | confRegAddr | ) |
Definition at line 17 of file LSDelayChipV1.cpp.
References IOdata::dataU8(), Object::debug(), IOobject::io(), StatusCode::isFailure(), itohs(), m_regConfig, m_rxConfigBits, IOobject::read(), and Object::warning().
Referenced by BOOST_PYTHON_MODULE(), getConfigReg(), and spiBERTest().
Definition at line 57 of file LSDelayChipV1.cpp.
References IOdata::dataU8(), Object::debug(), IOobject::io(), StatusCode::isFailure(), itohs(), m_regConfig, Object::warning(), and IOobject::write().
Referenced by BOOST_PYTHON_MODULE(), bypassMisoMosi(), resetPumps(), setConfigReg(), and spiBERTest().
void LSDelayChipV1::getConfigReg | ( | U8 | confRegAddr | ) |
Definition at line 35 of file LSDelayChipV1.cpp.
References checkConfigAddr(), configRegBulkRead(), itos(), confRegData::locus, confRegData::lvdsOutEn, m_configAddr, m_rxConfig, m_rxConfigBits, confRegData::nVControlEn, confRegData::padDebug, confRegData::phaseInt, confRegData::phaseTaHAdc, and Object::warning().
Referenced by BOOST_PYTHON_MODULE(), setConfigRegDebugMode(), setConfigRegLOCUS(), setConfigRegLVDSOutEn(), setConfigRegPhaseADC(), setConfigRegPhaseINT(), setConfigRegPhaseTH(), and setConfigRegVControlOutEn().
|
inlinevirtual |
|
inlinevirtual |
init the component
Implements Element.
Definition at line 138 of file LSDelayChipV1.h.
References shell::reset(), and StatusCode::SUCCESS.
|
inlineprivate |
Definition at line 205 of file LSDelayChipV1.h.
Referenced by configRegBulkRead(), configRegBulkWrite(), showConfig(), and spiBERTest().
|
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 220 of file LSDelayChipV1.cpp.
Referenced by BOOST_PYTHON_MODULE().
void LSDelayChipV1::resetPumps | ( | ) |
Definition at line 139 of file LSDelayChipV1.cpp.
References CHARGEPUMP_SOFT_RST, and configRegBulkWrite().
|
inline |
void LSDelayChipV1::setConfigReg | ( | U8 | confRegAddr, |
confRegData | d | ||
) |
Definition at line 70 of file LSDelayChipV1.cpp.
References checkConfigAddr(), configRegBulkWrite(), shell::data(), itos(), confRegData::locus, confRegData::lvdsOutEn, confRegData::nVControlEn, confRegData::padDebug, confRegData::phaseInt, confRegData::phaseTaHAdc, and Object::warning().
Referenced by BOOST_PYTHON_MODULE(), setConfigRegDebugMode(), setConfigRegLOCUS(), setConfigRegLVDSOutEn(), setConfigRegPhaseADC(), setConfigRegPhaseINT(), setConfigRegPhaseTH(), and setConfigRegVControlOutEn().
void LSDelayChipV1::setConfigRegDebugMode | ( | U8 | confRegAddr, |
bool | en | ||
) |
Definition at line 115 of file LSDelayChipV1.cpp.
References getConfigReg(), m_rxConfig, confRegData::padDebug, and setConfigReg().
Referenced by BOOST_PYTHON_MODULE().
Definition at line 129 of file LSDelayChipV1.cpp.
References getConfigReg(), confRegData::locus, m_rxConfig, and setConfigReg().
Referenced by BOOST_PYTHON_MODULE().
void LSDelayChipV1::setConfigRegLVDSOutEn | ( | U8 | confRegAddr, |
bool | en | ||
) |
Definition at line 108 of file LSDelayChipV1.cpp.
References getConfigReg(), confRegData::lvdsOutEn, m_rxConfig, and setConfigReg().
Referenced by BOOST_PYTHON_MODULE().
Definition at line 87 of file LSDelayChipV1.cpp.
References getConfigReg(), m_rxConfig, confRegData::phaseTaHAdc, and setConfigReg().
Referenced by BOOST_PYTHON_MODULE().
Definition at line 101 of file LSDelayChipV1.cpp.
References getConfigReg(), m_rxConfig, confRegData::phaseInt, and setConfigReg().
Referenced by BOOST_PYTHON_MODULE().
Definition at line 94 of file LSDelayChipV1.cpp.
References getConfigReg(), m_rxConfig, confRegData::phaseTaHAdc, and setConfigReg().
Referenced by BOOST_PYTHON_MODULE().
void LSDelayChipV1::setConfigRegVControlOutEn | ( | U8 | confRegAddr, |
bool | en | ||
) |
Definition at line 122 of file LSDelayChipV1.cpp.
References getConfigReg(), m_rxConfig, confRegData::nVControlEn, and setConfigReg().
Referenced by BOOST_PYTHON_MODULE().
void LSDelayChipV1::showConfig | ( | ) |
Definition at line 150 of file LSDelayChipV1.cpp.
References Object::info(), itohs(), itos(), confRegData::locus, LOCUS_0350_UA, LOCUS_1400_UA, LOCUS_2300_UA, LOCUS_3000_UA, confRegData::lvdsOutEn, m_configAddr, m_rxConfig, confRegData::nVControlEn, confRegData::padDebug, confRegData::phaseInt, and confRegData::phaseTaHAdc.
Referenced by BOOST_PYTHON_MODULE().
void LSDelayChipV1::spiBERTest | ( | U8 | confRegAddr, |
long | nFrames | ||
) |
Definition at line 175 of file LSDelayChipV1.cpp.
References configRegBulkRead(), configRegBulkWrite(), Object::debug(), itohs(), itos(), m_fer, m_nBad, m_rxConfigBits, and Object::warning().
Referenced by BOOST_PYTHON_MODULE().
|
inlinevirtual |
Update the Element configuration from the actual hardware
Implements Element.
Definition at line 154 of file LSDelayChipV1.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().
|
private |
Definition at line 168 of file LSDelayChipV1.h.
|
private |
Definition at line 172 of file LSDelayChipV1.h.
Referenced by getConfigReg(), and showConfig().
|
private |
Definition at line 175 of file LSDelayChipV1.h.
Referenced by spiBERTest().
|
private |
Definition at line 174 of file LSDelayChipV1.h.
Referenced by spiBERTest().
|
private |
Definition at line 166 of file LSDelayChipV1.h.
Referenced by configRegBulkRead(), and configRegBulkWrite().
|
private |
Definition at line 167 of file LSDelayChipV1.h.
|
private |
Definition at line 171 of file LSDelayChipV1.h.
Referenced by getConfigReg(), setConfigRegDebugMode(), setConfigRegLOCUS(), setConfigRegLVDSOutEn(), setConfigRegPhaseADC(), setConfigRegPhaseINT(), setConfigRegPhaseTH(), setConfigRegVControlOutEn(), and showConfig().
|
private |
Definition at line 170 of file LSDelayChipV1.h.
Referenced by configRegBulkRead(), getConfigReg(), and spiBERTest().