public enum SelfTestCode extends Enum<SelfTestCode>
A SendDiagnosticCdb.selfTest bit set to zero specifies that the device server shall perform the
diagnostic operation specified by the SendDiagnosticCdb.selfTestCode field.
The SelfTestCode field has a length of three bits.
SendDiagnosticCdb| Enum Constant and Description |
|---|
ABORT_BACKGROUND_SELF_TEST
The device server shall abort the current self-test running in background
mode.
|
ALL_ZEROS
This value shall be used when the
SendDiagnosticCdb.selfTest bit
is set to one, or when the SELFTEST bit is set to zero and the PF bit is
set to one. |
BACKGROUND_EXTENDED_SELF_TEST
The device server shall start its extended self-test (see 5.5.2) in the
background mode (see 5.5.3.3).
|
BACKGROUND_SHORT_SELF_TEST
The device server shall start its short self-test in the background mode.
|
FOREGROUND_EXTENDED_SELF_TEST
The device server shall start its extended self-test in the foreground
mode.
|
FOREGROUND_SELF_TEST
The device server shall start its short self-test (see 5.5.2) in the
foreground mode.
|
| Modifier and Type | Method and Description |
|---|---|
byte |
getValue() |
static SelfTestCode |
getValue(int value)
Returns the
SelfTestCode corresponding to the passed value. |
static SelfTestCode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SelfTestCode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SelfTestCode ALL_ZEROS
SendDiagnosticCdb.selfTest bit
is set to one, or when the SELFTEST bit is set to zero and the PF bit is
set to one.public static final SelfTestCode BACKGROUND_SHORT_SELF_TEST
SendDiagnosticCdb.parameterListLength field shall contain
zero.public static final SelfTestCode BACKGROUND_EXTENDED_SELF_TEST
SendDiagnosticCdb.parameterListLength field shall contain
zero.public static final SelfTestCode ABORT_BACKGROUND_SELF_TEST
SendDiagnosticCdb.parameterListLength field shall
contain zero. This value is only valid if a previous SEND DIAGNOSTIC
command specified a background self-test function and that self-test has
not completed. If either of these conditions is not met, the command
shall be terminated with CHECK CONDITION status, with the sense key set
to ILLEGAL REQUEST, and the additional sense code set to INVALID FIELD IN
CDB.public static final SelfTestCode FOREGROUND_SELF_TEST
SendDiagnosticCdb.parameterListLength field
shall contain zero.public static final SelfTestCode FOREGROUND_EXTENDED_SELF_TEST
SendDiagnosticCdb.parameterListLength field shall
contain zero.public static SelfTestCode[] values()
for (SelfTestCode c : SelfTestCode.values()) System.out.println(c);
public static SelfTestCode valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant
with the specified nameNullPointerException - if the argument is nullpublic byte getValue()
public static SelfTestCode getValue(int value)
SelfTestCode corresponding to the passed value.value - the value of a SELF-TEST CODE fieldSelfTestCode corresponding to the passed value or null if none existsCopyright © 2012 University of Konstanz, Distributed Systems Group. All Rights Reserved.