Jump to main content

##

# 3.2.4.7 USB_HOST_BusResume Function

## C

    USB_HOST_RESULT USB_HOST_BusResume(
        USB_HOST_BUS bus
    );

## Summary

The function resumes the bus. All devices on the bus will be receive resume signaling. If bus is specified as USB_HOST_BUS_ALL, all the buses managed by this host will be resumed.

## Precondition

The USB_HOST_BusEnable() function should have been called to enable the bus.

## Parameters

Parameters | Description
bus | The bus to be resume or USB_HOST_BUS_ALL to resume all buses.

## Returns

USB_HOST_RESULT_SUCCESS - if the request was successful or if the bus was already resumed.

USB_HOST_RESULT_BUS_UNKNOWN - the request failed because the bus does not exist in the system.

USB_HOST_RESULT_BUS_NOT_ENABLED - the bus was not enabled. USB_HOST_RESULT_FAILURE - An unknown error occurred.

## Example

    // Resume bus 0
    USB_HOST_BusResume(0);

    // Resume all buses
    USB_HOST_BusSuspend(USB_HOST_BUS_ALL);

## Remarks

None.