INtime SDK Help
UsbGetAsciiString
INtime SDK v7 > About INtime > Networking and I/O > USB > USB calls > UsbGetAsciiString

Get a string descriptor in ASCII format and US/English language ID.

int32_t UsbGetAsciiString( 
int32_t udev,
uint8_t idx,
void *buf,
uint32_t size
);

Parameters

udev
Device handle from UsbOpenDevice.
idx
Index value of the string to obtain.
buf 
Pointer to a buffer to receive the string.
size 
Size in bytes of the destination buffer. Strings are at most 255 bytes long.  

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.
USB_ERR_INVAL The value of the idx parameter is not a valid index.

Requirements

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