public static ChillerFeedback CMD_GET_FEEDBACK() { var cmdBuffer = new byte[64]; cmdBuffer[0] = 0; var response = UsbDriver.CMD(cmdBuffer); return(new ChillerFeedback(response)); }
public static void CMD_SET_SETPOINT(double setpoint) { UInt16 payload = (UInt16)(setpoint * 100); var cmdBuffer = new byte[64]; cmdBuffer[0] = 2; cmdBuffer[1] = (byte)(payload >> 8); cmdBuffer[2] = (byte)(payload & 0xff); UsbDriver.CMD(cmdBuffer); }
public static string CMD_GET_VERSION() { var cmdBuffer = new byte[64]; cmdBuffer[0] = 6; var response = UsbDriver.CMD(cmdBuffer); var version = new ControllerVersion(response); return(version.ToString()); }