Mac OS 9
USB.h File Reference

Public API for USB Services Library (and associated components) More...

#include <MacTypes.h>
#include <NameRegistry.h>
#include <CodeFragments.h>
#include <Devices.h>
#include <MacErrors.h>

Go to the source code of this file.

Data Structures

struct  usbControlBits
 
struct  USBIsocFrame
 
struct  usbIsocBits
 
struct  usbHubBits
 
union  USBVariantBits
 
struct  USBPB
 
struct  uslReq
 
struct  USBDeviceDescriptor
 
struct  USBDescriptorHeader
 
struct  USBConfigurationDescriptor
 
struct  USBInterfaceDescriptor
 
struct  USBEndPointDescriptor
 
struct  USBHIDDescriptor
 
struct  USBHIDReportDesc
 
struct  USBHubPortStatus
 
struct  ExpertNotificationData
 
struct  USBDeviceNotificationParameterBlock
 
struct  USBHIDRev2DispatchTable
 
struct  USBHIDModuleDispatchTable
 
struct  USBMouseData
 
struct  USBKeyboardData
 
union  USBHIDData
 
struct  USBDeviceInfo
 
struct  USBInterfaceInfo
 
struct  USBDriverType
 
struct  USBDriverDescription
 
struct  USBClassDriverPluginDispatchTable
 
struct  USBShimDescription
 
struct  hubDescriptor
 

Macros

#define OLDUSBNAMES   0
 
#define kUSBNoCallBack   ((USBCompletion)-1L)
 
#define USB_CONSTANT16(x)   ((((x) >> 8) & 0x0ff) | ((x & 0xff) << 8))
 

Typedefs

typedef SInt32 USBReference
 
typedef USBReference USBDeviceRef
 
typedef USBDeviceRef * USBDeviceRefPtr
 
typedef USBReference USBInterfaceRef
 
typedef USBReference USBPipeRef
 
typedef USBReference USBBusRef
 
typedef UInt32 USBPipeState
 
typedef UInt32 USBCount
 
typedef UInt32 USBFlags
 
typedef UInt8 USBRequest
 
typedef UInt8 USBDirection
 
typedef UInt8 USBRqRecipient
 
typedef UInt8 USBRqType
 
typedef UInt16 USBRqIndex
 
typedef UInt16 USBRqValue
 
typedef struct usbControlBits usbControlBits
 
typedef struct USBIsocFrame USBIsocFrame
 
typedef struct usbIsocBits usbIsocBits
 
typedef struct usbHubBits usbHubBits
 
typedef struct USBPB USBPB
 
typedef union USBVariantBits USBVariantBits
 
typedef USBPBUSBPBPtr
 
typedef struct uslReq uslReq
 
typedef UInt8 bcdUSB
 
typedef struct USBDeviceDescriptor USBDeviceDescriptor
 
typedef USBDeviceDescriptorUSBDeviceDescriptorPtr
 
typedef struct USBDescriptorHeader USBDescriptorHeader
 
typedef USBDescriptorHeaderUSBDescriptorHeaderPtr
 
typedef struct USBConfigurationDescriptor USBConfigurationDescriptor
 
typedef USBConfigurationDescriptorUSBConfigurationDescriptorPtr
 
typedef struct USBInterfaceDescriptor USBInterfaceDescriptor
 
typedef USBInterfaceDescriptorUSBInterfaceDescriptorPtr
 
typedef struct USBEndPointDescriptor USBEndPointDescriptor
 
typedef USBEndPointDescriptorUSBEndPointDescriptorPtr
 
typedef struct USBHIDDescriptor USBHIDDescriptor
 
typedef USBHIDDescriptorUSBHIDDescriptorPtr
 
typedef struct USBHIDReportDesc USBHIDReportDesc
 
typedef USBHIDReportDescUSBHIDReportDescPtr
 
typedef struct USBHubPortStatus USBHubPortStatus
 
typedef USBHubPortStatusUSBHubPortStatusPtr
 
typedef UInt32 USBLocationID
 
typedef UInt8 USBNotificationType
 
typedef USBNotificationType USBDriverMessage
 
typedef UInt16 USBManagerWildcard
 
typedef struct ExpertNotificationData ExpertNotificationData
 
typedef ExpertNotificationDataExpertNotificationDataPtr
 
typedef struct USBDeviceNotificationParameterBlock USBDeviceNotificationParameterBlock
 
typedef USBDeviceNotificationParameterBlockUSBDeviceNotificationParameterBlockPtr
 
typedef UInt32 refcon
 
typedef void * theData
 
typedef UInt32 reportSize
 
typedef UInt32 void * theReport
 
typedef UInt32 void USBReference theInterfaceRef
 
typedef void * theControlData
 
typedef void * theInfo
 
typedef struct USBHIDRev2DispatchTable USBHIDRev2DispatchTable
 
typedef USBHIDRev2DispatchTableUSBHIDRev2DispatchTablePtr
 
typedef struct USBHIDModuleDispatchTable USBHIDModuleDispatchTable
 
typedef USBHIDModuleDispatchTableUSBHIDModuleDispatchTablePtr
 
typedef struct USBMouseData USBMouseData
 
typedef USBMouseDataUSBMouseDataPtr
 
typedef struct USBKeyboardData USBKeyboardData
 
typedef USBKeyboardDataUSBKeyboardDataPtr
 
typedef union USBHIDData USBHIDData
 
typedef USBHIDDataUSBHIDDataPtr
 
typedef UInt32 USBDriverDescVersion
 
typedef UInt32 USBDriverLoadingOptions
 
typedef struct USBDeviceInfo USBDeviceInfo
 
typedef USBDeviceInfoUSBDeviceInfoPtr
 
typedef struct USBInterfaceInfo USBInterfaceInfo
 
typedef USBInterfaceInfoUSBInterfaceInfoPtr
 
typedef struct USBDriverType USBDriverType
 
typedef USBDriverTypeUSBDriverTypePtr
 
typedef struct USBDriverDescription USBDriverDescription
 
typedef USBDriverDescriptionUSBDriverDescriptionPtr
 
typedef USBDeviceDescriptorPtr pDesc
 
typedef USBDeviceDescriptorPtr UInt32 busPowerAvailable
 
typedef USBInterfaceDescriptorPtr pInterface
 
typedef USBInterfaceDescriptorPtr USBDeviceDescriptorPtr pDevice
 
typedef USBInterfaceDescriptorPtr USBDeviceDescriptorPtr USBInterfaceRef interfaceRef
 
typedef UInt32 USBDriverNotification
 
typedef void * pointer
 
typedef struct USBClassDriverPluginDispatchTable USBClassDriverPluginDispatchTable
 
typedef USBClassDriverPluginDispatchTableUSBClassDriverPluginDispatchTablePtr
 
typedef UInt32 USBShimDescVersion
 
typedef UInt32 USBShimLoadingOptions
 
