|
using System.ComponentModel;
using System.Diagnostics;
using System.Runtime.InteropServices;
using Helper;
namespace Scsi
{
[StructLayout(LayoutKind.Sequential, Pack = 1)]
public class SynchronizeCache10Command : FixedLengthScsiCommand
{
public SynchronizeCache10Command() : base(ScsiCommandCode.SynchronizeCache10) { }
public SynchronizeCache10Command(bool immediate) : this() { this.Immediate = immediate; }
[DebuggerBrowsable(DebuggerBrowsableState.Never)]
private byte byte1;
public bool Immediate { get { return Bits.GetBit(this.byte1, 1); } set { this.byte1 = Bits.SetBit(this.byte1, 1, value); } }
/// <summary>Must be zero for CD/Dvd logical units.</summary>
public bool RelativeAddress { get { return Bits.GetBit(this.byte1, 0); } }
[DebuggerBrowsable(DebuggerBrowsableState.Never)]
private uint _LogicalBlockAddress;
/// <summary>Multimedia devices ignore this field.</summary>
[Description("Multimedia devices ignore this field.")]
public uint LogicalBlockAddress { get { return Bits.BigEndian(this._LogicalBlockAddress); } set { this._LogicalBlockAddress = Bits.BigEndian(value); } }
[DebuggerBrowsable(DebuggerBrowsableState.Never)]
private byte byte6;
[DebuggerBrowsable(DebuggerBrowsableState.Never)]
private ushort _BlockCount;
/// <summary>Multimedia devices ignore this field.</summary>
[Description("Multimedia devices ignore this field.")]
public ushort BlockCount { get { return Bits.BigEndian(this._BlockCount); } set { this._BlockCount = 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 this.Immediate ? ScsiTimeoutGroup.Group1 : ScsiTimeoutGroup.Group2; } }
}
}
|
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.