/******************************************************************************* * TmsApi.h Produced by Bidl ******************************************************************************* */ #ifndef TmsApi_H #define TmsApi_H 1 #include #include #include #include using namespace Tms; class Control; class TmsControlServer : public Tms::TmsControlService { public: TmsControlServer(Control& control, BoapServer& server, BString name); BError getVersion(BString& version); BError init(); BError configure(ConfigInfo configInfo); BError getConfiguration(ConfigInfo& configInfo); BError test(BList& errors); BError getStatus(BList& statusList); BError getStatistics(BList& statsList); BError getPuChannel(UInt32 puChannel, PuChannel& puPhysChannel); BError puServerStarted(UInt32 number); BError setTestMode(PuChannel puPhysChannel, UInt32 testOutput, UInt32 timingDisableMask); BError setTimingSignals(PuChannel puPhysChannel, UInt32 timingSignals); BError captureTestData(PuChannel puPhysChannel, TestCaptureInfo captureInfo, BArray& data); BError setTestData(PuChannel puPhysChannel, Int32 on, BArray data); ///< This function will set a PU channel to sample data from memory rather than the ADC's BError setPupeConfig(PuChannel puPhysChannel, PupeConfig pupeConfig); BError getPupeConfig(PuChannel puPhysChannel, PupeConfig& pupeConfig); private: Control& ocontrol; }; class TmsProcessServer : public Tms::TmsProcessService { public: TmsProcessServer(Control& control, BoapServer& server, BString name); BError getVersion(BString& version); BError setControlInfo(CycleParam params); BError getControlInfo(BString cycleType, UInt32 puChannel, CycleParam& params); BError delControlInfo(BString cycleType, UInt32 puChannel); BError getControlList(BList& itemList); BError setNextCycle(UInt32 cycleNumber, BString cycleType); BError getCycleInfo(UInt32& cycleNumber, BString& cycleType); BError getData(DataInfo dataInfo, Data& data); BError addEventServer(BString name); BError requestData(DataInfo dataInfo); private: Control& ocontrol; }; class TmsEventServer : public Tms::TmsEventService { public: TmsEventServer(Control& control, BoapServer& server, BString name); BError errorEvent(UInt32 cycleNumber, BError error); BError cycleStartEvent(UInt32 cycleNumber); BError cycleStopEvent(UInt32 cycleNumber); BError dataEvent(DataInfo dataInfo); private: Control& ocontrol; }; #endif