1USB_GADGET_VBUS_CONN(9)     Kernel Mode Gadget API     USB_GADGET_VBUS_CONN(9)
2
3
4

NAME

6       usb_gadget_vbus_connect - Notify controller that VBUS is powered
7

SYNOPSIS

9       int usb_gadget_vbus_connect(struct usb_gadget * gadget);
10

ARGUMENTS

12       gadget
13           The device which now has VBUS power.
14

CONTEXT

16       can sleep
17

DESCRIPTION

19       This call is used by a driver for an external transceiver (or GPIO)
20       that detects a VBUS power session starting. Common responses include
21       resuming the controller, activating the D+ (or D-) pullup to let the
22       host detect that a USB device is attached, and starting to draw power
23       (8mA or possibly more, especially after SET_CONFIGURATION).
24
25       Returns zero on success, else negative errno.
26

AUTHOR

28       David Brownell <dbrownell@users.sourceforge.net>
29           Author.
30
32Kernel Hackers Manual 3.10         June 2019           USB_GADGET_VBUS_CONN(9)
Impressum