typedef struct USBShimDescription USBShimDescription
 
typedef USBShimDescriptionUSBShimDescriptionPtr
 
typedef struct hubDescriptor hubDescriptor
 

Enumerations

enum  {
  kUSBTaskTimeFlag = 1 , kUSBHubPower = 2 , kUSBPowerReset = 4 , kUSBHubReaddress = 8 ,
  kUSBAddressRequest = 16 , kUSBReturnOnException = 32 , kUSBNo5SecTimeout = 64 , kUSBTimeout = 128 ,
  kUSBNoDataTimeout = 256 , kUSBDebugAwareFlag = 512 , kUSBResetDescriptorCache = 1024 , kUSBHighSpeedFlag = 2048 ,
  kUSBDevZeroDetatch = 4096 , kUSBLowSpeedFlag = 8192 , kUSBTaskTimeSetAddressFlag = 16384
}
 
enum  { kUSBHubPortResetRequest = 1 , kUSBHubPortSuspendRequest = 2 , kUSBHubPortStatusRequest = 3 }
 
enum  { kVendorID_AppleComputer = 0x05AC }
 
enum  { kUSBMaxIsocFrameReqCount }
 
enum  { kUSBCurrentPBVersion = 0x0100 , kUSBIsocPBVersion = 0x0109 , kUSBCurrentHubPB = kUSBIsocPBVersion }
 
enum  {
  kUSBControl = 0 , kUSBIsoc = 1 , kUSBBulk = 2 , kUSBInterrupt = 3 ,
  kUSBAnyType = 0xFF
}
 
enum  { kUSBOut = 0 , kUSBIn = 1 , kUSBNone = 2 , kUSBAnyDirn = 3 }
 
enum  { kUSBStandard = 0 , kUSBClass = 1 , kUSBVendor = 2 }
 
enum  { kUSBDevice = 0 , kUSBInterface = 1 , kUSBEndpoint = 2 , kUSBOther = 3 }
 
enum  {
  kUSBRqGetStatus = 0 , kUSBRqClearFeature = 1 , kUSBRqReserved1 = 2 , kUSBRqSetFeature = 3 ,
  kUSBRqReserved2 = 4 , kUSBRqSetAddress = 5 , kUSBRqGetDescriptor = 6 , kUSBRqSetDescriptor = 7 ,
  kUSBRqGetConfig = 8 , kUSBRqSetConfig = 9 , kUSBRqGetInterface = 10 , kUSBRqSetInterface = 11 ,
  kUSBRqSyncFrame = 12
}
 
enum  {
  kUSBDeviceDesc = 1 , kUSBConfDesc = 2 , kUSBStringDesc = 3 , kUSBInterfaceDesc = 4 ,
  kUSBEndpointDesc = 5 , kUSBHIDDesc = 0x21 , kUSBReportDesc = 0x22 , kUSBPhysicalDesc = 0x23 ,
  kUSBHUBDesc = 0x29
}
 
enum  { kUSBFeatureDeviceRemoteWakeup = 1 , kUSBFeatureEndpointStall = 0 }
 
enum  {
  kUSBActive = 0 , kUSBIdle = 1 , kUSBStalled = 2 , kUSBSuspended = 4 ,
  kUSBNoBandwidth = 8
}
 
enum  {
  kUSB100mAAvailable = 50 , kUSB500mAAvailable = 250 , kUSB100mA = 50 , kUSBAtrBusPowered = 0x80 ,
  kUSBAtrSelfPowered = 0x40 , kUSBAtrRemoteWakeup = 0x20
}
 
enum  { kUSBRel10 = 0x0100 , kUSBRel11 = 0x0110 , kUSBRel20 = 0x0200 }
 
enum  { kUSBDeviceDescriptorLength = 0x12 , kUSBInterfaceDescriptorLength = 0x09 , kUSBConfigDescriptorLength = 0x09 }
 
enum  {
  kUSBDevicePower_PowerOK = 0 , kUSBDevicePower_BusPowerInsufficient = 1 , kUSBDevicePower_BusPowerNotAllFeatures = 2 , kUSBDevicePower_SelfPowerInsufficient = 3 ,
  kUSBDevicePower_SelfPowerNotAllFeatures = 4 , kUSBDevicePower_HubPortOk = 5 , kUSBDevicePower_HubPortOverCurrent = 6 , kUSBDevicePower_BusPoweredHubOnLowPowerPort = 7 ,
  kUSBDevicePower_BusPoweredHubToBusPoweredHub = 8 , kUSBDevicePower_Reserved3 = 9 , kUSBDevicePower_Reserved4 = 10
}
 
enum  { kUSBLocationNibbleFormat }
 
enum  { kNoDeviceRef = -1 }
 
enum  {
  kUSBStatusLevelFatal = 1 , kUSBStatusLevelError = 2 , kUSBStatusLevelClient = 3 , kUSBStatusLevelGeneral = 4 ,
  kUSBStatusLevelVerbose = 5
}
 
enum  {
  kNotifyAddDevice = 0x00 , kNotifyRemoveDevice = 0x01 , kNotifyAddInterface = 0x02 , kNotifyRemoveInterface = 0x03 ,
  kNotifyGetDeviceDescriptor = 0x04 , kNotifyGetInterfaceDescriptor = 0x05 , kNotifyGetNextDeviceByClass = 0x06 , kNotifyGetDriverConnectionID = 0x07 ,
  kNotifyInstallDeviceNotification = 0x08 , kNotifyRemoveDeviceNotification = 0x09 , kNotifyDeviceRefToBusRef = 0x0A , kNotifyDriverNotify = 0x0C ,
  kNotifyParentNotify = 0x0D , kNotifyAnyEvent = 0xFF , kNotifyPowerState = 0x17 , kNotifyStatus = 0x18 ,
  kNotifyFatalError = 0x19 , kNotifyStatusLevel = 0x20
}
 
enum  {
  kUSBAnyClass = 0xFFFF , kUSBAnySubClass = 0xFFFF , kUSBAnyProtocol = 0xFFFF , kUSBAnyVendor = 0xFFFF ,
  kUSBAnyProduct = 0xFFFF
}
 
enum  { kHIDStandardDispatchVersion = 0 , kHIDReservedDispatchVersion = 1 , kHIDNotificationDispatchVersion = 2 , kHIDCurrentDispatchVersion = 2 }
 
enum  {
  kHIDRqGetReport = 1 , kHIDRqGetIdle = 2 , kHIDRqGetProtocol = 3 , kHIDRqSetReport = 9 ,
  kHIDRqSetIdle = 10 , kHIDRqSetProtocol = 11
}
 
enum  { kHIDRtInputReport = 1 , kHIDRtOutputReport = 2 , kHIDRtFeatureReport = 3 }
 
enum  { kHIDBootProtocolValue = 0 , kHIDReportProtocolValue = 1 }
 
