Ejemplo n.º 1
0
        public static ChillerFeedback CMD_GET_FEEDBACK()
        {
            var cmdBuffer = new byte[64];

            cmdBuffer[0] = 0;

            var response = UsbDriver.CMD(cmdBuffer);

            return(new ChillerFeedback(response));
        }
Ejemplo n.º 2
0
        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);
        }
Ejemplo n.º 3
0
        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());
        }