|
using System;
using System.ComponentModel;
using System.Diagnostics;
using System.Runtime.InteropServices;
using Helper;
namespace Scsi.Multimedia
{
/// <summary>This feature indicates that the drive provides the date and time of the creation of the current firmware revision loaded on the device. The date and time is the date and time of creation of the firmware version. The date and time is GMT. The date and time do not change for a given firmware revision. The date and time is later on “newer” firmware for a given device. This feature is persistent and current if present. No commands are required for this feature.</summary>
[Description("This feature indicates that the drive provides the date and time of the creation of the current firmware revision loaded on the device.\r\nThe date and time is the date and time of creation of the firmware version.\r\nThe date and time is GMT.\r\nThe date and time do not change for a given firmware revision.\r\nThe date and time is later on “newer” firmware for a given device.\r\nThis feature is persistent and current if present.\r\nNo commands are required for this feature.")]
[StructLayout(LayoutKind.Sequential, Pack = 1)]
public class FirmwareInformationFeature : MultimediaFeature
{
[DebuggerBrowsable(DebuggerBrowsableState.Never)]
private static readonly ScsiCommandCode[] __SupportedOperations = Sort(new ScsiCommandCode[] { });
public override FeatureSupportKind GetSupport(ScsiCommand command)
{
return Array.BinarySearch<ScsiCommandCode>(__SupportedOperations, command.OpCode) >= 0 ? FeatureSupportKind.Mandatory : FeatureSupportKind.None;
}
public FirmwareInformationFeature() : base(FeatureCode.FirmwareInformation) { }
[DebuggerBrowsable(DebuggerBrowsableState.Never)]
private ushort _Century;
public ushort Century { get { return Bits.BigEndian(this._Century); } set { this._Century = Bits.BigEndian(value); } }
[DebuggerBrowsable(DebuggerBrowsableState.Never)]
private ushort _Year;
public ushort Year { get { return Bits.BigEndian(this._Year); } set { this._Year = Bits.BigEndian(value); } }
[DebuggerBrowsable(DebuggerBrowsableState.Never)]
private ushort _Month;
public ushort Month { get { return Bits.BigEndian(this._Month); } set { this._Month = Bits.BigEndian(value); } }
[DebuggerBrowsable(DebuggerBrowsableState.Never)]
private ushort _Day;
public ushort Day { get { return Bits.BigEndian(this._Day); } set { this._Day = Bits.BigEndian(value); } }
[DebuggerBrowsable(DebuggerBrowsableState.Never)]
private ushort _Hour;
public ushort Hour { get { return Bits.BigEndian(this._Hour); } set { this._Hour = Bits.BigEndian(value); } }
[DebuggerBrowsable(DebuggerBrowsableState.Never)]
private ushort _Minute;
public ushort Minute { get { return Bits.BigEndian(this._Minute); } set { this._Minute = Bits.BigEndian(value); } }
[DebuggerBrowsable(DebuggerBrowsableState.Never)]
private ushort _Second;
public ushort Second { get { return Bits.BigEndian(this._Second); } set { this._Second = Bits.BigEndian(value); } }
[DebuggerBrowsable(DebuggerBrowsableState.Never)]
private byte byte18;
[DebuggerBrowsable(DebuggerBrowsableState.Never)]
private byte byte19;
}
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.