enum  { kHIDKeyboardInterfaceProtocol = 1 , kHIDMouseInterfaceProtocol = 2 }
 
enum  {
  kHIDSetLEDStateByBits = 1 , kHIDSetLEDStateByBitMask = 1 , kHIDSetLEDStateByIDNumber = 2 , kHIDRemoveInterruptHandler = 3 ,
  kHIDEnableDemoMode = 4 , kHIDDisableDemoMode = 5 , kHIDRemoveNotification = 0x1000
}
 
enum  {
  kHIDGetLEDStateByBits = 1 , kHIDGetLEDStateByBitMask = 1 , kHIDGetLEDStateByIDNumber = 2 , kHIDGetDeviceCountryCode = 3 ,
  kHIDGetDeviceUnitsPerInch = 4 , kHIDGetInterruptHandler = 5 , kHIDGetCurrentKeys = 6 , kHIDGetInterruptRefcon = 7 ,
  kHIDGetVendorID = 8 , kHIDGetProductID = 9
}
 
enum  {
  kNumLockLED = 0 , kCapsLockLED = 1 , kScrollLockLED = 2 , kComposeLED = 3 ,
  kKanaLED = 4
}
 
enum  {
  kNumLockLEDMask = 1 << kNumLockLED , kCapsLockLEDMask = 1 << kCapsLockLED , kScrollLockLEDMask = 1 << kScrollLockLED , kComposeLEDMask = 1 << kComposeLED ,
  kKanaLEDMask = 1 << kKanaLED
}
 
enum  { kUSBCapsLockKey = 0x39 , kUSBNumLockKey = 0x53 , kUSBScrollLockKey = 0x47 }
 
enum  {
  kUSBCompositeClass = 0 , kUSBAudioClass = 1 , kUSBCommClass = 2 , kUSBHIDClass = 3 ,
  kUSBDisplayClass = 4 , kUSBPrintingClass = 7 , kUSBMassStorageClass = 8 , kUSBHubClass = 9 ,
  kUSBDataClass = 10 , kUSBVendorSpecificClass = 0xFF
}
 
enum  { kUSBCompositeSubClass = 0 , kUSBHubSubClass = 1 , kUSBPrinterSubclass = 1 , kUSBVendorSpecificSubClass = 0xFF }
 
enum  { kUSBHIDInterfaceClass = 0x03 }
 
enum  { kUSBNoInterfaceSubClass = 0x00 , kUSBBootInterfaceSubClass = 0x01 }
 
enum  { kUSBNoInterfaceProtocol = 0x00 , kUSBKeyboardInterfaceProtocol = 0x01 , kUSBMouseInterfaceProtocol = 0x02 , kUSBVendorSpecificProtocol = 0xFF }
 
enum  { kUSBPrinterUnidirectionalProtocol = 0x01 , kUSBPrinterBidirectionalProtocol = 0x02 }
 
enum  { kServiceCategoryUSB = FOUR_CHAR_CODE('usb ') }
 
enum  { kUSBDriverFileType = FOUR_CHAR_CODE('ndrv') , kUSBDriverRsrcType = FOUR_CHAR_CODE('usbd') , kUSBShimRsrcType = FOUR_CHAR_CODE('usbs') }
 
enum  { kTheUSBDriverDescriptionSignature = FOUR_CHAR_CODE('usbd') }
 
enum  { kInitialUSBDriverDescriptor = 0 }
 
enum  { kUSBDoNotMatchGenericDevice , kUSBDoNotMatchInterface , kUSBProtocolMustMatch , kUSBInterfaceMatchOnly }
 
enum  { kClassDriverPluginVersion = 0x00001100 }
 
enum  {
  kNotifySystemSleepRequest = 0x00000001 , kNotifySystemSleepDemand = 0x00000002 , kNotifySystemSleepWakeUp = 0x00000003 , kNotifySystemSleepRevoke = 0x00000004 ,
  kNotifyHubEnumQuery = 0x00000006 , kNotifyChildMessage = 0x00000007 , kNotifyExpertTerminating = 0x00000008 , kNotifyDriverBeingRemoved = 0x0000000B ,
  kNotifyAllowROMDriverRemoval = 0x0000000E
}
 
enum  { kTheUSBShimDescriptionSignature = FOUR_CHAR_CODE('usbs') }
 
enum  { kCurrentUSBShimDescVers = 0x0100 }
 
enum  { kUSBRegisterShimAsSharedLibrary }
 
enum  { kUSBHubDescriptorType = 0x29 }
 
enum  {
  kUSBHubLocalPowerChangeFeature = 0 , kUSBHubOverCurrentChangeFeature = 1 , kUSBHubPortConnectionFeature = 0 , kUSBHubPortEnableFeature = 1 ,
  kUSBHubPortSuspendFeature = 2 , kUSBHubPortOverCurrentFeature = 3 , kUSBHubPortResetFeature = 4 , kUSBHubPortPowerFeature = 8 ,
  kUSBHubPortLowSpeedFeature = 9 , kUSBHubPortConnectionChangeFeature = 16 , kUSBHubPortEnableChangeFeature = 17 , kUSBHubPortSuspendChangeFeature = 18 ,
  kUSBHubPortOverCurrentChangeFeature = 19 , kUSBHubPortResetChangeFeature = 20
}
 
enum  {
  kHubPortConnection = 1 , kHubPortEnabled = 2 , kHubPortSuspend = 4 , kHubPortOverCurrent = 8 ,
  kHubPortBeingReset = 16 , kHubPortPower = 0x0100 , kHubPortLowSpeed = 0x0200 , kHubPortHighSpeed = 0x0400 ,
  kHubPortTestMode = 0x0800 , kHubPortPortIndicator = 0x1000
}
 
enum  { kUSBFullSpeed = 0 , kUSBLowSpeed = 1 , kUSBHighSpeed = 2 }
 
enum  { kHubLocalPowerStatus = 1 , kHubOverCurrentIndicator = 2 , kHubLocalPowerStatusChange = 1 , kHubOverCurrentIndicatorChange = 2 }
 
enum  { off = false , on = true }
 

Functions

typedef CALLBACK_API_C (void, USBCompletion)(USBPB *pb)
 
UInt16 HostToUSBWord (UInt16 value)
 
UInt16 USBToHostWord (UInt16 value)
 
UInt32 HostToUSBLong (UInt32 value)
 
UInt32 USBToHostLong (UInt32 value)
 
OSStatus USBDeviceRequest (USBPB *pb)
 
OSStatus USBBulkWrite (USBPB *pb)
 
OSStatus USBBulkRead (USBPB *pb)
 
OSStatus USBIntRead (USBPB *pb)
 
OSStatus USBIntWrite (USBPB *pb)
 
OSStatus USBIsocRead (USBPB *pb)
 
OSStatus USBIsocWrite (USBPB *pb)
 
