Cat
|
#include <Phaser.h>
Public Types | |
typedef unsigned long | U32 |
typedef unsigned short | U16 |
typedef unsigned char | U8 |
![]() | |
enum | Attribut { UNDEFINED, PASSIVE, ACTIVE, INTERFACE, IO, IODATA, ELEMENT, HARDWARE, PROCESSUS, SOFTWARE } |
Public Member Functions | |
Phaser () | |
~Phaser () | |
void | setPhase (unsigned char channel, unsigned char value) |
void | setPhase (unsigned char ch0, unsigned char ch1, unsigned char ch2, unsigned char ch3) |
unsigned int | phase (unsigned int ch) |
void | read () |
void | write () |
void | help () |
StatusCode | init () |
void | reset () |
void | update () |
Register * | reg () |
![]() | |
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 | |
unsigned char | m_address |
unsigned char | m_phase [4] |
Register * | m_reg |
Additional Inherited Members | |
![]() | |
Hierarchy * | m_connection |
![]() | |
std::string | m_attribString [10] |
typedef unsigned short Phaser::U16 |
typedef unsigned long Phaser::U32 |
typedef unsigned char Phaser::U8 |
|
inline |
Definition at line 24 of file Phaser.h.
References Attrib::add(), Hierarchy::addChild(), Object::debug(), IOdata::defDataU8(), Attrib::ELEMENT, Attrib::HARDWARE, IOobject::io(), m_phase, m_reg, Object::setId(), and Object::setType().
|
inlinevirtual |
printout help for the element
Implements Element.
Definition at line 74 of file Phaser.h.
References Object::info(), and Object::name().
|
inlinevirtual |
init the component
Implements Element.
Definition at line 80 of file Phaser.h.
References StatusCode::SUCCESS.
|
inline |
Definition at line 63 of file Phaser.h.
References m_phase, read(), and write().
Referenced by BOOST_PYTHON_MODULE(), PhaserRampExec::execute(), and PhaserRampExec::initialize().
void Phaser::read | ( | ) |
Definition at line 23 of file Phaser.cpp.
References IOdata::dataU8(), Object::debug(), IOobject::io(), StatusCode::isFailure(), itos(), m_phase, m_reg, Object::name(), IOobject::read(), and Object::warning().
Referenced by BOOST_PYTHON_MODULE(), PhaserRampExec::execute(), PhaserRampExec::initialize(), phase(), and update().
|
inline |
Definition at line 101 of file Phaser.h.
References m_reg.
Referenced by BOOST_PYTHON_MODULE(), and Proto40MHz_v1::Proto40MHz_v1().
|
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 Element.
|
inline |
Definition at line 42 of file Phaser.h.
References Object::info(), itos(), m_phase, and write().
Referenced by BOOST_PYTHON_MODULE(), PhaserRampExec::execute(), and PhaserRampExec::finalize().
|
inline |
|
inlinevirtual |
Update the Element configuration from the actual hardware
Implements Element.
Definition at line 97 of file Phaser.h.
References read().
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().
void Phaser::write | ( | ) |
Definition at line 46 of file Phaser.cpp.
References IOdata::dataU8(), Object::debug(), IOobject::io(), StatusCode::isFailure(), itos(), m_phase, m_reg, Object::name(), Object::warning(), and IOobject::write().
Referenced by BOOST_PYTHON_MODULE(), PhaserRampExec::execute(), PhaserRampExec::finalize(), phase(), and setPhase().
|
private |
|
private |