IOUSBGetEndpointNumber
Extracts the number of an endpoint from an endpoint descriptor.
Declaration
uint8_t IOUSBGetEndpointNumber(const IOUSBEndpointDescriptor *descriptor);Parameters
- descriptor:
The descriptor to parse.
Return Value
An unsigned integer that represents an endpoint number.
Discussion
This method parses an endpoint descriptor to determine its number, excluding direction.
See Also
Endpoint Descriptors
IOUSBGetNextEndpointDescriptorIOUSBGetEndpointAddressIOUSBGetEndpointBurstSizeIOUSBGetEndpointDirectionIOUSBGetEndpointIntervalEncodedMicroframesIOUSBGetEndpointIntervalFramesIOUSBGetEndpointIntervalMicroframesIOUSBGetEndpointMaxPacketSizeIOUSBGetEndpointMaxStreamsIOUSBGetEndpointMaxStreamsEncodedIOUSBGetEndpointMultIOUSBGetEndpointType