public DeviceData()
 {
     this.m_ObjDeviceInfo = new DeviceSettingsInfo();
     //this.m_ObjSubjectInfo = new SubjectInfo();
     //this.m_ObjTrialInfo = new TrialInfo();
     this.m_ObjRecordedData     = new RecordedData();
     this.m_ObjCalibInfo        = new CalibrationInformation();
     this.m_ObjDeviceStatusInfo = new DeviceStatusInfo();
 }
Example #2
0
        public eReturn ParseAndPackMemoryInfo(byte[] buffer, DeviceStatusInfo statusInfo)
        {
            eReturn eReturn;

            if (buffer.Length != 3)
            {
                eReturn = eReturn.BUFFER_LENGTH_NOT_PROPER;
            }
            else
            {
                byte[] numArray = new byte[4]
                {
                    buffer[2],
                    buffer[1],
                    buffer[0],
                    (byte)0
                };
                statusInfo.NoPagesAvailable = BitConverter.ToUInt32(numArray, 0);
                eReturn = eReturn.SUCCESS;
            }
            return(eReturn);
        }