OSStatus USBClearPipeStallByReference (USBPipeRef ref)
 
OSStatus USBAbortPipeByReference (USBReference ref)
 
OSStatus USBResetPipeByReference (USBReference ref)
 
OSStatus USBSetPipeIdleByReference (USBPipeRef ref)
 
OSStatus USBSetPipeActiveByReference (USBPipeRef ref)
 
OSStatus USBClosePipeByReference (USBPipeRef ref)
 
OSStatus USBGetPipeStatusByReference (USBReference ref, USBPipeState *state)
 
OSStatus USBFindNextInterface (USBPB *pb)
 
OSStatus USBOpenDevice (USBPB *pb)
 
OSStatus USBSetConfiguration (USBPB *pb)
 
OSStatus USBNewInterfaceRef (USBPB *pb)
 
OSStatus USBDisposeInterfaceRef (USBPB *pb)
 
OSStatus USBConfigureInterface (USBPB *pb)
 
OSStatus USBFindNextPipe (USBPB *pb)
 
OSStatus USBSetPipePolicy (USBPB *pb)
 
OSStatus USBGetConfigurationDescriptor (USBPB *pb)
 
OSStatus USBGetFullConfigurationDescriptor (USBPB *pb)
 
OSStatus USBGetStringDescriptor (USBPB *pb)
 
OSStatus USBFindNextEndpointDescriptorImmediate (USBPB *pb)
 
OSStatus USBFindNextInterfaceDescriptorImmediate (USBPB *pb)
 
OSStatus USBFindNextAssociatedDescriptor (USBPB *pb)
 
OSStatus USBResetDevice (USBPB *pb)
 
OSStatus USBPortStatus (USBPB *pb)
 
OSStatus USBSuspendDevice (USBPB *pb)
 
OSStatus USBResumeDeviceByReference (USBReference refIn)
 
OSStatus USBGetBandwidthAvailableByReference (USBReference ref, UInt32 *avail)
 
OSStatus USBGetFrameNumberImmediate (USBPB *pb)
 
OSStatus USBDelay (USBPB *pb)
 
OSStatus USBSAbortQueuesByReference (USBReference ref)
 
OSStatus USBAllocMem (USBPB *pb)
 
OSStatus USBDeallocMem (USBPB *pb)
 
OSStatus USBExpertInstallInterfaceDriver (USBDeviceRef ref, USBDeviceDescriptorPtr desc, USBInterfaceDescriptorPtr interfacePtr, USBReference hubRef, UInt32 busPowerAvailable)
 
OSStatus USBExpertRemoveInterfaceDriver (USBDeviceRef ref)
 
OSStatus USBExpertInstallDeviceDriver (USBDeviceRef ref, USBDeviceDescriptorPtr desc, USBReference hubRef, UInt32 port, UInt32 busPowerAvailable)
 
OSStatus USBExpertRemoveDeviceDriver (USBDeviceRef ref)
 
OSStatus USBExpertStatus (USBDeviceRef ref, void *pointer, UInt32 value)
 
OSStatus USBExpertFatalError (USBDeviceRef ref, OSStatus status, void *pointer, UInt32 value)
 
OSStatus USBExpertNotify (void *note)
 
OSStatus USBExpertStatusLevel (UInt32 level, USBDeviceRef ref, StringPtr status, UInt32 value)
 
UInt32 USBExpertGetStatusLevel (void)
 
void USBExpertSetStatusLevel (UInt32 level)
 
OSStatus USBExpertSetDevicePowerStatus (USBDeviceRef ref, UInt32 reserved1, UInt32 reserved2, UInt32 powerStatus, UInt32 busPowerAvailable, UInt32 busPowerNeeded)
 
OSStatus USBHubAddDevice (USBPB *pb)
 
OSStatus USBHubConfigurePipeZero (USBPB *pb)
 
OSStatus USBHubSetAddress (USBPB *pb)
 
OSStatus USBHubDeviceRemoved (USBPB *pb)
 
UInt8 USBMakeBMRequestType (UInt8 direction, UInt8 reqtype, UInt8 recipient)
 
OSStatus USBControlRequest (USBPB *pb)
 
typedef CALLBACK_API_C (OSStatus, ExpertNotificationProcPtr)(ExpertNotificationDataPtr pNotificationData)
 
typedef CALLBACK_API_C (OSStatus, ExpertEntryProcPtr)(ExpertNotificationProcPtr pExpertNotify)
 
typedef CALLBACK_API_C (void, USBDeviceNotificationCallbackProcPtr)(void *pb)
 
