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));
     }
 }
 public static int tdAddDevice()
 {
     if (isWindows)
     {
         return(WindowsWrapper.tdAddDevice());
     }
     else
     {
         return(UnixWrapper.tdAddDevice());
     }
 }
 public static bool tdSetModel(int intDeviceId, IntPtr intModel)
 {
     if (isWindows)
     {
         return(WindowsWrapper.tdSetModel(intDeviceId, intModel));
     }
     else
     {
         return(UnixWrapper.tdSetModel(intDeviceId, intModel));
     }
 }
 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));
     }
 }
 public static int tdRegisterControllerEvent(TDControllerEvent eventFunction, IntPtr context)
 {
     if (isWindows)
     {
         return(WindowsWrapper.tdRegisterControllerEvent(eventFunction, context));
     }
     else
     {
         return(UnixWrapper.tdRegisterControllerEvent(eventFunction, context));
     }
 }
 public static int tdDim(int intDeviceId, IntPtr level)
 {
     if (isWindows)
     {
         return(WindowsWrapper.tdDim(intDeviceId, level));
     }
     else
     {
         return(UnixWrapper.tdDim(intDeviceId, level));
     }
 }
 public static int tdGetDeviceType(int deviceId)
 {
     if (isWindows)
     {
         return(WindowsWrapper.tdGetDeviceType(deviceId));
     }
     else
     {
         return(UnixWrapper.tdGetDeviceType(deviceId));
     }
 }
 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));
     }
 }
 public static int tdGetNumberOfDevices()
 {
     if (isWindows)
     {
         return(WindowsWrapper.tdGetNumberOfDevices());
     }
     else
     {
         return(UnixWrapper.tdGetNumberOfDevices());
     }
 }
Esempio n. 10
0
 public static int tdGetDeviceId(int deviceIndex)
 {
     if (isWindows)
     {
         return(WindowsWrapper.tdGetDeviceId(deviceIndex));
     }
     else
     {
         return(UnixWrapper.tdGetDeviceId(deviceIndex));
     }
 }
Esempio n. 11
0
 public static int tdLastSentCommand(int intDeviceId, int methodsSupported)
 {
     if (isWindows)
     {
         return(WindowsWrapper.tdLastSentCommand(intDeviceId, methodsSupported));
     }
     else
     {
         return(UnixWrapper.tdLastSentCommand(intDeviceId, methodsSupported));
     }
 }
Esempio n. 12
0
 public static int tdMethods(int id, int methodsSupported)
 {
     if (isWindows)
     {
         return(WindowsWrapper.tdMethods(id, methodsSupported));
     }
     else
     {
         return(UnixWrapper.tdMethods(id, methodsSupported));
     }
 }
Esempio n. 13
0
 public static int tdLearn(int intDeviceId)
 {
     if (isWindows)
     {
         return(WindowsWrapper.tdLearn(intDeviceId));
     }
     else
     {
         return(UnixWrapper.tdLearn(intDeviceId));
     }
 }
Esempio n. 14
0
 public static bool tdRemoveDevice(int intDeviceId)
 {
     if (isWindows)
     {
         return(WindowsWrapper.tdRemoveDevice(intDeviceId));
     }
     else
     {
         return(UnixWrapper.tdRemoveDevice(intDeviceId));
     }
 }
Esempio n. 15
0
 public static bool tdSetName(int intDeviceId, IntPtr chNewName)
 {
     if (isWindows)
     {
         return(WindowsWrapper.tdSetName(intDeviceId, chNewName));
     }
     else
     {
         return(UnixWrapper.tdSetName(intDeviceId, chNewName));
     }
 }
Esempio n. 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));
     }
 }
Esempio n. 17
0
 public static bool tdSetProtocol(int intDeviceId, IntPtr strProtocol)
 {
     if (isWindows)
     {
         return(WindowsWrapper.tdSetProtocol(intDeviceId, strProtocol));
     }
     else
     {
         return(UnixWrapper.tdSetProtocol(intDeviceId, strProtocol));
     }
 }
Esempio n. 18
0
 public static int tdRegisterDeviceChangeEvent(TDDeviceChangeEvent eventFunction, IntPtr context)
 {
     if (isWindows)
     {
         return(WindowsWrapper.tdRegisterDeviceChangeEvent(eventFunction, context));
     }
     else
     {
         return(UnixWrapper.tdRegisterDeviceChangeEvent(eventFunction, context));
     }
 }
Esempio n. 19
0
 public static IntPtr tdGetModel(int intDeviceId)
 {
     if (isWindows)
     {
         return(WindowsWrapper.tdGetModel(intDeviceId));
     }
     else
     {
         return(UnixWrapper.tdGetModel(intDeviceId));
     }
 }
Esempio n. 20
0
 public static void tdClose()
 {
     if (isWindows)
     {
         WindowsWrapper.tdClose();
     }
     else
     {
         UnixWrapper.tdClose();
     }
 }
Esempio n. 21
0
 public static void tdReleaseString(IntPtr thestring)
 {
     if (isWindows)
     {
         WindowsWrapper.tdReleaseString(thestring);
     }
     else
     {
         UnixWrapper.tdReleaseString(thestring);
     }
 }