Пример #1
0
        protected override bool _Start()
        {
            USBIFSTATUS sTATUS = USBIF.SendCommand(0x07, new uint[] { 0u, (uint)RX_BUF_SIZE, 0 }, 3);

            if (sTATUS != USBIFSTATUS.E_OK)
            {
                throw new IOException(sTATUS.ToString());
            }
            if (!USBIF.Reset())
            {
                throw new IOException("can't reset device");
            }

            var result = btc_SetStartDMA();

            return(true);
        }