SCSICommandDefinitions.h Reference

Declared in
SCSICommandDefinitions.h

Overview

This file contains all the definitions for types and constants that are used by the command set classes for building CDBs. The field type definitions are used for the parameters passed to a method that builds and sends any SCSI defined command to clearly identify the type of value expected for a parameter.

The command methods will then use the appropriate mask to verify that the value passed into a parameter is of the specified type.

Currently only types and masks are defined for 8 bytes and smaller fields. If a command is defined that uses a larger field, these should be expanded to include those sizes.

Included Headers

  • <IOKit/IOTypes.h>

  • <CoreFoundation/CoreFoundation.h>

Data Types

See the Overview section above for header-level documentation.

SCSICmdField10Bit

typedef UInt16 SCSICmdField10Bit;
Availability
  • Available in OS X v10.0 and later.
Declared In
SCSICommandDefinitions.h

SCSICmdField11Bit

typedef UInt16 SCSICmdField11Bit;
Availability
  • Available in OS X v10.0 and later.
Declared In
SCSICommandDefinitions.h

SCSICmdField12Bit

typedef UInt16 SCSICmdField12Bit;
Availability
  • Available in OS X v10.0 and later.
Declared In
SCSICommandDefinitions.h

SCSICmdField13Bit

typedef UInt16 SCSICmdField13Bit;
Availability
  • Available in OS X v10.0 and later.
Declared In
SCSICommandDefinitions.h

SCSICmdField14Bit

typedef UInt16 SCSICmdField14Bit;
Availability
  • Available in OS X v10.0 and later.
Declared In
SCSICommandDefinitions.h

SCSICmdField15Bit

typedef UInt16 SCSICmdField15Bit;
Availability
  • Available in OS X v10.0 and later.
Declared In
SCSICommandDefinitions.h

SCSICmdField17Bit

typedef UInt32 SCSICmdField17Bit;
Availability
  • Available in OS X v10.0 and later.
Declared In
SCSICommandDefinitions.h

SCSICmdField18Bit

typedef UInt32 SCSICmdField18Bit;
Availability
  • Available in OS X v10.0 and later.
Declared In
SCSICommandDefinitions.h

SCSICmdField19Bit

typedef UInt32 SCSICmdField19Bit;
Availability
  • Available in OS X v10.0 and later.
Declared In
SCSICommandDefinitions.h

SCSICmdField1Bit

typedef UInt8 SCSICmdField1Bit;
Availability
  • Available in OS X v10.0 and later.
Declared In
SCSICommandDefinitions.h

SCSICmdField1Byte

typedef UInt8 SCSICmdField1Byte;
Availability
  • Available in OS X v10.0 and later.
Declared In
SCSICommandDefinitions.h

SCSICmdField20Bit

typedef UInt32 SCSICmdField20Bit;
Availability
  • Available in OS X v10.0 and later.
Declared In
SCSICommandDefinitions.h

SCSICmdField21Bit

typedef UInt32 SCSICmdField21Bit;
Availability
  • Available in OS X v10.0 and later.
Declared In
SCSICommandDefinitions.h

SCSICmdField22Bit

typedef UInt32 SCSICmdField22Bit;
Availability
  • Available in OS X v10.0 and later.
Declared In
SCSICommandDefinitions.h

SCSICmdField23Bit

typedef UInt32 SCSICmdField23Bit;
Availability
  • Available in OS X v10.0 and later.
Declared In
SCSICommandDefinitions.h

SCSICmdField25Bit

typedef UInt32 SCSICmdField25Bit;
Availability
  • Available in OS X v10.0 and later.
Declared In
SCSICommandDefinitions.h

SCSICmdField26Bit

typedef UInt32 SCSICmdField26Bit;
Availability
  • Available in OS X v10.0 and later.
Declared In
SCSICommandDefinitions.h

SCSICmdField27Bit

typedef UInt32 SCSICmdField27Bit;
Availability
  • Available in OS X v10.0 and later.
Declared In
SCSICommandDefinitions.h

SCSICmdField28Bit

typedef UInt32 SCSICmdField28Bit;
Availability
  • Available in OS X v10.0 and later.
Declared In
SCSICommandDefinitions.h

SCSICmdField29Bit

typedef UInt32 SCSICmdField29Bit;
Availability
  • Available in OS X v10.0 and later.
