最終更新:2014-06-04 (水) 06:12:18 (3614d)
usb_gadget_ops
Top / usb_gadget_ops
the rest of the api to the controller hardware: device operations, which don't involve endpoints (or i/o).
struct usb_gadget_ops { int (*get_frame)(struct usb_gadget *); int (*wakeup)(struct usb_gadget *); int (*set_selfpowered) (struct usb_gadget *, int is_selfpowered); int (*vbus_session) (struct usb_gadget *, int is_active); int (*vbus_draw) (struct usb_gadget *, unsigned mA); int (*pullup) (struct usb_gadget *, int is_on); int (*ioctl)(struct usb_gadget *, unsigned code, unsigned long param); void (*get_config_params)(struct usb_dcd_config_params *); int (*udc_start)(struct usb_gadget *, struct usb_gadget_driver *); int (*udc_stop)(struct usb_gadget *, struct usb_gadget_driver *); };
使われ所
- usb_gadget
- usb_gadget_ops usb_gadget.ops?
メンバ
usb_gadget_ops.get_frame?
- returns the current frame number if the controller supports retrieval of the USB frame number
- インターフェイス関数
- usb_gadget_frame_number?
usb_gadget_ops.wakeup?
- This callback method sends a wakeup notification to the USB host that the device hardware is connected to.
- インターフェイス関数
- usb_gadget_wakeup?
usb_gadget_ops.set_selfpowered?
- sets the device as self-powered.
- インターフェイス関数
usb_gadget_ops.vbus_session?
- notifies the device controller that VBUS is powered.
- インターフェイス関数
usb_gadget_ops.vbus_draw?
- インターフェイス関数
- usb_gadget_vbus_draw?
usb_gadget_ops.pullup?
- controls the USB device connection to the host through software.
- インターフェイス関数
usb_gadget_ops.ioctl?
- sends an input/output control (IOCTL) if it’s implemented.
usb_gadget_ops.get_config_params?
usb_gadget_ops.udc_start
- インターフェイス関数