You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
uint32_tsignature ; ///< Signature that helps identify this data packet as a CSW. The signature field shall contain the value 53425355h (little endian), indicating CSW.
99
99
uint32_ttag ; ///< The device shall set this field to the value received in the dCBWTag of the associated CBW.
100
-
uint32_tdata_residue ; ///< For Data-Out the device shall report in the dCSWDataResiduethe difference between the amount of data expected as stated in the dCBWDataTransferLength, and the actual amount of data processed by the device. For Data-In the device shall report in the dCSWDataResiduethe difference between the amount of data expected as stated in the dCBWDataTransferLengthand the actual amount of relevant data sent by the device
100
+
uint32_tdata_residue ; ///< For Data-Out the device shall report in the dCSWDataResidue the difference between the amount of data expected as stated in the dCBWDataTransferLength, and the actual amount of data processed by the device. For Data-In the device shall report in the dCSWDataResiduethe difference between the amount of data expected as stated in the dCBWDataTransferLengthand the actual amount of relevant data sent by the device
101
101
uint8_tstatus ; ///< indicates the success or failure of the command. Values from \ref msc_csw_status_t
102
102
}msc_csw_t;
103
103
@@ -120,14 +120,14 @@ typedef enum
120
120
SCSI_CMD_REQUEST_SENSE=0x03, ///< The SCSI Request Sense command is part of the SCSI computer protocol standard. This command is used to obtain sense data -- status/error information -- from a target device.
121
121
SCSI_CMD_READ_FORMAT_CAPACITY=0x23, ///< The command allows the Host to request a list of the possible format capacities for an installed writable media. This command also has the capability to report the writable capacity for a media when it is installed
122
122
SCSI_CMD_READ_10=0x28, ///< The READ (10) command requests that the device server read the specified logical block(s) and transfer them to the data-in buffer.
123
-
SCSI_CMD_WRITE_10=0x2A, ///< The WRITE (10) command requests thatthe device server transfer the specified logical block(s) from the data-out buffer and write them.
123
+
SCSI_CMD_WRITE_10=0x2A, ///< The WRITE (10) command requests that the device server transfer the specified logical block(s) from the data-out buffer and write them.
124
124
}scsi_cmd_type_t;
125
125
126
126
/// SCSI Sense Key
127
127
typedefenum
128
128
{
129
129
SCSI_SENSE_NONE=0x00, ///< no specific Sense Key. This would be the case for a successful command
130
-
SCSI_SENSE_RECOVERED_ERROR=0x01, ///< ndicates the last command completed successfully with some recovery action performed by the disc drive.
130
+
SCSI_SENSE_RECOVERED_ERROR=0x01, ///< Indicates the last command completed successfully with some recovery action performed by the disc drive.
131
131
SCSI_SENSE_NOT_READY=0x02, ///< Indicates the logical unit addressed cannot be accessed.
132
132
SCSI_SENSE_MEDIUM_ERROR=0x03, ///< Indicates the command terminated with a non-recovered error condition.
133
133
SCSI_SENSE_HARDWARE_ERROR=0x04, ///< Indicates the disc drive detected a nonrecoverable hardware failure while performing the command or during a self test.
@@ -138,7 +138,7 @@ typedef enum
138
138
SCSI_SENSE_ABORTED_COMMAND=0x0b, ///< Indicates the disc drive aborted the command.
139
139
SCSI_SENSE_EQUAL=0x0c, ///< Indicates a SEARCH DATA command has satisfied an equal comparison.
140
140
SCSI_SENSE_VOLUME_OVERFLOW=0x0d, ///< Indicates a buffered peripheral device has reached the end of medium partition and data remains in the buffer that has not been written to the medium.
141
-
SCSI_SENSE_MISCOMPARE=0x0e///< ndicates that the source data did not match the data read from the medium.
141
+
SCSI_SENSE_MISCOMPARE=0x0e///< Indicates that the source data did not match the data read from the medium.
0 commit comments