Declared In
SCSICommandDefinitions.h

SCSICmdField2Bit

typedef UInt8 SCSICmdField2Bit;
Availability
  • Available in OS X v10.0 and later.
Declared In
SCSICommandDefinitions.h

SCSICmdField2Byte

typedef UInt16 SCSICmdField2Byte;
Availability
  • Available in OS X v10.0 and later.
Declared In
SCSICommandDefinitions.h

SCSICmdField30Bit

typedef UInt32 SCSICmdField30Bit;
Availability
  • Available in OS X v10.0 and later.
Declared In
SCSICommandDefinitions.h

SCSICmdField31Bit

typedef UInt32 SCSICmdField31Bit;
Availability
  • Available in OS X v10.0 and later.
Declared In
SCSICommandDefinitions.h

SCSICmdField33Bit

typedef UInt64 SCSICmdField33Bit;
Availability
  • Available in OS X v10.3 and later.
Declared In
SCSICommandDefinitions.h

SCSICmdField34Bit

typedef UInt64 SCSICmdField34Bit;
Availability
  • Available in OS X v10.3 and later.
Declared In
SCSICommandDefinitions.h

SCSICmdField35Bit

typedef UInt64 SCSICmdField35Bit;
Availability
  • Available in OS X v10.3 and later.
Declared In
SCSICommandDefinitions.h

SCSICmdField36Bit

typedef UInt64 SCSICmdField36Bit;
Availability
  • Available in OS X v10.3 and later.
Declared In
SCSICommandDefinitions.h

SCSICmdField37Bit

typedef UInt64 SCSICmdField37Bit;
Availability
  • Available in OS X v10.3 and later.
Declared In
SCSICommandDefinitions.h

SCSICmdField38Bit

typedef UInt64 SCSICmdField38Bit;
Availability
  • Available in OS X v10.3 and later.
Declared In
SCSICommandDefinitions.h

SCSICmdField39Bit

typedef UInt64 SCSICmdField39Bit;
Availability
  • Available in OS X v10.3 and later.
Declared In
SCSICommandDefinitions.h

SCSICmdField3Bit

typedef UInt8 SCSICmdField3Bit;
Availability
  • Available in OS X v10.0 and later.
Declared In
SCSICommandDefinitions.h

SCSICmdField3Byte

typedef UInt32 SCSICmdField3Byte;
Availability
  • Available in OS X v10.0 and later.
Declared In
SCSICommandDefinitions.h

SCSICmdField41Bit

typedef UInt64 SCSICmdField41Bit;
Availability
  • Available in OS X v10.3 and later.
Declared In
SCSICommandDefinitions.h

SCSICmdField42Bit

typedef UInt64 SCSICmdField42Bit;
Availability
  • Available in OS X v10.3 and later.
Declared In
SCSICommandDefinitions.h

SCSICmdField43Bit

typedef UInt64 SCSICmdField43Bit;
Availability
  • Available in OS X v10.3 and later.
Declared In
SCSICommandDefinitions.h

SCSICmdField44Bit

typedef UInt64 SCSICmdField44Bit;
Availability
  • Available in OS X v10.3 and later.
Declared In
SCSICommandDefinitions.h

SCSICmdField45Bit

typedef UInt64 SCSICmdField45Bit;
Availability
  • Available in OS X v10.3 and later.
Declared In
SCSICommandDefinitions.h

SCSICmdField46Bit

typedef UInt64 SCSICmdField46Bit;
Availability
  • Available in OS X v10.3 and later.
Declared In
SCSICommandDefinitions.h

SCSICmdField47Bit

typedef UInt64 SCSICmdField47Bit;
Availability
  • Available in OS X v10.3 and later.
Declared In
SCSICommandDefinitions.h

SCSICmdField49Bit

typedef UInt64 SCSICmdField49Bit;
Availability
  • Available in OS X v10.3 and later.
Declared In
SCSICommandDefinitions.h

SCSICmdField4Bit

typedef UInt8 SCSICmdField4Bit;
Availability
  • Available in OS X v10.0 and later.
Declared In
SCSICommandDefinitions.h

SCSICmdField4Byte

typedef UInt32 SCSICmdField4Byte;
Availability
  • Available in OS X v10.0 and later.
