scsi_peripheral_types.h
Overview
Provides the enum variables, structures, and macros used in the SCSI Peripheral DDK APIs.
File to include: <scsi_peripheral/scsi_peripheral_types.h>
Library: libscsi.z.so
System capability: SystemCapability.Driver.SCSI.Extension
Since: 18
Related module: ScsiPeripheralDDK
Summary
Structs
| Name | typedef Keyword | Description |
|---|---|---|
| ScsiPeripheral_DeviceMemMap | ScsiPeripheral_DeviceMemMap | Represents the device memory mapping created by calling OH_ScsiPeripheral_CreateDeviceMemMap. The buffer that uses the device memory mapping can provide better performance. |
| ScsiPeripheral_IORequest | ScsiPeripheral_IORequest | Defines the read/write operation request. |
| ScsiPeripheral_Request | ScsiPeripheral_Request | Defines the request structure. |
| ScsiPeripheral_Response | ScsiPeripheral_Response | Defines the response structure. |
| ScsiPeripheral_TestUnitReadyRequest | ScsiPeripheral_TestUnitReadyRequest | Defines the request structure of the test unit ready command. |
| ScsiPeripheral_InquiryRequest | ScsiPeripheral_InquiryRequest | Defines the request structure of the inquiry command. |
| ScsiPeripheral_InquiryInfo | ScsiPeripheral_InquiryInfo | Defines the SCSI inquiry data. |
| ScsiPeripheral_ReadCapacityRequest | ScsiPeripheral_ReadCapacityRequest | Defines the request structure of the read capacity command. |
| ScsiPeripheral_CapacityInfo | ScsiPeripheral_CapacityInfo | SCSI read capacity. |
| ScsiPeripheral_RequestSenseRequest | ScsiPeripheral_RequestSenseRequest | Defines the request structure of the Request Sense command. |
| ScsiPeripheral_BasicSenseInfo | ScsiPeripheral_BasicSenseInfo | Defines the basic information about the sense data. |
| ScsiPeripheral_VerifyRequest | ScsiPeripheral_VerifyRequest | Defines the request structure of the verify command. |
| ScsiPeripheral_Device | ScsiPeripheral_Device | Defines the opaque SCSI device structure. |
Enums
| Name | typedef Keyword | Description |
|---|---|---|
| ScsiPeripheral_DdkErrCode | ScsiPeripheral_DdkErrCode | Enumerates the SCSI Peripheral DDK error codes. |
| ScsiPeripheral_Status | ScsiPeripheral_Status | Enumerates the SCSI status codes used for the response. |
Enum Description
ScsiPeripheral_DdkErrCode
enum ScsiPeripheral_DdkErrCode
Description
Enumerates the SCSI Peripheral DDK error codes.
Since: 18
| Enum | Description |
|---|---|
| SCSIPERIPHERAL_DDK_NO_PERM = 201 | Permission denied. |
| SCSIPERIPHERAL_DDK_INVALID_PARAMETER = 401 | Invalid parameter. |
| SCSIPERIPHERAL_DDK_SUCCESS = 31700000 | Operation success. |
| SCSIPERIPHERAL_DDK_MEMORY_ERROR = 31700001 | Memory-related errors, such as insufficient memory, memory data replication failure, or memory request failure. |
| SCSIPERIPHERAL_DDK_INVALID_OPERATION = 31700002 | Invalid operation. |
| SCSIPERIPHERAL_DDK_IO_ERROR = 31700003 | Device input/output operation failed. |
| SCSIPERIPHERAL_DDK_TIMEOUT = 31700004 | Transfer timeout. |
| SCSIPERIPHERAL_DDK_INIT_ERROR = 31700005 | DDK initialization error, or DDK uninitialized. |
| SCSIPERIPHERAL_DDK_SERVICE_ERROR = 31700006 | Communication with the SCSI Peripheral DDK failed. |
| SCSIPERIPHERAL_DDK_DEVICE_NOT_FOUND = 31700007 | Device not found. |
ScsiPeripheral_Status
enum ScsiPeripheral_Status
Description
Enumerates the SCSI status codes used for the response.
Since: 18
| Enum | Description |
|---|---|
| SCSIPERIPHERAL_STATUS_GOOD = 0x00 | Normal state. |
| SCSIPERIPHERAL_STATUS_CHECK_CONDITION_NEEDED = 0x02 | Status check required. |
| SCSIPERIPHERAL_STATUS_CONDITION_MET = 0x04 | Conditions met. |
| SCSIPERIPHERAL_STATUS_BUSY = 0x08 | Occupying. |
| SCSIPERIPHERAL_STATUS_RESERVATION_CONFLICT = 0x18 | Resource reservation conflict. |
| SCSIPERIPHERAL_STATUS_TASK_SET_FULL = 0x28 | Task set already full. |
| SCSIPERIPHERAL_STATUS_ACA_ACTIVE = 0x30 | ACA activity status. |
| SCSIPERIPHERAL_STATUS_TASK_ABORTED = 0x40 | Task aborted. |
SCSIPERIPHERAL_MIN_DESCRIPTOR_FORMAT_SENSE
SCSIPERIPHERAL_MIN_DESCRIPTOR_FORMAT_SENSE 8
Description
Defines the minimum length of the sensing data in the descriptor format.
Since: 18
SCSIPERIPHERAL_MIN_FIXED_FORMAT_SENSE
SCSIPERIPHERAL_MIN_FIXED_FORMAT_SENSE 18
Description
Defines the minimum length of the sensing data in the fixed format.
Since: 18
SCSIPERIPHERAL_MAX_CMD_DESC_BLOCK_LEN
SCSIPERIPHERAL_MAX_CMD_DESC_BLOCK_LEN 16
Description
Maximum length of a command description block.
Since: 18
SCSIPERIPHERAL_MAX_SENSE_DATA_LEN
SCSIPERIPHERAL_MAX_SENSE_DATA_LEN 252
Description
Defines the maximum length of the sensing data.
Since: 18
SCSIPERIPHERAL_VENDOR_ID_LEN
SCSIPERIPHERAL_VENDOR_ID_LEN 8
Description
Defines the length of a vendor ID.
Since: 18
SCSIPERIPHERAL_PRODUCT_ID_LEN
SCSIPERIPHERAL_PRODUCT_ID_LEN 16
Description
Defines the length of a product ID.
Since: 18
SCSIPERIPHERAL_PRODUCT_REV_LEN
SCSIPERIPHERAL_PRODUCT_REV_LEN 4
Description
Defines the length of a product revision version.
Since: 18
你可能感兴趣的鸿蒙文章
openharmony 鸿蒙 capi-scsiperipheralddk-scsiperipheral-request
openharmony 鸿蒙 capi-usbddk-usbconfigdescriptor
openharmony 鸿蒙 capi-hidddk-hid-absaxesarray
openharmony 鸿蒙 capi-scsiperipheralddk-scsiperipheral-response
openharmony 鸿蒙 capi-scsi-peripheral-api-h
openharmony 鸿蒙 capi-hidddk-hid-relaxesarray