public static void Init()
        {
            USBHID.GetSerialNum(out serial_number);             // get serial number

            USBHID.GetTRXSN(out trx_serial);
            USBHID.GetTRXRev(out trx_rev);

            USBHID.GetPASN(out pa_serial);
            USBHID.GetPARev(out pa_rev);


            byte[] data;             // get last cal date/time
            USBHID.ReadEEPROM(0x1820, 8, out data);
            if (data != null)
            {
                last_cal_date_time = BitConverter.ToInt64(data, 0);
            }

            /* USBHID.ReadTRXEEPROMByte(0x1BE, out temp);
             *          rx1_image_ver = temp;*/

            USBHID.GetRegion(out region); // check TURF in EEPROM
            if (region >= FRSRegion.LAST)
            {
                region = FRSRegion.US;                           // use US REGION if value is messed up
            }
        } // Init()
Beispiel #2
0
        public static void Init()
        {
            USBHID.GetSerialNum(out serial_number);             // get serial number

            USBHID.GetTRXSN(out trx_serial);
            USBHID.GetTRXRev(out trx_rev);

            USBHID.GetPASN(out pa_serial);
            USBHID.GetPARev(out pa_rev);

            byte[] data = new byte[8];             // get last cal date/time
            USBHID.ReadEEPROM(0x1820, 8, out data);
            last_cal_date_time = BitConverter.ToInt64(data, 0);

            /* USBHID.ReadTRXEEPROMByte(0x1BE, out temp);
             *          rx1_image_ver = temp;*/

            USBHID.GetRegion(out region);
        }