|
using System.Diagnostics;
using System.Runtime.InteropServices;
using Helper;
namespace Scsi.Multimedia
{
[StructLayout(LayoutKind.Sequential, Pack = 1)]
public class GetEventStatusNotificationCommand : FixedLengthScsiCommand
{
public GetEventStatusNotificationCommand()
: base(ScsiCommandCode.GetEventStatusNotification) { this.Polled = true; }
public GetEventStatusNotificationCommand(NotificationClassFlags notificationClassRequest)
: this() { this.NotificationClassRequest = notificationClassRequest; }
public GetEventStatusNotificationCommand(NotificationClassFlags notificationClassRequest, bool polled)
: this(notificationClassRequest) { this.Polled = polled; }
[DebuggerBrowsable(DebuggerBrowsableState.Never)]
private byte byte1;
public bool Polled { get { return Bits.GetBit(this.byte1, 0); } set { this.byte1 = Bits.SetBit(this.byte1, 0, value); } }
[DebuggerBrowsable(DebuggerBrowsableState.Never)]
private byte byte2;
[DebuggerBrowsable(DebuggerBrowsableState.Never)]
private byte byte3;
[DebuggerBrowsable(DebuggerBrowsableState.Never)]
private NotificationClassFlags _NotificationClassRequest;
public NotificationClassFlags NotificationClassRequest { get { return this._NotificationClassRequest; } set { this._NotificationClassRequest = value; } }
[DebuggerBrowsable(DebuggerBrowsableState.Never)]
private byte byte5;
[DebuggerBrowsable(DebuggerBrowsableState.Never)]
private byte byte6;
[DebuggerBrowsable(DebuggerBrowsableState.Never)]
private ushort _AllocationLength;
/// <summary>Do not use this value unless you are responsible for calling the <see cref="IScsiPassThrough.ExecuteCommand"/> method directly.</summary>
public ushort AllocationLength { get { return Bits.BigEndian(this._AllocationLength); } set { this._AllocationLength = Bits.BigEndian(value); } }
[DebuggerBrowsable(DebuggerBrowsableState.Never)]
private CommandControl _Control;
public override CommandControl Control { get { return this._Control; } set { this._Control = value; } }
public override ScsiTimeoutGroup TimeoutGroup { get { return ScsiTimeoutGroup.None; } }
}
}
|
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.