IOUSBGetEndpointNumber(_:)
Obtains the number of an endpoint from an endpoint descriptor.
Declaration
func IOUSBGetEndpointNumber(_ descriptor: UnsafePointer<IOUSBEndpointDescriptor>!) -> UInt8Parameters
- descriptor:
An endpoint descriptor to parse.
Return Value
The representing endpoint number.
Discussion
This method parses an endpoint descriptor to determine its number, excluding the endpoint’s data direction.
See Also
Endpoint Descriptor Parsing
IOUSBGetNextEndpointDescriptor(_:_:_:)IOUSBGetEndpointDirection(_:)IOUSBGetEndpointAddress(_:)IOUSBGetEndpointType(_:)IOUSBGetEndpointMaxPacketSize(_:_:)IOUSBGetEndpointIntervalEncodedMicroframes(_:_:)IOUSBGetEndpointIntervalMicroframes(_:_:)IOUSBGetEndpointIntervalFrames(_:_:)IOUSBGetEndpointMaxStreamsEncoded(_:_:_:)IOUSBGetEndpointMaxStreams(_:_:_:)