Contents

GetEndpointProperties

Returns the properties of an endpoint, possibly in an alternate interface.

Declaration

virtual IOReturn GetEndpointProperties(
 UInt8alternateSetting,
 UInt8endpointNumber,
 UInt8direction,
 UInt8 *transferType,
 UInt16 *maxPacketSize,
 UInt8 *interval);

Parameters

  • alternateSetting:

    specifies the desired alternate setting

  • endpointNumber:

    specifies the endpoint number

  • direction:

    specifies the direction (kUSBIn, kUSBOut)

  • transferType:

    a pointer to hold the transfer type (kUSBControl, kUSBBulk, etc.) of the endpoint if found.

  • maxPacketSize:

    a pointer to hold the maxPacketSize in the endpoint descriptor.

  • interval:

    a pointer to hold the interval value in the endpoint descriptor.

Return Value

returns kIOReturnSuccess if the endpoint is found, and kIOUSBEndpointNotFound if it is not.

See Also

Miscellaneous