![]() |
![]() |
![]() |
![]() |
![]() |
This version of this document is no longer maintained. For the latest documentation, see http://www.qnx.com/developers/docs. |
Get the endpoint descriptor for a specific endpoint setting
#include <sys/usbdi.h>
usbd_endpoint_descriptor_t
*usbd_endpoint_descriptor(
struct usbd_device *device,
_uint8 config,
_uint8 iface,
_uint8 alt,
_uint8 endpoint,
struct usbd_desc_node **node );
libusbdi
The usbd_endpoint_descriptor() function lets you obtain the endpoint descriptor for a specific endpoint on a configuration/interface.
The endpoint_descriptor_t structure looks like this:
typedef struct usbd_endpoint_descriptor {
_uint8 bLength;
_uint8 bDescriptorType;
_uint8 bEndpointAddress;
_uint8 bmAttributes;
_uint16 wMaxPacketSize;
_uint8 bInterval;
} usbd_endpoint_descriptor_t;
A pointer to usbd_endpoint_descriptor_t on success, or NULL on error.
| Safety: | |
|---|---|
| Cancellation point | No |
| Interrupt handler | No |
| Signal handler | No |
| Thread | Yes |
usbd_args_lookup(), usbd_configuration_descriptor(), usbd_device_lookup(), usbd_device_extra(), usbd_device_descriptor(), usbd_hcd_info(), usbd_hub_descriptor(), usbd_interface_descriptor(), usbd_languages_descriptor(), usbd_parse_descriptors(), usbd_string(), usbd_urb_status()
![]() |
![]() |
![]() |
![]() |