Declared In
SCSICommandDefinitions.h

SCSICmdField50Bit

typedef UInt64 SCSICmdField50Bit;
Availability
  • Available in OS X v10.3 and later.
Declared In
SCSICommandDefinitions.h

SCSICmdField51Bit

typedef UInt64 SCSICmdField51Bit;
Availability
  • Available in OS X v10.3 and later.
Declared In
SCSICommandDefinitions.h

SCSICmdField52Bit

typedef UInt64 SCSICmdField52Bit;
Availability
  • Available in OS X v10.3 and later.
Declared In
SCSICommandDefinitions.h

SCSICmdField53Bit

typedef UInt64 SCSICmdField53Bit;
Availability
  • Available in OS X v10.3 and later.
Declared In
SCSICommandDefinitions.h

SCSICmdField54Bit

typedef UInt64 SCSICmdField54Bit;
Availability
  • Available in OS X v10.3 and later.
Declared In
SCSICommandDefinitions.h

SCSICmdField55Bit

typedef UInt64 SCSICmdField55Bit;
Availability
  • Available in OS X v10.3 and later.
Declared In
SCSICommandDefinitions.h

SCSICmdField57Bit

typedef UInt64 SCSICmdField57Bit;
Availability
  • Available in OS X v10.3 and later.
Declared In
SCSICommandDefinitions.h

SCSICmdField58Bit

typedef UInt64 SCSICmdField58Bit;
Availability
  • Available in OS X v10.3 and later.
Declared In
SCSICommandDefinitions.h

SCSICmdField59Bit

typedef UInt64 SCSICmdField59Bit;
Availability
  • Available in OS X v10.3 and later.
Declared In
SCSICommandDefinitions.h

SCSICmdField5Bit

typedef UInt8 SCSICmdField5Bit;
Availability
  • Available in OS X v10.0 and later.
Declared In
SCSICommandDefinitions.h

SCSICmdField5Byte

typedef UInt64 SCSICmdField5Byte;
Availability
  • Available in OS X v10.3 and later.
Declared In
SCSICommandDefinitions.h

SCSICmdField60Bit

typedef UInt64 SCSICmdField60Bit;
Availability
  • Available in OS X v10.3 and later.
Declared In
SCSICommandDefinitions.h

SCSICmdField61Bit

typedef UInt64 SCSICmdField61Bit;
Availability
  • Available in OS X v10.3 and later.
Declared In
SCSICommandDefinitions.h

SCSICmdField62Bit

typedef UInt64 SCSICmdField62Bit;
Availability
  • Available in OS X v10.3 and later.
Declared In
SCSICommandDefinitions.h

SCSICmdField63Bit

typedef UInt64 SCSICmdField63Bit;
Availability
  • Available in OS X v10.3 and later.
Declared In
SCSICommandDefinitions.h

SCSICmdField6Bit

typedef UInt8 SCSICmdField6Bit;
Availability
  • Available in OS X v10.0 and later.
Declared In
SCSICommandDefinitions.h

SCSICmdField6Byte

typedef UInt64 SCSICmdField6Byte;
Availability
  • Available in OS X v10.3 and later.
Declared In
SCSICommandDefinitions.h

SCSICmdField7Bit

typedef UInt8 SCSICmdField7Bit;
Availability
  • Available in OS X v10.0 and later.
Declared In
SCSICommandDefinitions.h

SCSICmdField7Byte

typedef UInt64 SCSICmdField7Byte;
Availability
  • Available in OS X v10.3 and later.
Declared In
SCSICommandDefinitions.h

SCSICmdField8Byte

typedef UInt64 SCSICmdField8Byte;
Availability
  • Available in OS X v10.3 and later.
Declared In
SCSICommandDefinitions.h

SCSICmdField9Bit

typedef UInt16 SCSICmdField9Bit;
Availability
  • Available in OS X v10.0 and later.
Declared In
SCSICommandDefinitions.h

Constants

See the Overview section above for header-level documentation.

