Beispiel #1
0
        static public bool INIT()
        {
            int cnt;

            if (HID_ENUM(0x04D8, 0x003F, out cnt) != 0)
            {
                if (cnt <= 0)
                {
                    //G.mlog("CAN NOT DETECT USB HID DEVICE");
                    G.mlog("#s顕微鏡装置に接続できません.");
                    return(false);
                }
#if true
                if ((G.AS.DEBUG_MODE & 1) != 0)
                {
                    if (DBGMODE.HID_OPEN(0x04D8, 0x003F, 0) == 0)
                    {
                        return(false);
                    }
                    m_access = true;
                    return(true);
                }
#endif
                if (HID_OPEN(0x04D8, 0x003F, 0) == 0)
                {
                    G.mlog("ERROR @ HID_OPEN");
                    return(false);
                }
            }
            m_access = true;
            return(true);
        }