Added new SCSI_ASENSE_NOT_READY_TO_READY_CHANGE constant to the Mass Storage class...
authorDean Camera <dean@fourwalledcubicle.com>
Fri, 20 Aug 2010 11:03:25 +0000 (11:03 +0000)
committerDean Camera <dean@fourwalledcubicle.com>
Fri, 20 Aug 2010 11:03:25 +0000 (11:03 +0000)
Demos/Device/LowLevel/MassStorage/Lib/SCSI_Codes.h
Demos/Host/LowLevel/MassStorageHost/Lib/SCSI_Codes.h
LUFA/Drivers/USB/Class/Common/MassStorage.h
LUFA/ManPages/ChangeLog.txt

index 5b6b76a..a69aa56 100644 (file)
 
                #define SCSI_ASENSE_NO_ADDITIONAL_INFORMATION          0x00
                #define SCSI_ASENSE_LOGICAL_UNIT_NOT_READY             0x04
+               #define SCSI_ASENSE_INVALID_COMMAND                    0x20
+               #define SCSI_ASENSE_LOGICAL_BLOCK_ADDRESS_OUT_OF_RANGE 0x21
                #define SCSI_ASENSE_INVALID_FIELD_IN_CDB               0x24
                #define SCSI_ASENSE_WRITE_PROTECTED                    0x27
+               #define SCSI_ASENSE_NOT_READY_TO_READY_CHANGE          0x28
                #define SCSI_ASENSE_FORMAT_ERROR                       0x31
-               #define SCSI_ASENSE_INVALID_COMMAND                    0x20
-               #define SCSI_ASENSE_LOGICAL_BLOCK_ADDRESS_OUT_OF_RANGE 0x21
                #define SCSI_ASENSE_MEDIUM_NOT_PRESENT                 0x3A
 
                #define SCSI_ASENSEQ_NO_QUALIFIER                      0x00
index 5b6b76a..a69aa56 100644 (file)
 
                #define SCSI_ASENSE_NO_ADDITIONAL_INFORMATION          0x00
                #define SCSI_ASENSE_LOGICAL_UNIT_NOT_READY             0x04
+               #define SCSI_ASENSE_INVALID_COMMAND                    0x20
+               #define SCSI_ASENSE_LOGICAL_BLOCK_ADDRESS_OUT_OF_RANGE 0x21
                #define SCSI_ASENSE_INVALID_FIELD_IN_CDB               0x24
                #define SCSI_ASENSE_WRITE_PROTECTED                    0x27
+               #define SCSI_ASENSE_NOT_READY_TO_READY_CHANGE          0x28
                #define SCSI_ASENSE_FORMAT_ERROR                       0x31
-               #define SCSI_ASENSE_INVALID_COMMAND                    0x20
-               #define SCSI_ASENSE_LOGICAL_BLOCK_ADDRESS_OUT_OF_RANGE 0x21
                #define SCSI_ASENSE_MEDIUM_NOT_PRESENT                 0x3A
 
                #define SCSI_ASENSEQ_NO_QUALIFIER                      0x00
index dd2da2f..9a391ee 100644 (file)
                /** SCSI Additional Sense Code to indicate an invalid field was encountered while processing the issued command. */
                #define SCSI_ASENSE_INVALID_FIELD_IN_CDB               0x24
 
+               /** SCSI Additional Sense Code to indicate that a medium that was previously indicated as not ready has now
+                *  become ready for use.
+                */
+               #define SCSI_ASENSE_NOT_READY_TO_READY_CHANGE          0x28
+
                /** SCSI Additional Sense Code to indicate that an attempt to write to a protected area was made. */
                #define SCSI_ASENSE_WRITE_PROTECTED                    0x27
 
index 45e894d..9ac8cad 100644 (file)
@@ -7,6 +7,10 @@
  /** \page Page_ChangeLog Project Changelog
   *
   *  \section Sec_ChangeLogXXXXXX Version XXXXXX
+  *  <b>New:</b>
+  *  - Added new SCSI_ASENSE_NOT_READY_TO_READY_CHANGE constant to the Mass Storage class driver, to indicate when a previously
+  *    not ready removable medium has now become ready for the host's use (thanks to Martin Degelsegger)
+  *
   *  <b>Changed:</b>
   *  - Removed complicated logic for the Endpoint_ConfigureEndpoint() function to use inlined or function called versions
   *    depending of if the given bank size is a compile time constant, as the compiler does a better job of optimizing