IOUSBGetEndpointDirection
Extracts the direction of an endpoint from an endpoint descriptor.
Declaration
uint8_t IOUSBGetEndpointDirection(const IOUSBEndpointDescriptor *descriptor);Parameters
- descriptor:
The descriptor to parse.
Return Value
The found direction.
Discussion
This method parses an endpoint descriptor to determine its transfer direction.
See Also
Endpoint Descriptors
IOUSBGetNextEndpointDescriptorIOUSBGetEndpointAddressIOUSBGetEndpointBurstSizeIOUSBGetEndpointIntervalEncodedMicroframesIOUSBGetEndpointIntervalFramesIOUSBGetEndpointIntervalMicroframesIOUSBGetEndpointMaxPacketSizeIOUSBGetEndpointMaxStreamsIOUSBGetEndpointMaxStreamsEncodedIOUSBGetEndpointMultIOUSBGetEndpointNumberIOUSBGetEndpointType