IToiFrontPanelService.idl
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015 #ifndef ITOIFRONTPANELSERVICE_IDL
00016 #define ITOIFRONTPANELSERVICE_IDL
00017
00018 #include "TToiInvalidArgumentException.idl"
00019 #include "TToiOperationNotSupportedException.idl"
00020
00028
00029
00030 interface IToiFrontPanelService {
00031
00034 enum TToiColor
00035 {
00036
00039
00040 COLOR_OFF,
00041
00044
00045 COLOR_GREEN,
00046
00049
00050 COLOR_RED,
00051
00055
00056 COLOR_ORANGE,
00057
00060
00061 COLOR_BLUE,
00062
00065
00066 COLOR_YELLOW
00067 };
00069 typedef sequence < TToiColor > TToiColorSequence;
00070
00072 struct TToiLedState {
00074 IToiFrontPanelService::TToiColor Color;
00080 double BlinkFrequency;
00081 };
00082
00084 struct TToiLedInfo {
00086 long Index;
00088 IToiFrontPanelService::TToiColorSequence SupportedColors;
00089 };
00090
00093 enum TToiSegmentDisplayModes
00094 {
00095
00098
00099 SEGMENT_DISPLAY_MODE_TEXT,
00100
00105
00106 SEGMENT_DISPLAY_MODE_CLOCK
00107 };
00109 struct TToiSegmentDisplayState {
00113 string Text;
00119 boolean ColonState;
00122 long Intensity;
00124 IToiFrontPanelService::TToiSegmentDisplayModes CurrentMode;
00125 };
00126
00128 struct TToiSegmentDisplayInfo {
00131 long NumberOfBlocks;
00133 boolean SupportsColon;
00135 boolean SupportsIntensity;
00136 };
00137
00146 void GetLedCount(out long numberOfLeds);
00147
00161 void GetLedInfo(in long index,
00162 out TToiLedInfo info)
00163 raises (TToiInvalidArgumentException);
00164
00183 void SetLedState(in long index,
00184 in TToiLedState state)
00185 raises (TToiInvalidArgumentException, TToiOperationNotSupportedException);
00186
00200 void GetLedState(in long index,
00201 out TToiLedState state)
00202 raises (TToiInvalidArgumentException);
00203
00213 void GetSegmentDisplayInfo(out TToiSegmentDisplayInfo info)
00214 raises (TToiOperationNotSupportedException);
00215
00231 void SetSegmentDisplayState(in TToiSegmentDisplayState state)
00232 raises (TToiInvalidArgumentException, TToiOperationNotSupportedException);
00233
00244 void GetSegmentDisplayState(out TToiSegmentDisplayState state)
00245 raises (TToiOperationNotSupportedException);
00246
00253 void IsSegmentDisplaySupported(out boolean isSupported);
00254
00255 };
00256
00257 #endif