Jump to main content

##

# 3.2.4.10 USB_HOST_DeviceGetNext Function

## C

    USB_HOST_RESULT USB_HOST_DeviceGetNext(
        USB_HOST_DEVICE_INFO * deviceInfo
    );

## Summary

This function returns information of the next device attached on the bus. The USB_HOST_DeviceGetFirst() function should have been called at least once on the deviceInfo object. Then calling this function repeatedly on the deviceInfo object will return information about the next attached device on the bus. When there are no more attached devices to report, the function returns USB_HOST_RESULT_END_OF_DEVICE_LIST.

Calling the USB_HOST_DeviceGetFirst() function on the deviceInfo object after the USB_HOST_DeviceGetNext() function has been called will cause the host to reset the deviceInfo object to point to the first attached device.

## Precondition

The USB_HOST_DeviceGetFirst() function must have been called before calling this function.

## Parameters

Parameters | Description
deviceInfo | pointer to the USB_HOST_DEVICE_INFO object.

## Returns

None.

## Remarks

None.