Esempio n. 1
0
        GetFeatureReport2(byte[] status, CyHidDevice whichDev)
        {
            bool s;

            if (whichDev != null)
            {
                s = whichDev.GetFeature(0);

                if (s)
                {
                    for (int i = 0; i < 8; ++i)
                    {
                        status[i] = whichDev.Features.DataBuf[i + 1];
                    }
                }
            }
            else
            {
                Output.Text += "No USB device\r\n";
            }
        }