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

Get the status of a device.

int32_t UsbGetDeviceStatus( 
int32_t udev,
uint16_t *devsts
);

Parameters

udev
Device handle from UsbOpenDevice.
devsts
Pointer to a variable which receives the device status value. A value of zero indicates a good status. Other values indicate certain error statuses:
UDS_SELF_POWERED - device is self-powered (consumes no current from the bus)
UDS_REMOTE_WAKEUP - device has the resume signaling feature enabled

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