INtime SDK Help
UsbGetEndPointStatus
INtime SDK v6 > About INtime > Networking and I/O > USB > USB calls > UsbGetEndPointStatus

Get the status of an endpoint.

int32_t UsbGetEndpointStatus( 
int32_t udev,
uint8_t ep,
uint16_t *epsts
);

Parameters

udev
Device handle from UsbOpenDevice.
ep

Value describing the endpoint number, and transfer direction. The endpoint value is the bEndpointAddress field from the usbEndpointDescriptor structure.

epsts
Pointer to a variable which received the endpoint status value. A value of zero indicates a good status. Other values indicate certain error statuses:
UES_STALL  endpoint is stalled

Return Values

USB_ERR_NORMAL_COMPLETION Success. The operation was completed.
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/usbif3.h usbif3.h usbif3.lib