Miscellaneous Defines

   
#define kSCSICmdFieldMask10Bit 0x03FF
#define kSCSICmdFieldMask11Bit 0x07FF
#define kSCSICmdFieldMask12Bit 0x0FFF
#define kSCSICmdFieldMask13Bit 0x1FFF
#define kSCSICmdFieldMask14Bit 0x3FFF
#define kSCSICmdFieldMask15Bit 0x7FFF
#define kSCSICmdFieldMask17Bit 0x01FFFF
#define kSCSICmdFieldMask18Bit 0x03FFFF
#define kSCSICmdFieldMask19Bit 0x07FFFF
#define kSCSICmdFieldMask1Bit 0x01
#define kSCSICmdFieldMask20Bit 0x0FFFFF
#define kSCSICmdFieldMask21Bit 0x1FFFFF
#define kSCSICmdFieldMask22Bit 0x3FFFFF
#define kSCSICmdFieldMask23Bit 0x7FFFFF
#define kSCSICmdFieldMask25Bit 0x01FFFFFFUL
#define kSCSICmdFieldMask26Bit 0x03FFFFFFUL
#define kSCSICmdFieldMask27Bit 0x07FFFFFFUL
#define kSCSICmdFieldMask28Bit 0x0FFFFFFFUL
#define kSCSICmdFieldMask29Bit 0x1FFFFFFFUL
#define kSCSICmdFieldMask2Bit 0x03
#define kSCSICmdFieldMask2Byte 0xFFFF
#define kSCSICmdFieldMask30Bit 0x3FFFFFFFUL
#define kSCSICmdFieldMask31Bit 0x7FFFFFFFUL
#define kSCSICmdFieldMask33Bit 0x01FFFFFFFFULL
#define kSCSICmdFieldMask34Bit 0x03FFFFFFFFULL
#define kSCSICmdFieldMask35Bit 0x07FFFFFFFFULL
#define kSCSICmdFieldMask36Bit 0x0FFFFFFFFFULL
#define kSCSICmdFieldMask37Bit 0x1FFFFFFFFFULL
#define kSCSICmdFieldMask38Bit 0x3FFFFFFFFFULL
#define kSCSICmdFieldMask39Bit 0x7FFFFFFFFFULL
#define kSCSICmdFieldMask3Bit 0x07
#define kSCSICmdFieldMask3Byte 0xFFFFFF
#define kSCSICmdFieldMask41Bit 0x01FFFFFFFFFFULL
#define kSCSICmdFieldMask42Bit 0x03FFFFFFFFFFULL
#define kSCSICmdFieldMask43Bit 0x07FFFFFFFFFFULL
#define kSCSICmdFieldMask44Bit 0x0FFFFFFFFFFFULL
#define kSCSICmdFieldMask45Bit 0x1FFFFFFFFFFFULL
#define kSCSICmdFieldMask46Bit 0x3FFFFFFFFFFFULL
#define kSCSICmdFieldMask47Bit 0x7FFFFFFFFFFFULL
#define kSCSICmdFieldMask49Bit 0x01FFFFFFFFFFFFULL
#define kSCSICmdFieldMask4Bit 0x0F
#define kSCSICmdFieldMask4Byte 0xFFFFFFFFUL
#define kSCSICmdFieldMask50Bit 0x03FFFFFFFFFFFFULL
#define kSCSICmdFieldMask51Bit 0x07FFFFFFFFFFFFULL
#define kSCSICmdFieldMask52Bit 0x0FFFFFFFFFFFFFULL
#define kSCSICmdFieldMask53Bit 0x1FFFFFFFFFFFFFULL
#define kSCSICmdFieldMask54Bit 0x3FFFFFFFFFFFFFULL
#define kSCSICmdFieldMask55Bit 0x7FFFFFFFFFFFFFULL
#define kSCSICmdFieldMask57Bit 0x01FFFFFFFFFFFFFFULL
#define kSCSICmdFieldMask58Bit 0x03FFFFFFFFFFFFFFULL
#define kSCSICmdFieldMask59Bit 0x07FFFFFFFFFFFFFFULL
#define kSCSICmdFieldMask5Bit 0x1F
#define kSCSICmdFieldMask5Byte 0xFFFFFFFFFFULL
#define kSCSICmdFieldMask60Bit 0x0FFFFFFFFFFFFFFFULL
#define kSCSICmdFieldMask61Bit 0x1FFFFFFFFFFFFFFFULL
#define kSCSICmdFieldMask62Bit 0x3FFFFFFFFFFFFFFFULL
#define kSCSICmdFieldMask63Bit 0x7FFFFFFFFFFFFFFFULL
#define kSCSICmdFieldMask6Bit 0x3F
#define kSCSICmdFieldMask6Byte 0xFFFFFFFFFFFFULL
#define kSCSICmdFieldMask7Bit 0x7F
#define kSCSICmdFieldMask7Byte 0xFFFFFFFFFFFFFFULL
#define kSCSICmdFieldMask8Byte 0xFFFFFFFFFFFFFFFFULL
#define kSCSICmdFieldMask9Bit 0x01FF
Constants
kSCSICmdFieldMask10Bit

