using System; using System.Collections.Generic; using System.Text; namespace DirectUSB.Parameters { public class Parameter { #region Declarations private short _type; private bool _valid; private byte[] _data; public enum ParameterType { ProductNumber = 0x0001, ProductName = 0x0002, CalculatorID = 0x0003, HardwareVersion = 0x0004, LanguageId = 0x0006, SubLanguageId = 0x0007, DeviceType = 0x0008, BootVersion = 0x0009, OSLoaded = 0x000A, OSVersion = 0x000B, RAMPresent = 0x000C, RAMAvailable = 0x000D, RAMFree = 0x000E, FlashROMPresent = 0x000F, FlashROMAvailable = 0x0010, FlashROMFree = 0x0011, ApplicationPagesAvailable = 0x0012, ApplicationPagesFree = 0x0013, LCDWidth = 0x001E, LCDHeight = 0x001F, LCDContents = 0x0022, ClockOn = 0x0024, Time = 0x0025, DateFormat = 0x0027, HourMode = 0x0028, BatteriesGood = 0x002D, FullCalculatorID = 0x0036, AtHomescreen = 0x0037, ScreenSplit = 0x0039 }; #endregion #region Constructors / Teardown public Parameter(short type, bool valid, byte[] data) { _type = type; _valid = valid; _data = data; } #endregion #region Public Properties public byte[] Data { get { return _data; } } #endregion } }