00001
00010 #ifndef __MX_STRUCTTYPES_HH__
00011 #define __MX_STRUCTTYPES_HH__
00012
00013 #include <global-types.h>
00014
00015
00016 namespace DeviceAccess {
00017 namespace EqModMX
00018 {
00020 namespace RMagnInfo {
00021
00023 typedef struct {
00024 ULong sMasterstatus;
00025 ULong sDstatus;
00026 ULong sActivestate;
00027 SLong sInverter;
00028 SLong sActValMode;
00029 SLong sReserved5;
00030 SLong sReserved6;
00031 SLong sReserved7;
00032 SLong sVolts;
00033 SLong sVolti;
00034 Float32 sCurrents;
00035 Float32 sCurrenti;
00036 Float32 sFields;
00037 Float32 sFieldi;
00038 Float32 sReserved14;
00039 Float32 sReserved15;
00040 Float32 sReserved16;
00041 Float32 sReserved17;
00042 Float32 sReserved18;
00043 Float32 sReserved19;
00044 } DataType;
00045
00047 enum DataIndex {
00048 iMasterstatus,
00049 iDstatus,
00050 iActivestate,
00051 iInverter,
00052 iActValMode,
00053 iReserved5,
00054 iReserved6,
00055 iReserved7,
00056 iVolts,
00057 iVolti,
00058 iCurrents,
00059 iCurrenti,
00060 iFields,
00061 iFieldi,
00062 iReserved14,
00063 iReserved15,
00064 iReserved16,
00065 iReserved17,
00066 iReserved18,
00067 iReserved19
00068 };
00069
00071 static const size_t DataElements = 20;
00072 }
00073
00074
00075
00077 namespace RCalc {
00078
00079 static const SLong ISFIELD = 1;
00080 static const SLong ISCURRENT = 2;
00081 static const SLong ISVOLTAGE = 3;
00082
00084 typedef struct {
00085 SLong rType;
00086 Float32 rValue;
00087 } ParaType;
00088
00090 enum ParaIndex {iType, iValue};
00091
00093 static const size_t ParaElements = 2;
00094
00095
00097 typedef struct {
00098 Float32 sField;
00099 Float32 sCurrent;
00100 SLong sVolt;
00101 } DataType;
00102
00104 enum DataIndex {iField, iCurrent, iVolt};
00105
00107 static const size_t DataElements = 3;
00108 }
00109
00110
00111
00113 namespace WMedDataS {
00114
00116 enum ParaIndex {
00117 iDataID,
00118 iEnergy,
00119 iFocus,
00120 iIntensity
00121 };
00122 }
00123
00124
00125
00127 namespace RMedDataS {
00128
00130 enum ParaIndex {
00131 iEnergy,
00132 iFocus,
00133 iIntensity
00134 };
00135
00137 enum DataIndex {
00138 iVolt,
00139 iCurrent,
00140 iField
00141 };
00142
00144 static const size_t DataElements = 3;
00145 }
00146
00147
00148
00150 namespace RMedDataI {
00151
00153 enum DataIndex {
00154 iVolt,
00155 iCurrent,
00156 iField
00157 };
00158
00160 static const size_t DataElements = 3;
00161 }
00162
00163 }
00164 }
00165
00166 #endif