Device class for equipment model pulsed magnets. More...
#include <mxs-device.hh>
Public Member Functions | |
MXSDevice (const string &name) | |
Constructor. | |
~MXSDevice () | |
Destructor. | |
virtual SLong | checkSupStatus () |
Check and set device support status. | |
DevConstDesc * | devConstP () throw () |
Return pointer to constants in the device object. | |
virtual ULong | getStatus (AccData &outData) |
Get devices status. | |
virtual ULong | getVersionStrings (AccData &outData) |
Get versionstrings of device implementation. | |
boost::shared_ptr< Device > | hallprobe () |
Return device reference of real hallprobe. | |
virtual ULong | initDevice () |
Initialise device and data. | |
boost::shared_ptr< Device > | magnet () |
Return device reference of real magnet/power supply. | |
virtual ULong | onlineTest () |
Check configuration. | |
virtual ULong | readStatusAlarmMask () |
Send device specific alarm mask. | |
virtual ULong | resetDevice () |
Reset device and data. | |
void | setDevConstants () throw () |
Set device constants. | |
void | setDevDataP () |
MXS has no dualport RAM. Nothing to do. | |
virtual ULong | updateDevConst () |
Update device constants in object and in dualported RAM. | |
virtual ULong | updateStatus () |
Update device status. |
Device class for equipment model pulsed magnets.
MXSDevice | ( | const string & | name | ) | [explicit] |
Constructor.
name | Nomenclature of device |
~MXSDevice | ( | ) | [inline] |
Destructor.
virtual SLong checkSupStatus | ( | ) | [virtual] |
Check and set device support status.
Will be called by the Device Manager Overloads method of NativeDevice.
DevConstDesc* devConstP | ( | ) | throw () [inline] |
Return pointer to constants in the device object.
virtual ULong getStatus | ( | AccData & | outData | ) | [virtual] |
Get devices status.
outData | AccData reference to copy the status to |
XSR_OK
if execution was successful or a message giving the cause of the error. virtual ULong getVersionStrings | ( | AccData & | outData | ) | [virtual] |
Get versionstrings of device implementation.
outData | AccData reference to copy the data to |
XSR_OK
if execution was successful or a message giving the cause of the error. boost::shared_ptr<Device> hallprobe | ( | ) | [inline] |
Return device reference of real hallprobe.
virtual ULong initDevice | ( | ) | [virtual] |
Initialise device and data.
XSR_OK
if execution was successful or a message giving the cause of the error. boost::shared_ptr<Device> magnet | ( | ) | [inline] |
Return device reference of real magnet/power supply.
virtual ULong onlineTest | ( | ) | [virtual] |
Check configuration.
XSR_OK
if execution was successful or a message giving the cause of the error. virtual ULong readStatusAlarmMask | ( | ) | [inline, virtual] |
Send device specific alarm mask.
virtual ULong resetDevice | ( | ) | [virtual] |
Reset device and data.
XSR_OK
if execution was successful or a message giving the cause of the error. void setDevConstants | ( | ) | throw () |
Set device constants.
Gets device constants from local DB and saves them in device object's attribute.
void setDevDataP | ( | ) | [inline] |
MXS has no dualport RAM. Nothing to do.
virtual ULong updateDevConst | ( | ) | [virtual] |
Update device constants in object and in dualported RAM.
Re-reads the local DB and updates the constants in the device object and in EC's dualported RAM.
virtual ULong updateStatus | ( | ) | [virtual] |
Update device status.