Contents

IOUSBGetEndpointAddress(_:)

Obtains the direction and number of an endpoint from an endpoint descriptor.

Declaration

func IOUSBGetEndpointAddress(_ descriptor: UnsafePointer<IOUSBEndpointDescriptor>!) -> UInt8

Parameters

  • descriptor:

    An endpoint descriptor to parse.

Return Value

The direction and endpoint number.

Discussion

This method parses an endpoint descriptor to determine its address.

See Also

Endpoint Descriptor Parsing