---
name: "usb_gadget_vbus_connect"
section: "9"
platform: "linux"
package: "linux-manual-3.16"
version: "3.16.56-1+deb8u1"
release: "Debian 8 (Jessie)"
platforms: ["linux"]
url: "https://new.carta.tech/usb_gadget_vbus_connect"
---

# usb\_gadget\_vbus\_connect(9)

Notify controller that VBUS is powered

## NAME

usb\_gadget\_vbus\_connect - Notify controller that VBUS is powered

## SYNOPSIS

**int usb\_gadget\_vbus\_connect(struct usb\_gadget \*** *gadget***);**

## ARGUMENTS

*gadget*

The device which now has VBUS power.

## CONTEXT

can sleep

## DESCRIPTION

This call is used by a driver for an external transceiver (or GPIO) that detects a VBUS power session starting. Common responses include resuming the controller, activating the D+ (or D-) pullup to let the host detect that a USB device is attached, and starting to draw power (8mA or possibly more, especially after SET\_CONFIGURATION).

Returns zero on success, else negative errno.

## AUTHOR

**David Brownell** \<dbrownell@users.sourceforge.net\>

Author.

## COPYRIGHT
