private bool SendFrameToDevice(WindowFrame frame)
        {
            bool result = false;

            try
            {
                const byte requestType =
                    (byte)UsbEndpointDirection.EndpointOut
                    | (byte)UsbRequestRecipient.RecipDevice
                    | (byte)UsbRequestType.TypeVendor;

                var controlPacket = new UsbSetupPacket(requestType, (byte)Command.SetFrameData, 0, 0, 8);
                int transferred;
                result = MyUsbDevice.ControlTransfer(ref controlPacket, frame.ToByteArray(), 8, out transferred);
                if (!result)
                {
                    Log("Frame Data Transfer failure.");
                }

            }
            catch (Exception exception)
            {
                Log("");
                Log("An error occurred during control transmission:");
                Log(exception.Message);
            }
            return result;
        }