Availability:
     Level 2    , 'y'
     Level 7    , 'y'
     Level A    , 'y'
     Level F    , 'y'

  Quick Help:
     Set DERP Retry State, y[Type],[PathState],[RetryStateCnt],[LoopCnt1],[LoopCnt2]

  Description:
    This command allows the user to specify the DERP Retry State that will be used by the
    Read/Write firmware subsystem's Error Recovery system during subsequent diagnostic
    commands that access the disc.  (This command is only available on drives that support
    DERP!  To know whether your drive supports DERP, issue the Online "^L" command to see a
    list of features supported by the drive.)

  Input Parameters:

    
    IMPORTANT: Either all parameters must be entered or no parameters must be entered.  If
    all parameters are specified, then the Selected DERP Retry State will be enabled and the
    state values will be set to the specified values.  If no parameters are specified, then
    the Selected DERP Retry State will be disabled.  Entering parameters any other way will
    cause the command to fail.
    
    0 - DERP Error Type.
    
        This parameter specifies the type of error that the DERP Error Recovery system will
        assume for subsequent diagnostic operations.  Valid values for this parameter are
        given below:

        0 = UNDETERMINED
        1 = DATA_ERROR
        2 = SYNC
        3 = TA
        4 = DATAORTA
        5 = SYNCTA
        6 = SYNCORDATA
    
          Type:    Unsigned 8-bit value
    
          Range:   0 to Maximum DERP Error Type
    
          Default: None
    
    1 - DERP Path State
    
        This parameter specifies the path count from the current retry sequence that the DERP
        Error Recovery system will assume for subsequent diagnostic operations.  The meaning
        of the Path State is dependent on the Error Type (parameter 0).
    
          Type:    Unsigned 8-bit value
    
          Range:   0 to 0xFF
    
          Default: None
    
    2 - DERP Retry State Count.
    
        This parameter specifies the retry path count from the current retry sequence that
        the DERP Error Recovery system will assume for subsequent diagnostic operations.
    
          Type:    Unsigned 8-bit value
    
          Range:   0 to 0xFF
    
          Default: None
    
    3 - DERP Retry Loop Count 1.
    
        This parameter specifies the first loop counter that the DERP Error Recovery system
        will assume for subsequent diagnostic operations.
    
          Type:    Unsigned 8-bit value
    
          Range:   0 to 0xFF
    
          Default: None
    
    4 - DERP Retry Loop Count 2.
    
        This parameter specifies the second loop counter that the DERP Error Recovery system
        will assume for subsequent diagnostic operations.
    
          Type:    Unsigned 8-bit value
    
          Range:   0 to 0xFF
    
          Default: None
    
  Output Data:


    If an error occurred, the following information will be displayed.
    
          "DiagError aaaaaaaa"
    
       where
    
          aaaaaaaa is the Diagnostic Error Code
    
    If no error occurred, the current Error Recovery configuration will be displayed
    as follows.
    
          "Selected DERP Retry State XXXXXXXX"
    
       where XXXXXXXX is either "Enabled" or "Disabled"
    
    If the Selected DERP Retry State is Enabled, then the following will also be displayed.
    
          "P0: Error Type:        aa"
          "P1: Path State:        bb"
          "P2: State Count:       cc"
          "P3: Loop Counter 1:    dd"
          "P4: Loop Counter 2:    ee"
    
       where
    
          aa is the type of error.
    
          bb is the path count from the current retry sequence.
    
          cc is the retry path count from the current retry sequence.
    
          dd is the first loop counter.
    
          ee is the second loop counter.
    
  Revision History:

    0001.0000   Initial revision.
    0011.0000   Combined the PSG Diagnostic Error Codes (PSGDEC) and the Diagnostic External
                Test Service Error Codes (DETSEC) into a single set of Diagnostic Error Codes
                (DiagError).