Jump to main content

##

# 3.2.4.37 USB_HOST_STRING_REQUEST_COMPLETE_CALLBACK Type

## C

    typedef void (* USB_HOST_STRING_REQUEST_COMPLETE_CALLBACK)(USB_HOST_REQUEST_HANDLE requestHandle, size_t size, uintptr_t context);

## Summary

USB Host Device String Descriptor Request Complete Callback Function Type

This data type defines the required function signature of the USB Host Device String Descriptor Request Complete Callback Function. The application must specify a pointer to a function who's function signature (parameter and return value types) matches the type specified by this function pointer in order to a call backs from the Host Layer when the USB_HOST_DeviceStringDescriptorGet() function has completed its operation. The description of the callback function parameters is given here.

requestHandle - a handle that is unique to this request. This will match the handle that was returned by the USB_HOST_DeviceStringDescriptorGet() function.

size - size of the returned string descriptor. If the string descriptor could not be obtained, the size will be zero.

context - Value identifying the context of the application that was registered along with the event handling function.

## Remarks

None.