Available in OS X v10.3 and later.

Declared in SCSICommandDefinitions.h.

kSCSICmdFieldMask11Bit

Available in OS X v10.3 and later.

Declared in SCSICommandDefinitions.h.

kSCSICmdFieldMask12Bit

Available in OS X v10.3 and later.

Declared in SCSICommandDefinitions.h.

kSCSICmdFieldMask13Bit

Available in OS X v10.3 and later.

Declared in SCSICommandDefinitions.h.

kSCSICmdFieldMask14Bit

Available in OS X v10.3 and later.

Declared in SCSICommandDefinitions.h.

kSCSICmdFieldMask15Bit

Available in OS X v10.3 and later.

Declared in SCSICommandDefinitions.h.

kSCSICmdFieldMask17Bit

Available in OS X v10.3 and later.

Declared in SCSICommandDefinitions.h.

kSCSICmdFieldMask18Bit

Available in OS X v10.3 and later.

Declared in SCSICommandDefinitions.h.

kSCSICmdFieldMask19Bit

Available in OS X v10.3 and later.

Declared in SCSICommandDefinitions.h.

kSCSICmdFieldMask1Bit

Available in OS X v10.3 and later.

Declared in SCSICommandDefinitions.h.

kSCSICmdFieldMask20Bit

Available in OS X v10.3 and later.

Declared in SCSICommandDefinitions.h.

kSCSICmdFieldMask21Bit

Available in OS X v10.3 and later.

Declared in SCSICommandDefinitions.h.

kSCSICmdFieldMask22Bit

Available in OS X v10.3 and later.

Declared in SCSICommandDefinitions.h.

kSCSICmdFieldMask23Bit

Available in OS X v10.3 and later.

Declared in SCSICommandDefinitions.h.

kSCSICmdFieldMask25Bit

Available in OS X v10.3 and later.

Declared in SCSICommandDefinitions.h.

kSCSICmdFieldMask26Bit

Available in OS X v10.3 and later.

Declared in SCSICommandDefinitions.h.

kSCSICmdFieldMask27Bit

Available in OS X v10.3 and later.

Declared in SCSICommandDefinitions.h.

kSCSICmdFieldMask28Bit

Available in OS X v10.3 and later.

Declared in SCSICommandDefinitions.h.

kSCSICmdFieldMask29Bit

Available in OS X v10.3 and later.

Declared in SCSICommandDefinitions.h.

kSCSICmdFieldMask2Bit

Available in OS X v10.3 and later.

Declared in SCSICommandDefinitions.h.

kSCSICmdFieldMask2Byte

Available in OS X v10.3 and later.

Declared in SCSICommandDefinitions.h.

kSCSICmdFieldMask30Bit

Available in OS X v10.3 and later.

Declared in SCSICommandDefinitions.h.

kSCSICmdFieldMask31Bit

Available in OS X v10.3 and later.

Declared in SCSICommandDefinitions.h.

kSCSICmdFieldMask33Bit

Available in OS X v10.3 and later.

Declared in SCSICommandDefinitions.h.

kSCSICmdFieldMask34Bit

Available in OS X v10.3 and later.

Declared in SCSICommandDefinitions.h.

kSCSICmdFieldMask35Bit

Available in OS X v10.3 and later.

Declared in SCSICommandDefinitions.h.

kSCSICmdFieldMask36Bit

Available in OS X v10.3 and later.

Declared in SCSICommandDefinitions.h.

kSCSICmdFieldMask37Bit

Available in OS X v10.3 and later.

Declared in SCSICommandDefinitions.h.

kSCSICmdFieldMask38Bit

Available in OS X v10.3 and later.

Declared in SCSICommandDefinitions.h.

kSCSICmdFieldMask39Bit

Available in OS X v10.3 and later.

