public static SenseDataParameter GetNoSenseSenseData() { SenseDataParameter senseData = new SenseDataParameter(); senseData.Valid = true; senseData.ResponseCode = 0x70; // current errors senseData.SenseKey = 0x00; // NO SENSE senseData.AdditionalSenseCode = 0x00; // No Additional Sense Information return(senseData); }
public static SenseDataParameter GetIllegalRequestSenseData(byte additionalSenseCode, byte additionalSenseCodeQualifier) { SenseDataParameter senseData = new SenseDataParameter(); senseData.Valid = true; senseData.ResponseCode = 0x70; // current errors senseData.SenseKey = 0x05; // ILLEGAL REQUEST senseData.AdditionalSenseCode = additionalSenseCode; senseData.AdditionalSenseCodeQualifier = additionalSenseCodeQualifier; return(senseData); }
public static SenseDataParameter GetDataProtectSenseData() { SenseDataParameter senseData = new SenseDataParameter(); senseData.Valid = true; senseData.ResponseCode = 0x70; // current errors senseData.SenseKey = 0x07; // DATA PROTECT senseData.AdditionalSenseCode = 0x27; // Command not allowed senseData.AdditionalSenseCodeQualifier = 0x00; return(senseData); }
/// <summary> /// Reported when CRC error is encountered /// </summary> public static SenseDataParameter GetWriteFaultSenseData() { SenseDataParameter senseData = new SenseDataParameter(); senseData.Valid = true; senseData.ResponseCode = 0x70; // current errors senseData.SenseKey = 0x03; // MEDIUM ERROR senseData.AdditionalSenseCode = 0x03; // Peripheral Device Write Fault senseData.AdditionalSenseCodeQualifier = 0x00; return(senseData); }