Пример #1
0
 public static bool tdSetDeviceParameter(int intDeviceId, IntPtr strName, IntPtr strValue)
 {
     if (isWindows)
     {
         return(WindowsWrapper.tdSetDeviceParameter(intDeviceId, strName, strValue));
     }
     else
     {
         return(UnixWrapper.tdSetDeviceParameter(intDeviceId, strName, strValue));
     }
 }
Пример #2
0
 public static int tdAddDevice()
 {
     if (isWindows)
     {
         return(WindowsWrapper.tdAddDevice());
     }
     else
     {
         return(UnixWrapper.tdAddDevice());
     }
 }
Пример #3
0
 public static bool tdSetModel(int intDeviceId, IntPtr intModel)
 {
     if (isWindows)
     {
         return(WindowsWrapper.tdSetModel(intDeviceId, intModel));
     }
     else
     {
         return(UnixWrapper.tdSetModel(intDeviceId, intModel));
     }
 }
Пример #4
0
 public static IntPtr tdGetDeviceParameter(int intDeviceId, IntPtr strName, IntPtr defaultValue)
 {
     if (isWindows)
     {
         return(WindowsWrapper.tdGetDeviceParameter(intDeviceId, strName, defaultValue));
     }
     else
     {
         return(UnixWrapper.tdGetDeviceParameter(intDeviceId, strName, defaultValue));
     }
 }
Пример #5
0
 public static int tdRegisterControllerEvent(TDControllerEvent eventFunction, IntPtr context)
 {
     if (isWindows)
     {
         return(WindowsWrapper.tdRegisterControllerEvent(eventFunction, context));
     }
     else
     {
         return(UnixWrapper.tdRegisterControllerEvent(eventFunction, context));
     }
 }
Пример #6
0
 public static int tdDim(int intDeviceId, IntPtr level)
 {
     if (isWindows)
     {
         return(WindowsWrapper.tdDim(intDeviceId, level));
     }
     else
     {
         return(UnixWrapper.tdDim(intDeviceId, level));
     }
 }
Пример #7
0
 public static int tdGetDeviceType(int deviceId)
 {
     if (isWindows)
     {
         return(WindowsWrapper.tdGetDeviceType(deviceId));
     }
     else
     {
         return(UnixWrapper.tdGetDeviceType(deviceId));
     }
 }
Пример #8
0
 public static int tdSensorValue(IntPtr protocol, IntPtr model, int id, int dataType, IntPtr value, int valueLength, IntPtr timestamp)
 {
     if (isWindows)
     {
         return(WindowsWrapper.tdSensorValue(protocol, model, id, dataType, value, valueLength, timestamp));
     }
     else
     {
         return(UnixWrapper.tdSensorValue(protocol, model, id, dataType, value, valueLength, timestamp));
     }
 }
Пример #9
0
 public static int tdGetNumberOfDevices()
 {
     if (isWindows)
     {
         return(WindowsWrapper.tdGetNumberOfDevices());
     }
     else
     {
         return(UnixWrapper.tdGetNumberOfDevices());
     }
 }
Пример #10
0
 public static int tdGetDeviceId(int deviceIndex)
 {
     if (isWindows)
     {
         return(WindowsWrapper.tdGetDeviceId(deviceIndex));
     }
     else
     {
         return(UnixWrapper.tdGetDeviceId(deviceIndex));
     }
 }
Пример #11
0
 public static int tdLastSentCommand(int intDeviceId, int methodsSupported)
 {
     if (isWindows)
     {
         return(WindowsWrapper.tdLastSentCommand(intDeviceId, methodsSupported));
     }
     else
     {
         return(UnixWrapper.tdLastSentCommand(intDeviceId, methodsSupported));
     }
 }
Пример #12
0
 public static int tdMethods(int id, int methodsSupported)
 {
     if (isWindows)
     {
         return(WindowsWrapper.tdMethods(id, methodsSupported));
     }
     else
     {
         return(UnixWrapper.tdMethods(id, methodsSupported));
     }
 }
Пример #13
0
 public static int tdLearn(int intDeviceId)
 {
     if (isWindows)
     {
         return(WindowsWrapper.tdLearn(intDeviceId));
     }
     else
     {
         return(UnixWrapper.tdLearn(intDeviceId));
     }
 }
Пример #14
0
 public static bool tdRemoveDevice(int intDeviceId)
 {
     if (isWindows)
     {
         return(WindowsWrapper.tdRemoveDevice(intDeviceId));
     }
     else
     {
         return(UnixWrapper.tdRemoveDevice(intDeviceId));
     }
 }
Пример #15
0
 public static bool tdSetName(int intDeviceId, IntPtr chNewName)
 {
     if (isWindows)
     {
         return(WindowsWrapper.tdSetName(intDeviceId, chNewName));
     }
     else
     {
         return(UnixWrapper.tdSetName(intDeviceId, chNewName));
     }
 }
Пример #16
0
 public static int tdSensor(IntPtr protocol, int protocolLength, IntPtr model, int modelLength, IntPtr id, IntPtr dataTypes)
 {
     if (isWindows)
     {
         return(WindowsWrapper.tdSensor(protocol, protocolLength, model, modelLength, id, dataTypes));
     }
     else
     {
         return(UnixWrapper.tdSensor(protocol, protocolLength, model, modelLength, id, dataTypes));
     }
 }
Пример #17
0
 public static bool tdSetProtocol(int intDeviceId, IntPtr strProtocol)
 {
     if (isWindows)
     {
         return(WindowsWrapper.tdSetProtocol(intDeviceId, strProtocol));
     }
     else
     {
         return(UnixWrapper.tdSetProtocol(intDeviceId, strProtocol));
     }
 }
Пример #18
0
 public static int tdRegisterDeviceChangeEvent(TDDeviceChangeEvent eventFunction, IntPtr context)
 {
     if (isWindows)
     {
         return(WindowsWrapper.tdRegisterDeviceChangeEvent(eventFunction, context));
     }
     else
     {
         return(UnixWrapper.tdRegisterDeviceChangeEvent(eventFunction, context));
     }
 }
Пример #19
0
 public static IntPtr tdGetModel(int intDeviceId)
 {
     if (isWindows)
     {
         return(WindowsWrapper.tdGetModel(intDeviceId));
     }
     else
     {
         return(UnixWrapper.tdGetModel(intDeviceId));
     }
 }
Пример #20
0
 public static void tdClose()
 {
     if (isWindows)
     {
         WindowsWrapper.tdClose();
     }
     else
     {
         UnixWrapper.tdClose();
     }
 }
Пример #21
0
 public static void tdReleaseString(IntPtr thestring)
 {
     if (isWindows)
     {
         WindowsWrapper.tdReleaseString(thestring);
     }
     else
     {
         UnixWrapper.tdReleaseString(thestring);
     }
 }