SBC.h
Default mainpageat91libusbdevicemassstorageSBC.h
Description Overview
Classes Brief description
 SBCCommand Generic structure for holding information about SBC commands.
 SBCReadCapacity10 Structure for the READ CAPACITY (10) command.
 SBCReadCapacity10Data Data returned by the device after a READ CAPACITY (10) command.
 SBCRequestSense Structure for the REQUEST SENSE command.
 SBCRequestSenseData Fixed format sense data returned after a REQUEST SENSE command has been received with a DESC bit cleared.
 SBCWrite10 Structure for the WRITE (10) command.
Macros  
 DWORDB Converts a byte array to a dword value using the big endian format.
 STORE_DWORDB Stores a dword value in a byte array, in big endian format.
 STORE_WORDB Stores a word value in a byte array, in big endian format.
Defines  
 SBC_INQUIRY Request information regarding parameters of the target and Logical Unit.
 SBC_MEDIUM_TYPE_DIRECT_ACCESS_BLOCK_DEVICE MEDIUM TYPE field value for direct-access block devices.
 SBC_MODE_SENSE_6 Report parameters.
 SBC_MRIE_NO_REPORTING MRIE field values.
 SBC_PAGE_READ_WRITE_ERROR_RECOVERY Supported mode pages.
 SBC_PREVENT_ALLOW_MEDIUM_REMOVAL Request that the target enable or disable the removal of the medium in the Logical Unit.
 SBC_READ_10 Request the transfer data to the host.
 SBC_READ_CAPACITY_10 Request capacities of the currently installed medium.
 SBC_REQUEST_SENSE Request that the device server transfer sense data.
 SBC_SENSE_KEY_ABORTED_COMMAND Device aborted the command.
 SBC_SENSE_KEY_BLANK_CHECK Indicates that a write-once device or a sequential-access device encountered blank medium or format-defined end-of-data indication while reading or a write-once device encountered a non-blank medium while writing.
 SBC_SENSE_KEY_COPY_ABORTED EXTENDED COPY command was aborted.
 SBC_SENSE_KEY_DATA_PROTECT Write on a block that is protected.
 SBC_SENSE_KEY_HARDWARE_ERROR Hardware failure while performing the command or during a self test.
 SBC_SENSE_KEY_ILLEGAL_REQUEST Illegal parameter found in the command or additional parameters.
 SBC_SENSE_KEY_MEDIUM_ERROR Command terminated with a error condition that was probably caused by a flaw in the medium or an error in the recorded data.
 SBC_SENSE_KEY_MISCOMPARE The source data did not match the data read from the medium.
 SBC_SENSE_KEY_NO_SENSE No specific sense key. Successful command.
 SBC_SENSE_KEY_NOT_READY The device can not be accessed.
 SBC_SENSE_KEY_RECOVERED_ERROR Command completed succesfully with some recovery action by the device.
 SBC_SENSE_KEY_UNIT_ATTENTION Removable medium may have been changed or the device has been reset.
 SBC_SENSE_KEY_VENDOR_SPECIFIC Reporting vendor specific conditions.
 SBC_SENSE_KEY_VOLUME_OVERFLOW A buffered peripheral device is overflow.
 SBC_SPC_VERSION_4 Version value for the SBC-3 specification.
 SBC_TEST_UNIT_READY Check if the LUN is ready.
 SBC_TPGS_NONE Values for the TPGS field returned in INQUIRY data.
 SBC_VERIFY_10 Request that the device verify the data on the medium.
 SBC_VERSION_DESCRIPTOR_SBC_3 Version descriptor value for the SBC-3 specification.
 SBC_WRITE_10 Request that the device write the data transferred by the host.