Description
Close a device by freeing any allocated resources and by releasing any created handles.
Files
usbdev_api.c
Prototype
Arguments
dev
General handle to device.
p_err
Pointer to variable that will receive the return error code from this function:
ERROR_SUCCESS
ERROR_INVALID_HANDLE
Returned Value
None.
Callers
Application.
Notes / Warnings
USBDev_Close()
closes any remaining open pipes. The open pipes are usually closed from the application by calling the function USBDev_PipeClose
.