Ejemplo n.º 1
0
        //protected override T ReadReply<T>(byte expected_command)
        //{
        //    try {
        //        byte[] response = ReceiveFrame();
        //        byte command;
        //        T payload;
        //        HexProtocol.ParsePacket<T>(response, out command, out payload);

        //        if (command != expected_command)
        //            throw new HLDCProtocolException("Unexpected or invalid reply received");

        //        return payload;
        //    }
        //    catch (Exception ex)
        //    {
        //        Disconnect();
        //        throw new ControllerConnectionException("Connection to controller lost", innerException: ex);
        //    }
        //}

        #endregion

        /// <summary>
        /// Parameterless constructor, use default settings
        /// </summary>
        public HexControllerHID()
        {
            Settings = new HexControllerHIDSettings();
            Initialize();
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Parameterless constructor, use default settings
 /// </summary>
 public HexControllerHID()
 {
     Settings = new HexControllerHIDSettings();
     Initialize();
 }