USB_EPNUM_TO_EP_DESC

Section: ()
Updated: 06 October 2005
Index Return to Main Contents

 

NAME

usb_epnum_to_ep_desc - get the endpoint object with a given endpoint number  

SYNOPSIS

"SYNOPSIS"

struct usb_endpoint_descriptor * usb_epnum_to_ep_desc (struct usb_device * dev, unsigned epnum);  

ARGUMENTS

dev
the device whose current configuration+altsettings is considered
epnum
the desired endpoint, masked with USB_DIR_IN as appropriate.
 

DESCRIPTION

This walks the device descriptor for the currently active configuration, and returns a pointer to the endpoint with that particular endpoint number, or null.

Note that interface descriptors are not required to list endpoint numbers in any standardized order, so that it would be wrong to assume that ep2in precedes either ep5in, ep2out, or even ep1out. This routine helps device drivers avoid such mistakes.


 

Index

NAME
SYNOPSIS
ARGUMENTS
DESCRIPTION

This document was created by man2html, using the manual pages.
Time: 05:31:02 GMT, October 06, 2005