Declared in SCSICommandDefinitions.h.

kSCSICmdFieldMask3Bit

Available in OS X v10.3 and later.

Declared in SCSICommandDefinitions.h.

kSCSICmdFieldMask3Byte

Available in OS X v10.3 and later.

Declared in SCSICommandDefinitions.h.

kSCSICmdFieldMask41Bit

Available in OS X v10.3 and later.

Declared in SCSICommandDefinitions.h.

kSCSICmdFieldMask42Bit

Available in OS X v10.3 and later.

Declared in SCSICommandDefinitions.h.

kSCSICmdFieldMask43Bit

Available in OS X v10.3 and later.

Declared in SCSICommandDefinitions.h.

kSCSICmdFieldMask44Bit

Available in OS X v10.3 and later.

Declared in SCSICommandDefinitions.h.

kSCSICmdFieldMask45Bit

Available in OS X v10.3 and later.

Declared in SCSICommandDefinitions.h.

kSCSICmdFieldMask46Bit

Available in OS X v10.3 and later.

Declared in SCSICommandDefinitions.h.

kSCSICmdFieldMask47Bit

Available in OS X v10.3 and later.

Declared in SCSICommandDefinitions.h.

kSCSICmdFieldMask49Bit

Available in OS X v10.3 and later.

Declared in SCSICommandDefinitions.h.

kSCSICmdFieldMask4Bit

Available in OS X v10.3 and later.

Declared in SCSICommandDefinitions.h.

kSCSICmdFieldMask4Byte

Available in OS X v10.3 and later.

Declared in SCSICommandDefinitions.h.

kSCSICmdFieldMask50Bit

Available in OS X v10.3 and later.

Declared in SCSICommandDefinitions.h.

kSCSICmdFieldMask51Bit

Available in OS X v10.3 and later.

Declared in SCSICommandDefinitions.h.

kSCSICmdFieldMask52Bit

Available in OS X v10.3 and later.

Declared in SCSICommandDefinitions.h.

kSCSICmdFieldMask53Bit

Available in OS X v10.3 and later.

Declared in SCSICommandDefinitions.h.

kSCSICmdFieldMask54Bit

Available in OS X v10.3 and later.

Declared in SCSICommandDefinitions.h.

kSCSICmdFieldMask55Bit

Available in OS X v10.3 and later.

Declared in SCSICommandDefinitions.h.

kSCSICmdFieldMask57Bit

Available in OS X v10.3 and later.

Declared in SCSICommandDefinitions.h.

kSCSICmdFieldMask58Bit

Available in OS X v10.3 and later.

Declared in SCSICommandDefinitions.h.

kSCSICmdFieldMask59Bit

Available in OS X v10.3 and later.

Declared in SCSICommandDefinitions.h.

kSCSICmdFieldMask5Bit

Available in OS X v10.3 and later.

Declared in SCSICommandDefinitions.h.

kSCSICmdFieldMask5Byte

Available in OS X v10.3 and later.

Declared in SCSICommandDefinitions.h.

kSCSICmdFieldMask60Bit

Available in OS X v10.3 and later.

Declared in SCSICommandDefinitions.h.

kSCSICmdFieldMask61Bit

Available in OS X v10.3 and later.

Declared in SCSICommandDefinitions.h.

kSCSICmdFieldMask62Bit

Available in OS X v10.3 and later.

Declared in SCSICommandDefinitions.h.

kSCSICmdFieldMask63Bit

Available in OS X v10.3 and later.

Declared in SCSICommandDefinitions.h.

kSCSICmdFieldMask6Bit

Available in OS X v10.3 and later.

Declared in SCSICommandDefinitions.h.

kSCSICmdFieldMask6Byte

Available in OS X v10.3 and later.

Declared in SCSICommandDefinitions.h.

kSCSICmdFieldMask7Bit

Available in OS X v10.3 and later.

Declared in SCSICommandDefinitions.h.

kSCSICmdFieldMask7Byte

Available in OS X v10.3 and later.

Declared in SCSICommandDefinitions.h.

kSCSICmdFieldMask8Byte

Available in OS X v10.3 and later.

Declared in SCSICommandDefinitions.h.

kSCSICmdFieldMask9Bit

Available in OS X v10.3 and later.

Declared in SCSICommandDefinitions.h.