IToiFrontPanelService.idl

00001 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
00002  *--------------------------------------------------------------------
00003  *
00004  * IToiFrontPanelService.idl
00005  *
00006  * This file was created by the Motorola IDL backend, 
00007  * which is based on the OmniORB IDL parser.
00008  * Please do not modify.
00009  *
00010  * Copyright (c) 2009 Motorola Inc. All Rights Reserved.
00011  *
00012  *--------------------------------------------------------------------
00013  */
00014 
00015 #ifndef ITOIFRONTPANELSERVICE_IDL
00016 #define ITOIFRONTPANELSERVICE_IDL
00017 
00018 #include "TToiInvalidArgumentException.idl"
00019 #include "TToiOperationNotSupportedException.idl"
00020 
00028 //@ [Service(Name=FrontPanelService)]
00029 
00030 interface IToiFrontPanelService {
00031 
00034   enum TToiColor
00035   {
00036     
00039     //Value of COLOR_OFF = 0
00040     COLOR_OFF,
00041     
00044     //Value of COLOR_GREEN = 1
00045     COLOR_GREEN,
00046     
00049     //Value of COLOR_RED = 2
00050     COLOR_RED,
00051     
00055     //Value of COLOR_ORANGE = 3
00056     COLOR_ORANGE,
00057     
00060     //Value of COLOR_BLUE = 4
00061     COLOR_BLUE,
00062     
00065     //Value of COLOR_YELLOW = 5
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     //Value of SEGMENT_DISPLAY_MODE_TEXT = 0
00099     SEGMENT_DISPLAY_MODE_TEXT,
00100     
00105     //Value of SEGMENT_DISPLAY_MODE_CLOCK = 1
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