IOUSBGetEndpointMaxPacketSize
Extracts the maximum packet size from an endpoint descriptor.
Declaration
uint16_t IOUSBGetEndpointMaxPacketSize(uint32_t usbDeviceSpeed, const IOUSBEndpointDescriptor *descriptor);Parameters
- usbDeviceSpeed:
The operational speed of the device.
- descriptor:
The descriptor to parse.
Return Value
The maximum packet size in bytes.
Discussion
This method parses an endpoint descriptor to determine its maximum packet size, which doesn’t take into account mult or burst factors.
See Also
Endpoint Descriptors
IOUSBGetNextEndpointDescriptorIOUSBGetEndpointAddressIOUSBGetEndpointBurstSizeIOUSBGetEndpointDirectionIOUSBGetEndpointIntervalEncodedMicroframesIOUSBGetEndpointIntervalFramesIOUSBGetEndpointIntervalMicroframesIOUSBGetEndpointMaxStreamsIOUSBGetEndpointMaxStreamsEncodedIOUSBGetEndpointMultIOUSBGetEndpointNumberIOUSBGetEndpointType