typedef CALLBACK_API_C (void, USBDriverNotificationCallbackPtr)(OSStatus status
 
UInt32 USBGetVersion (void)
 
OSStatus USBGetNextDeviceByClass (USBDeviceRef *deviceRef, CFragConnectionID *connID, UInt16 theClass, UInt16 theSubClass, UInt16 theProtocol)
 
OSStatus USBGetDeviceDescriptor (USBDeviceRef *deviceRef, USBDeviceDescriptor *deviceDescriptor, UInt32 size)
 
OSStatus USBGetInterfaceDescriptor (USBInterfaceRef *interfaceRef, USBInterfaceDescriptor *interfaceDescriptor, UInt32 size)
 
OSStatus USBGetDriverConnectionID (USBDeviceRef *deviceRef, CFragConnectionID *connID)
 
void USBInstallDeviceNotification (USBDeviceNotificationParameterBlock *pb)
 
OSStatus USBRemoveDeviceNotification (UInt32 token)
 
OSStatus USBDeviceRefToBusRef (USBDeviceRef *deviceRef, USBBusRef *busRef)
 
OSStatus USBDriverNotify (USBReference reference, USBDriverMessage mesg, UInt32 refcon, USBDriverNotificationCallbackPtr callback)
 
OSStatus USBExpertNotifyParent (USBReference reference, void *pointer)
 
OSStatus USBAddDriverForFSSpec (USBReference reference, FSSpec *fileSpec)
 
OSStatus USBAddShimFromDisk (FSSpec *shimFilePtr)
 
OSStatus USBReferenceToRegEntry (RegEntryID *parentEntry, USBDeviceRef parentDeviceRef)
 
OSStatus USBConfigureADBShim (UInt32 inCommandID, void *arg1, void *arg2)
 
typedef CALLBACK_API_C (void, HIDInterruptProcPtr)(UInt32 refcon
 
typedef CALLBACK_API_C (void, HIDNotificationProcPtr)(UInt32 refcon
 
typedef CALLBACK_API_C (OSStatus, USBHIDInstallInterruptProcPtr)(HIDInterruptProcPtr pInterruptProc
 
typedef CALLBACK_API_C (OSStatus, USBHIDPollDeviceProcPtr)(void)
 
typedef CALLBACK_API_C (OSStatus, USBHIDControlDeviceProcPtr)(UInt32 theControlSelector
 
typedef CALLBACK_API_C (OSStatus, USBHIDGetDeviceInfoProcPtr)(UInt32 theInfoSelector
 
typedef CALLBACK_API_C (OSStatus, USBHIDEnterPolledModeProcPtr)(void)
 
typedef CALLBACK_API_C (OSStatus, USBHIDExitPolledModeProcPtr)(void)
 
typedef CALLBACK_API_C (OSStatus, USBHIDInstallNotificationProcPtr)(HIDNotificationProcPtr pNotificationProc
 
OSStatus USBHIDInstallInterrupt (HIDInterruptProcPtr HIDInterruptFunction, UInt32 refcon)
 
OSStatus USBHIDPollDevice (void)
 
OSStatus USBHIDControlDevice (UInt32 theControlSelector, void *theControlData)
 
OSStatus USBHIDGetDeviceInfo (UInt32 theInfoSelector, void *theInfo)
 
OSStatus USBHIDEnterPolledMode (void)
 
OSStatus USBHIDExitPolledMode (void)
 
OSStatus USBHIDInstallNotification (HIDNotificationProcPtr HIDNotificationFunction, UInt32 refcon)
 
void HIDNotification (UInt32 devicetype, UInt8 NewHIDData[], UInt8 OldHIDData[])
 
void StartCompoundClassDriver (USBDeviceRef device, UInt16 classID, UInt16 subClass)
 
typedef CALLBACK_API_C (OSStatus, USBDValidateHWProcPtr)(USBDeviceRef device
 
typedef CALLBACK_API_C (OSStatus, USBDInitializeDeviceProcPtr)(USBDeviceRef device
 
typedef CALLBACK_API_C (OSStatus, USBDInitializeInterfaceProcPtr)(UInt32 interfaceNum
 
typedef CALLBACK_API_C (OSStatus, USBDFinalizeProcPtr)(USBDeviceRef device
 
typedef CALLBACK_API_C (OSStatus, USBDDriverNotifyProcPtr)(USBDriverNotification notification
 

Detailed Description

Public API for USB Services Library (and associated components)

Introduced In: USB 1.4
Avaliable From: Universal Interfaces 3.4.1
Copyright: � 1998-2001 by Apple Computer, Inc., all rights reserved.

For bug reports, consult the following page on the World Wide Web:

http://developer.apple.com/bugreporter/

Typedef Documentation

◆ USBManagerWildcard

typedef UInt16 USBManagerWildcard

USB Manager wildcard constants for USBGetNextDeviceByClass and USBInstallDeviceNotification.

Enumeration Type Documentation

◆ anonymous enum

anonymous enum

Level 1: Fatal errors Level 2: General errors that may or may not effect operation Level 3: General driver messages. The "AddStatus" call that drivers use comes through as a level 3. This is also the default level at boot time. Level 4: Important status messages from the Expert and USL. Level 5: General status messages from the Expert and USL.

Function Documentation

◆ CALLBACK_API_C() [1/3]

typedef CALLBACK_API_C ( OSStatus  ,
USBDDriverNotifyProcPtr   
)

Definition of driver's notification proc. Added refcon for 1.1 version of dispatch table

◆ CALLBACK_API_C() [2/3]

typedef CALLBACK_API_C ( OSStatus  ,
USBDInitializeDeviceProcPtr   
)

Definition of class driver's device initialization proc. Called if the driver is being loaded for a device

◆ CALLBACK_API_C() [3/3]

typedef CALLBACK_API_C ( OSStatus  ,
USBDValidateHWProcPtr   
)

Dispatch Table Definition of class driver's HW Validation proc.

◆ HIDNotification()

void HIDNotification ( UInt32  devicetype,
UInt8  NewHIDData[],
UInt8  OldHIDData[] 
)

HIDNotification()

Availability:

Non-Carbon CFM: not available
Carbon Lib: not available
Mac OS X: not available

◆ HostToUSBLong()

UInt32 HostToUSBLong ( UInt32  value)

HostToUSBLong()

Availability:

Non-Carbon CFM: in USBServicesLib 1.1 and later
Carbon Lib: not available
Mac OS X: not available

◆ HostToUSBWord()

UInt16 HostToUSBWord ( UInt16  value)

HostToUSBWord()

Availability:

Non-Carbon CFM: in USBServicesLib 1.0 and later
Carbon Lib: not available
Mac OS X: not available

◆ StartCompoundClassDriver()

void StartCompoundClassDriver ( USBDeviceRef  device,
UInt16  classID,
UInt16  subClass 
)

StartCompoundClassDriver()

Availability:

Non-Carbon CFM: not available
Carbon Lib: not available
Mac OS X: not available

◆ USBAbortPipeByReference()

OSStatus USBAbortPipeByReference ( USBReference  ref)

USBAbortPipeByReference()

Availability:

Non-Carbon CFM: in USBServicesLib 1.0 and later
Carbon Lib: not available
Mac OS X: not available

◆ USBAddDriverForFSSpec()

OSStatus USBAddDriverForFSSpec ( USBReference  reference,
FSSpec *  fileSpec 
)

USBAddDriverForFSSpec()

Availability:

Non-Carbon CFM: in USBManagerLib 1.3 and later
Carbon Lib: not available
Mac OS X: not available

◆ USBAddShimFromDisk()

OSStatus USBAddShimFromDisk ( FSSpec *  shimFilePtr)

USBAddShimFromDisk()

Availability:

Non-Carbon CFM: in USBManagerLib 1.4 and later
Carbon Lib: not available
Mac OS X: not available

◆ USBAllocMem()

OSStatus USBAllocMem ( USBPB pb)

USBAllocMem()

Availability:

Non-Carbon CFM: in USBServicesLib 1.0 and later
Carbon Lib: not available
Mac OS X: not available

◆ USBBulkRead()

OSStatus USBBulkRead ( USBPB pb)

USBBulkRead()

Availability:

Non-Carbon CFM: in USBServicesLib 1.0 and later
Carbon Lib: not available
Mac OS X: not available

◆ USBBulkWrite()

OSStatus USBBulkWrite ( USBPB pb)

USBBulkWrite()

Availability:

Non-Carbon CFM: in USBServicesLib 1.0 and later
Carbon Lib: not available
Mac OS X: not available

◆ USBClearPipeStallByReference()

OSStatus USBClearPipeStallByReference ( USBPipeRef  ref)

USBClearPipeStallByReference()

Availability:

Non-Carbon CFM: in USBServicesLib 1.0 and later
Carbon Lib: not available
Mac OS X: not available

◆ USBClosePipeByReference()

OSStatus USBClosePipeByReference ( USBPipeRef  ref)

USBClosePipeByReference()

Availability:

Non-Carbon CFM: in USBServicesLib 1.0 and later
Carbon Lib: not available
Mac OS X: not available

◆ USBConfigureADBShim()

OSStatus USBConfigureADBShim ( UInt32  inCommandID,
void *  arg1,
void *  arg2 
)

USBConfigureADBShim()

Availability:

Non-Carbon CFM: in USBManagerLib 1.4 and later
Carbon Lib: not available
Mac OS X: not available

◆ USBConfigureInterface()

OSStatus USBConfigureInterface ( USBPB pb)

USBConfigureInterface()

Availability:

Non-Carbon CFM: in USBServicesLib 1.0 and later
Carbon Lib: not available
Mac OS X: not available

◆ USBControlRequest()

OSStatus USBControlRequest ( USBPB pb)

USBControlRequest()

Availability:

Non-Carbon CFM: in USBServicesLib 1.2 and later
Carbon Lib: not available
Mac OS X: not available

◆ USBDeallocMem()

OSStatus USBDeallocMem ( USBPB pb)

USBDeallocMem()

Availability:

Non-Carbon CFM: in USBServicesLib 1.0 and later
Carbon Lib: not available
Mac OS X: not available

◆ USBDelay()

OSStatus USBDelay ( USBPB pb)

USBDelay()

Availability:

Non-Carbon CFM: in USBServicesLib 1.0 and later
Carbon Lib: not available
Mac OS X: not available

◆ USBDeviceRefToBusRef()

OSStatus USBDeviceRefToBusRef ( USBDeviceRef *  deviceRef,
USBBusRef *  busRef 
)

USBDeviceRefToBusRef()

Availability:

Non-Carbon CFM: in USBManagerLib 1.0 and later
Carbon Lib: not available
Mac OS X: not available

◆ USBDeviceRequest()

OSStatus USBDeviceRequest ( USBPB pb)

USBDeviceRequest()

Availability:

Non-Carbon CFM: in USBServicesLib 1.0 and later
Carbon Lib: not available
Mac OS X: not available

◆ USBDisposeInterfaceRef()

OSStatus USBDisposeInterfaceRef ( USBPB pb)

USBDisposeInterfaceRef()

Availability:

Non-Carbon CFM: in USBServicesLib 1.0 and later
Carbon Lib: not available
Mac OS X: not available

◆ USBDriverNotify()

OSStatus USBDriverNotify ( USBReference  reference,
USBDriverMessage  mesg,
UInt32  refcon,
USBDriverNotificationCallbackPtr  callback 
)

USBDriverNotify()

Availability:

Non-Carbon CFM: in USBManagerLib 1.1 and later
Carbon Lib: not available
Mac OS X: not available

◆ USBExpertFatalError()

OSStatus USBExpertFatalError ( USBDeviceRef  ref,
OSStatus  status,
void *  pointer,
UInt32  value 
)

USBExpertFatalError()

Availability:

Non-Carbon CFM: in USBServicesLib 1.0 and later
Carbon Lib: not available
Mac OS X: not available

◆ USBExpertGetStatusLevel()

UInt32 USBExpertGetStatusLevel ( void  )

USBExpertGetStatusLevel()

Availability:

Non-Carbon CFM: in USBServicesLib 1.3 and later
Carbon Lib: not available
Mac OS X: not available

◆ USBExpertInstallDeviceDriver()

OSStatus USBExpertInstallDeviceDriver ( USBDeviceRef  ref,
USBDeviceDescriptorPtr  desc,
USBReference  hubRef,
UInt32  port,
UInt32  busPowerAvailable 
)

USBExpertInstallDeviceDriver()

Availability:

Non-Carbon CFM: in USBServicesLib 1.0 and later
Carbon Lib: not available
Mac OS X: not available

◆ USBExpertInstallInterfaceDriver()

OSStatus USBExpertInstallInterfaceDriver ( USBDeviceRef  ref,
USBDeviceDescriptorPtr  desc,
USBInterfaceDescriptorPtr  interfacePtr,
USBReference  hubRef,
UInt32  busPowerAvailable 
)

USBExpertInstallInterfaceDriver()

Availability:

Non-Carbon CFM: in USBServicesLib 1.0 and later
Carbon Lib: not available
Mac OS X: not available

◆ USBExpertNotify()

OSStatus USBExpertNotify ( void *  note)

USBExpertNotify()

Availability:

Non-Carbon CFM: in USBFamilyExpertLib 1.0 and later
Carbon Lib: not available
Mac OS X: not available

◆ USBExpertNotifyParent()

OSStatus USBExpertNotifyParent ( USBReference  reference,
void *  pointer 
)

USBExpertNotifyParent()

Availability:

Non-Carbon CFM: in USBManagerLib 1.1 and later
Carbon Lib: not available
Mac OS X: not available

◆ USBExpertRemoveDeviceDriver()

OSStatus USBExpertRemoveDeviceDriver ( USBDeviceRef  ref)

USBExpertRemoveDeviceDriver()

Availability:

Non-Carbon CFM: in USBServicesLib 1.0 and later
Carbon Lib: not available
Mac OS X: not available

◆ USBExpertRemoveInterfaceDriver()

OSStatus USBExpertRemoveInterfaceDriver ( USBDeviceRef  ref)

USBExpertRemoveInterfaceDriver()

Availability:

Non-Carbon CFM: in USBServicesLib 1.0 and later
Carbon Lib: not available
Mac OS X: not available

◆ USBExpertSetDevicePowerStatus()

OSStatus USBExpertSetDevicePowerStatus ( USBDeviceRef  ref,
UInt32  reserved1,
UInt32  reserved2,
UInt32  powerStatus,
UInt32  busPowerAvailable,
UInt32  busPowerNeeded 
)

USBExpertSetDevicePowerStatus()

Availability:

Non-Carbon CFM: in USBServicesLib 1.0 and later
Carbon Lib: not available
Mac OS X: not available

◆ USBExpertSetStatusLevel()

void USBExpertSetStatusLevel ( UInt32  level)

USBExpertSetStatusLevel()

Availability:

Non-Carbon CFM: in USBServicesLib 1.3 and later
Carbon Lib: not available
Mac OS X: not available

◆ USBExpertStatus()

OSStatus USBExpertStatus ( USBDeviceRef  ref,
void *  pointer,
UInt32  value 
)

USBExpertStatus()

Availability:

Non-Carbon CFM: in USBServicesLib 1.0 and later
Carbon Lib: not available
Mac OS X: not available

◆ USBExpertStatusLevel()

OSStatus USBExpertStatusLevel ( UInt32  level,
USBDeviceRef  ref,
StringPtr  status,
UInt32  value 
)

USBExpertStatusLevel()

Availability:

Non-Carbon CFM: in USBServicesLib 1.2 and later
Carbon Lib: not available
Mac OS X: not available

◆ USBFindNextAssociatedDescriptor()

OSStatus USBFindNextAssociatedDescriptor ( USBPB pb)

USBFindNextAssociatedDescriptor()

Availability:

Non-Carbon CFM: in USBServicesLib 1.0 and later
Carbon Lib: not available
Mac OS X: not available

◆ USBFindNextEndpointDescriptorImmediate()

OSStatus USBFindNextEndpointDescriptorImmediate ( USBPB pb)

USBFindNextEndpointDescriptorImmediate()

Availability:

Non-Carbon CFM: in USBServicesLib 1.0 and later
Carbon Lib: not available
Mac OS X: not available

◆ USBFindNextInterface()

OSStatus USBFindNextInterface ( USBPB pb)

USBFindNextInterface()

Availability:

Non-Carbon CFM: in USBServicesLib 1.0 and later
Carbon Lib: not available
Mac OS X: not available

◆ USBFindNextInterfaceDescriptorImmediate()

OSStatus USBFindNextInterfaceDescriptorImmediate ( USBPB pb)

USBFindNextInterfaceDescriptorImmediate()

Availability:

Non-Carbon CFM: in USBServicesLib 1.0 and later
Carbon Lib: not available
Mac OS X: not available

◆ USBFindNextPipe()

OSStatus USBFindNextPipe ( USBPB pb)

USBFindNextPipe()

Availability:

Non-Carbon CFM: in USBServicesLib 1.0 and later
Carbon Lib: not available
Mac OS X: not available

◆ USBGetBandwidthAvailableByReference()

OSStatus USBGetBandwidthAvailableByReference ( USBReference  ref,
UInt32 *  avail 
)

USBGetBandwidthAvailableByReference()

Availability:

Non-Carbon CFM: in USBServicesLib 1.4 and later
Carbon Lib: not available
Mac OS X: not available

◆ USBGetConfigurationDescriptor()

OSStatus USBGetConfigurationDescriptor ( USBPB pb)

USBGetConfigurationDescriptor()

Availability:

Non-Carbon CFM: in USBServicesLib 1.0 and later
Carbon Lib: not available
Mac OS X: not available

◆ USBGetDeviceDescriptor()

OSStatus USBGetDeviceDescriptor ( USBDeviceRef *  deviceRef,
USBDeviceDescriptor deviceDescriptor,
UInt32  size 
)

USBGetDeviceDescriptor()

Availability:

Non-Carbon CFM: in USBManagerLib 1.0 and later
Carbon Lib: not available
Mac OS X: not available

◆ USBGetDriverConnectionID()

OSStatus USBGetDriverConnectionID ( USBDeviceRef *  deviceRef,
CFragConnectionID *  connID 
)

USBGetDriverConnectionID()

Availability:

Non-Carbon CFM: in USBManagerLib 1.0 and later
Carbon Lib: not available
Mac OS X: not available

◆ USBGetFrameNumberImmediate()

OSStatus USBGetFrameNumberImmediate ( USBPB pb)

USBGetFrameNumberImmediate()

Availability:

Non-Carbon CFM: in USBServicesLib 1.0 and later
Carbon Lib: not available
Mac OS X: not available

◆ USBGetFullConfigurationDescriptor()

OSStatus USBGetFullConfigurationDescriptor ( USBPB pb)

USBGetFullConfigurationDescriptor()

Availability:

Non-Carbon CFM: in USBServicesLib 1.0 and later
Carbon Lib: not available
Mac OS X: not available

◆ USBGetInterfaceDescriptor()

OSStatus USBGetInterfaceDescriptor ( USBInterfaceRef *  interfaceRef,
USBInterfaceDescriptor interfaceDescriptor,
UInt32  size 
)

USBGetInterfaceDescriptor()

Availability:

Non-Carbon CFM: in USBManagerLib 1.0 and later
Carbon Lib: not available
Mac OS X: not available

◆ USBGetNextDeviceByClass()

OSStatus USBGetNextDeviceByClass ( USBDeviceRef *  deviceRef,
CFragConnectionID *  connID,
UInt16  theClass,
UInt16  theSubClass,
UInt16  theProtocol 
)

USBGetNextDeviceByClass()

Availability:

Non-Carbon CFM: in USBManagerLib 1.0 and later
Carbon Lib: not available
Mac OS X: not available

◆ USBGetPipeStatusByReference()

OSStatus USBGetPipeStatusByReference ( USBReference  ref,
USBPipeState *  state 
)

USBGetPipeStatusByReference()

Availability:

Non-Carbon CFM: in USBServicesLib 1.0 and later
Carbon Lib: not available
Mac OS X: not available

◆ USBGetStringDescriptor()

OSStatus USBGetStringDescriptor ( USBPB pb)

USBGetStringDescriptor()

Availability:

Non-Carbon CFM: in USBServicesLib 1.0 and later
Carbon Lib: not available
Mac OS X: not available

◆ USBGetVersion()

UInt32 USBGetVersion ( void  )

USBGetVersion()

Availability:

Non-Carbon CFM: in USBServicesLib 1.3 and later
Carbon Lib: not available
Mac OS X: not available

◆ USBHIDControlDevice()

OSStatus USBHIDControlDevice ( UInt32  theControlSelector,
void *  theControlData 
)

USBHIDControlDevice()

Availability:

Non-Carbon CFM: not available
Carbon Lib: not available
Mac OS X: not available

◆ USBHIDEnterPolledMode()

OSStatus USBHIDEnterPolledMode ( void  )

USBHIDEnterPolledMode()

Availability:

Non-Carbon CFM: not available
Carbon Lib: not available
Mac OS X: not available

◆ USBHIDExitPolledMode()

OSStatus USBHIDExitPolledMode ( void  )

USBHIDExitPolledMode()

Availability:

Non-Carbon CFM: not available
Carbon Lib: not available
Mac OS X: not available

◆ USBHIDGetDeviceInfo()

OSStatus USBHIDGetDeviceInfo ( UInt32  theInfoSelector,
void *  theInfo 
)

USBHIDGetDeviceInfo()

Availability:

Non-Carbon CFM: not available
Carbon Lib: not available
Mac OS X: not available

◆ USBHIDInstallInterrupt()

OSStatus USBHIDInstallInterrupt ( HIDInterruptProcPtr  HIDInterruptFunction,
UInt32  refcon 
)

USBHIDInstallInterrupt()

Availability:

Non-Carbon CFM: not available
Carbon Lib: not available
Mac OS X: not available

◆ USBHIDInstallNotification()

OSStatus USBHIDInstallNotification ( HIDNotificationProcPtr  HIDNotificationFunction,
UInt32  refcon 
)

USBHIDInstallNotification()

Availability:

Non-Carbon CFM: not available
Carbon Lib: not available
Mac OS X: not available

◆ USBHIDPollDevice()

OSStatus USBHIDPollDevice ( void  )

USBHIDPollDevice()

Availability:

Non-Carbon CFM: not available
Carbon Lib: not available
Mac OS X: not available

◆ USBHubAddDevice()

OSStatus USBHubAddDevice ( USBPB pb)

USBHubAddDevice()

Availability:

Non-Carbon CFM: in USBServicesLib 1.0 and later
Carbon Lib: not available
Mac OS X: not available

◆ USBHubConfigurePipeZero()

OSStatus USBHubConfigurePipeZero ( USBPB pb)

USBHubConfigurePipeZero()

Availability:

Non-Carbon CFM: in USBServicesLib 1.0 and later
Carbon Lib: not available
Mac OS X: not available

◆ USBHubDeviceRemoved()

OSStatus USBHubDeviceRemoved ( USBPB pb)

USBHubDeviceRemoved()

Availability:

Non-Carbon CFM: in USBServicesLib 1.0 and later
Carbon Lib: not available
Mac OS X: not available

◆ USBHubSetAddress()

OSStatus USBHubSetAddress ( USBPB pb)

USBHubSetAddress()

Availability:

Non-Carbon CFM: in USBServicesLib 1.0 and later
Carbon Lib: not available
Mac OS X: not available

◆ USBInstallDeviceNotification()

void USBInstallDeviceNotification ( USBDeviceNotificationParameterBlock pb)

USBInstallDeviceNotification()

Availability:

Non-Carbon CFM: in USBManagerLib 1.0 and later
Carbon Lib: not available
Mac OS X: not available

◆ USBIntRead()

OSStatus USBIntRead ( USBPB pb)

USBIntRead()

Availability:

Non-Carbon CFM: in USBServicesLib 1.0 and later
Carbon Lib: not available
Mac OS X: not available

◆ USBIntWrite()

OSStatus USBIntWrite ( USBPB pb)

USBIntWrite()

Availability:

Non-Carbon CFM: in USBServicesLib 1.2 and later
Carbon Lib: not available
Mac OS X: not available

◆ USBIsocRead()

OSStatus USBIsocRead ( USBPB pb)

USBIsocRead()

Availability:

Non-Carbon CFM: in USBServicesLib 1.1 and later
Carbon Lib: not available
Mac OS X: not available

◆ USBIsocWrite()

OSStatus USBIsocWrite ( USBPB pb)

USBIsocWrite()

Availability:

Non-Carbon CFM: in USBServicesLib 1.1 and later
Carbon Lib: not available
Mac OS X: not available

◆ USBMakeBMRequestType()

UInt8 USBMakeBMRequestType ( UInt8  direction,
UInt8  reqtype,
UInt8  recipient 
)

USBMakeBMRequestType()

Availability:

Non-Carbon CFM: in USBServicesLib 1.0 and later
Carbon Lib: not available
Mac OS X: not available

◆ USBNewInterfaceRef()

OSStatus USBNewInterfaceRef ( USBPB pb)

USBNewInterfaceRef()

Availability:

Non-Carbon CFM: in USBServicesLib 1.0 and later
Carbon Lib: not available
Mac OS X: not available

◆ USBOpenDevice()

OSStatus USBOpenDevice ( USBPB pb)

USBOpenDevice()

Availability:

Non-Carbon CFM: in USBServicesLib 1.0 and later
Carbon Lib: not available
Mac OS X: not available

◆ USBPortStatus()

OSStatus USBPortStatus ( USBPB pb)

USBPortStatus()

Availability:

Non-Carbon CFM: in USBServicesLib 1.4 and later
Carbon Lib: not available
Mac OS X: not available

◆ USBReferenceToRegEntry()

OSStatus USBReferenceToRegEntry ( RegEntryID parentEntry,
USBDeviceRef  parentDeviceRef 
)

USBReferenceToRegEntry()

Availability:

Non-Carbon CFM: in USBManagerLib 1.4 and later
Carbon Lib: not available
Mac OS X: not available

◆ USBRemoveDeviceNotification()

OSStatus USBRemoveDeviceNotification ( UInt32  token)

USBRemoveDeviceNotification()

Availability:

Non-Carbon CFM: in USBManagerLib 1.0 and later
Carbon Lib: not available
Mac OS X: not available

◆ USBResetDevice()

OSStatus USBResetDevice ( USBPB pb)

USBResetDevice()

Availability:

Non-Carbon CFM: in USBServicesLib 1.1 and later
Carbon Lib: not available
Mac OS X: not available

◆ USBResetPipeByReference()

OSStatus USBResetPipeByReference ( USBReference  ref)

USBResetPipeByReference()

Availability:

Non-Carbon CFM: in USBServicesLib 1.0 and later
Carbon Lib: not available
Mac OS X: not available

◆ USBResumeDeviceByReference()

OSStatus USBResumeDeviceByReference ( USBReference  refIn)

USBResumeDeviceByReference()

Availability:

Non-Carbon CFM: in USBServicesLib 1.3 and later
Carbon Lib: not available
Mac OS X: not available

◆ USBSAbortQueuesByReference()

OSStatus USBSAbortQueuesByReference ( USBReference  ref)

USBSAbortQueuesByReference()

Availability:

Non-Carbon CFM: in USBServicesLib 1.3 and later
Carbon Lib: not available
Mac OS X: not available

◆ USBSetConfiguration()

OSStatus USBSetConfiguration ( USBPB pb)

USBSetConfiguration()

Availability:

Non-Carbon CFM: in USBServicesLib 1.1 and later
Carbon Lib: not available
Mac OS X: not available

◆ USBSetPipeActiveByReference()

OSStatus USBSetPipeActiveByReference ( USBPipeRef  ref)

USBSetPipeActiveByReference()

Availability:

Non-Carbon CFM: in USBServicesLib 1.0 and later
Carbon Lib: not available
Mac OS X: not available

◆ USBSetPipeIdleByReference()

OSStatus USBSetPipeIdleByReference ( USBPipeRef  ref)

USBSetPipeIdleByReference()

Availability:

Non-Carbon CFM: in USBServicesLib 1.0 and later
Carbon Lib: not available
Mac OS X: not available

◆ USBSetPipePolicy()

OSStatus USBSetPipePolicy ( USBPB pb)

USBSetPipePolicy()

Availability:

Non-Carbon CFM: in USBServicesLib 1.4 and later
Carbon Lib: not available
Mac OS X: not available

◆ USBSuspendDevice()

OSStatus USBSuspendDevice ( USBPB pb)

USBSuspendDevice()

Availability:

Non-Carbon CFM: in USBServicesLib 1.3 and later
Carbon Lib: not available
Mac OS X: not available

◆ USBToHostLong()

UInt32 USBToHostLong ( UInt32  value)

USBToHostLong()

Availability:

Non-Carbon CFM: in USBServicesLib 1.1 and later
Carbon Lib: not available
Mac OS X: not available

◆ USBToHostWord()

UInt16 USBToHostWord ( UInt16  value)

USBToHostWord()

Availability:

Non-Carbon CFM: in USBServicesLib 1.0 and later
Carbon Lib: not available
Mac OS X: not available