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()); } }
public static int tdGetDeviceId(int deviceIndex) { if (isWindows) { return(WindowsWrapper.tdGetDeviceId(deviceIndex)); } else { return(UnixWrapper.tdGetDeviceId(deviceIndex)); } }
public static int tdLastSentCommand(int intDeviceId, int methodsSupported) { if (isWindows) { return(WindowsWrapper.tdLastSentCommand(intDeviceId, methodsSupported)); } else { return(UnixWrapper.tdLastSentCommand(intDeviceId, methodsSupported)); } }
public static int tdMethods(int id, int methodsSupported) { if (isWindows) { return(WindowsWrapper.tdMethods(id, methodsSupported)); } else { return(UnixWrapper.tdMethods(id, methodsSupported)); } }
public static int tdLearn(int intDeviceId) { if (isWindows) { return(WindowsWrapper.tdLearn(intDeviceId)); } else { return(UnixWrapper.tdLearn(intDeviceId)); } }
public static bool tdRemoveDevice(int intDeviceId) { if (isWindows) { return(WindowsWrapper.tdRemoveDevice(intDeviceId)); } else { return(UnixWrapper.tdRemoveDevice(intDeviceId)); } }
public static bool tdSetName(int intDeviceId, IntPtr chNewName) { if (isWindows) { return(WindowsWrapper.tdSetName(intDeviceId, chNewName)); } else { return(UnixWrapper.tdSetName(intDeviceId, chNewName)); } }
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)); } }
public static bool tdSetProtocol(int intDeviceId, IntPtr strProtocol) { if (isWindows) { return(WindowsWrapper.tdSetProtocol(intDeviceId, strProtocol)); } else { return(UnixWrapper.tdSetProtocol(intDeviceId, strProtocol)); } }
public static int tdRegisterDeviceChangeEvent(TDDeviceChangeEvent eventFunction, IntPtr context) { if (isWindows) { return(WindowsWrapper.tdRegisterDeviceChangeEvent(eventFunction, context)); } else { return(UnixWrapper.tdRegisterDeviceChangeEvent(eventFunction, context)); } }
public static IntPtr tdGetModel(int intDeviceId) { if (isWindows) { return(WindowsWrapper.tdGetModel(intDeviceId)); } else { return(UnixWrapper.tdGetModel(intDeviceId)); } }
public static void tdClose() { if (isWindows) { WindowsWrapper.tdClose(); } else { UnixWrapper.tdClose(); } }
public static void tdReleaseString(IntPtr thestring) { if (isWindows) { WindowsWrapper.tdReleaseString(thestring); } else { UnixWrapper.tdReleaseString(thestring); } }