Contents

IOUSBGetEndpointAddress

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

Declaration

uint8_t IOUSBGetEndpointAddress(const IOUSBEndpointDescriptor *descriptor);

Parameters

  • descriptor:

    The descriptor to parse.

Return Value

An unsigned int representing the direction and endpoint number.

Discussion

This method parses an endpoint descriptor to determine its address.

See Also

Endpoint Descriptors