Cat
|
#include <ICPhaser.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 | |
ICPhaser () | |
~ICPhaser () | |
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 | status () |
void | help () |
StatusCode | init () |
void | reset () |
void | update () |
Register * | regConfig () |
Register * | regStatus () |
void | setAddress (U8 address) |
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 Attributes | |
U8 | m_address |
unsigned char | m_phase [4] |
Register * | m_regConfig |
Register * | m_regStatus |
Additional Inherited Members | |
![]() | |
Hierarchy * | m_connection |
![]() | |
std::string | m_attribString [10] |
Definition at line 19 of file ICPhaser.h.
typedef unsigned short ICPhaser::U16 |
Definition at line 22 of file ICPhaser.h.
typedef unsigned long ICPhaser::U32 |
Definition at line 21 of file ICPhaser.h.
typedef unsigned char ICPhaser::U8 |
Definition at line 23 of file ICPhaser.h.
|
inline |
Definition at line 24 of file ICPhaser.h.
References Attrib::add(), Hierarchy::addChild(), IOdata::Byte, Object::debug(), IOdata::defDataU8(), Attrib::ELEMENT, Attrib::HARDWARE, IOobject::io(), m_phase, m_regConfig, m_regStatus, Object::setId(), Object::setName(), IOdata::setSubAddress(), Object::setType(), and IOdata::setWordSize().
|
inline |
Definition at line 55 of file ICPhaser.h.
|
inline |
Definition at line 133 of file ICPhaser.h.
References m_address.
Referenced by BOOST_PYTHON_MODULE(), read(), setAddress(), and status().
|
inlinevirtual |
printout help for the element
Implements Element.
Definition at line 92 of file ICPhaser.h.
References Object::info(), and Object::name().
|
inlinevirtual |
init the component
Implements Element.
Definition at line 99 of file ICPhaser.h.
References reset(), and StatusCode::SUCCESS.
|
inline |
void ICPhaser::read | ( | ) |
Definition at line 16 of file ICPhaser.cpp.
References address(), IOdata::dataU8(), Object::debug(), IOobject::io(), StatusCode::isFailure(), itos(), m_phase, m_regConfig, Object::name(), IOobject::read(), IOdata::setAddress(), IOdata::subAddress(), and Object::warning().
Referenced by BOOST_PYTHON_MODULE(), phase(), and update().
|
inline |
Definition at line 119 of file ICPhaser.h.
References m_regConfig.
Referenced by BOOST_PYTHON_MODULE().
|
inline |
Definition at line 123 of file ICPhaser.h.
References m_regStatus.
Referenced by BOOST_PYTHON_MODULE().
|
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 49 of file ICPhaser.cpp.
References IOdata::dataU8(), IOobject::io(), StatusCode::isFailure(), m_regConfig, Object::warning(), and IOobject::write().
Referenced by BOOST_PYTHON_MODULE(), and init().
|
inline |
Definition at line 127 of file ICPhaser.h.
References address(), m_address, m_regConfig, m_regStatus, and IOobject::setAddress().
Referenced by BOOST_PYTHON_MODULE().
|
inline |
Definition at line 58 of file ICPhaser.h.
References Object::info(), itos(), m_phase, and write().
Referenced by BOOST_PYTHON_MODULE().
|
inline |
void ICPhaser::status | ( | ) |
Definition at line 38 of file ICPhaser.cpp.
References address(), IOdata::dataU8(), IOdata::dump(), IOobject::io(), StatusCode::isFailure(), m_regStatus, IOobject::read(), IOdata::setAddress(), IOdata::subAddress(), and Object::warning().
Referenced by BOOST_PYTHON_MODULE(), and phase().
|
inlinevirtual |
Update the Element configuration from the actual hardware
Implements Element.
Definition at line 115 of file ICPhaser.h.
References read().
Referenced by 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 ICPhaser::write | ( | ) |
Definition at line 60 of file ICPhaser.cpp.
References IOdata::dataU8(), Object::debug(), IOdata::dump(), IOobject::io(), StatusCode::isFailure(), itos(), m_phase, m_regConfig, Object::name(), IOdata::subAddress(), Object::warning(), and IOobject::write().
Referenced by BOOST_PYTHON_MODULE(), phase(), and setPhase().
|
private |
Definition at line 138 of file ICPhaser.h.
Referenced by address(), and setAddress().
|
private |
Definition at line 139 of file ICPhaser.h.
Referenced by ICPhaser(), phase(), read(), setPhase(), and write().
|
private |
Definition at line 140 of file ICPhaser.h.
Referenced by ICPhaser(), read(), regConfig(), reset(), setAddress(), and write().
|
private |
Definition at line 141 of file ICPhaser.h.
Referenced by ICPhaser(), regStatus(), setAddress(), and status().