IOUSBGetEndpointDirection(_:)
Obtains the direction of an endpoint from an endpoint descriptor.
Declaration
func IOUSBGetEndpointDirection(_ descriptor: UnsafePointer<IOUSBEndpointDescriptor>!) -> UInt8Parameters
- descriptor:
An endpoint descriptor to parse. Control endpoints return Kiousbendpointdirectionunknown.
Return Value
The endpoint descriptor indicating the direction.
Discussion
This method parses an endpoint descriptor to determine its transfer direction.
See Also
Endpoint Descriptor Parsing
IOUSBGetNextEndpointDescriptor(_:_:_:)IOUSBGetEndpointAddress(_:)IOUSBGetEndpointNumber(_:)IOUSBGetEndpointType(_:)IOUSBGetEndpointMaxPacketSize(_:_:)IOUSBGetEndpointIntervalEncodedMicroframes(_:_:)IOUSBGetEndpointIntervalMicroframes(_:_:)IOUSBGetEndpointIntervalFrames(_:_:)IOUSBGetEndpointMaxStreamsEncoded(_:_:_:)IOUSBGetEndpointMaxStreams(_:_:_:)