00001 // ===================================================================== 00021 // ===================================================================== 00022 #ifndef __TRS232CKEITHLEY2400MODULE_HH 00023 #define __TRS232CKEITHLEY2400MODULE_HH 00024 00025 #include "Tglobals.h" 00026 #include "TRs232cModule.hh" 00027 00028 00048 class TRs232cKeithley2400Module 00049 : public TRs232cModule 00050 { 00051 00052 public: 00053 TRs232cKeithley2400Module( const Tstring devfile = "/dev/ttyS0", Tint nchannel = 1 ); 00054 TRs232cKeithley2400Module( Tint nchannel, Tstring devfile = "/dev/ttyS0" ); 00055 TRs232cKeithley2400Module( const TRs232cKeithley2400Module& right ); 00056 ~TRs232cKeithley2400Module(); 00057 00058 protected: 00059 Tvoid defineClearMethod( Tint channel ); 00060 Tvoid defineUpdateMethod( Tint channel ) ; 00061 Tvoid defineInitializeMethod( Tint channel ); 00062 Tvoid defineReadMethod( Tint channel ); 00063 Tbool modifyData( const Tstring& accept, Tdouble& databuf ) const; 00064 00065 }; 00066 00067 #endif