init(bcdUSB:descriptor:ssCompanionDescriptor:sspCompanionDescriptor:)
Creates a new source descriptor structure.
Declaration
init(bcdUSB: UInt16, descriptor: IOUSBEndpointDescriptor, ssCompanionDescriptor: IOUSBSuperSpeedEndpointCompanionDescriptor, sspCompanionDescriptor: IOUSBSuperSpeedPlusIsochronousEndpointCompanionDescriptor)Parameters
- bcdUSB:
The USB version that the device supports, specified as a binary-coded decimal value.
- descriptor:
A valid endpoint descriptor.
- ssCompanionDescriptor:
The companion descriptor for SuperSpeed devices.
- sspCompanionDescriptor:
The companion descriptor for SuperSpeedPlus devices.
Discussion
The ssCompanionDescriptor and sspCompanionDescriptor descriptors may be necessary for bcdUSB versions 0x0300 and greater, depending on device operating speed and values set in the descriptors. See USB 3.2, 9.5 for more information.