INtime SDK Help
UsbGetEndpointDescriptor
INtime SDK v7.1 > About INtime > Networking and I/O > USB > USB calls > UsbGetEndpointDescriptor

Shortcut to get a USB endpoint descriptor.


int32_t UsbGetEndpointDescriptor(
int32_t udev,
uint8_t epidx,
struct usbEndpointDescriptor *edesc
);

Parameters

udev
Device handle from UsbOpenDevice.
epidx
Endpoint Index
edesc
Pointer to a endpoint descriptor.  

Return Values

USB_ERR_NORMAL_COMPLETION Success.
USB_ERR_NO_STACK The USB stack is not ready.
USB_ERR_MEMORY Memory could not be allocated for the operation.
USB_ERR_TIMEOUT The device did not respond.

Requirements

Versions Defined in Include Link to
INtime 5.0 intime/rt/include/usbif3h usbif3h usbif3lib