class UsbBusProtocolClient

Defined at line 194 of file fidling/gen/sdk/banjo/fuchsia.hardware.usb.bus/fuchsia.hardware.usb.bus/banjo/cpp/fuchsia/hardware/usb/bus/cpp/banjo.h

Public Members

static const uint32_t kProtocolId

Public Methods

void UsbBusProtocolClient ()

Defined at line 199 of file fidling/gen/sdk/banjo/fuchsia.hardware.usb.bus/fuchsia.hardware.usb.bus/banjo/cpp/fuchsia/hardware/usb/bus/cpp/banjo.h

void UsbBusProtocolClient (const usb_bus_protocol_t * proto)

Defined at line 201 of file fidling/gen/sdk/banjo/fuchsia.hardware.usb.bus/fuchsia.hardware.usb.bus/banjo/cpp/fuchsia/hardware/usb/bus/cpp/banjo.h

void UsbBusProtocolClient (zx_device_t * parent)

Defined at line 204 of file fidling/gen/sdk/banjo/fuchsia.hardware.usb.bus/fuchsia.hardware.usb.bus/banjo/cpp/fuchsia/hardware/usb/bus/cpp/banjo.h

void UsbBusProtocolClient (zx_device_t * parent, const char * fragment_name)

Defined at line 215 of file fidling/gen/sdk/banjo/fuchsia.hardware.usb.bus/fuchsia.hardware.usb.bus/banjo/cpp/fuchsia/hardware/usb/bus/cpp/banjo.h

zx_status_t CreateFromDevice (zx_device_t * parent, UsbBusProtocolClient * result)

Create a UsbBusProtocolClient from the given parent device + "fragment".

If ZX_OK is returned, the created object will be initialized in |result|.

Defined at line 229 of file fidling/gen/sdk/banjo/fuchsia.hardware.usb.bus/fuchsia.hardware.usb.bus/banjo/cpp/fuchsia/hardware/usb/bus/cpp/banjo.h

zx_status_t CreateFromDevice (zx_device_t * parent, const char * fragment_name, UsbBusProtocolClient * result)

Create a UsbBusProtocolClient from the given parent device.

If ZX_OK is returned, the created object will be initialized in |result|.

Defined at line 244 of file fidling/gen/sdk/banjo/fuchsia.hardware.usb.bus/fuchsia.hardware.usb.bus/banjo/cpp/fuchsia/hardware/usb/bus/cpp/banjo.h

void GetProto (usb_bus_protocol_t * proto)

Defined at line 256 of file fidling/gen/sdk/banjo/fuchsia.hardware.usb.bus/fuchsia.hardware.usb.bus/banjo/cpp/fuchsia/hardware/usb/bus/cpp/banjo.h

bool is_valid ()

Defined at line 260 of file fidling/gen/sdk/banjo/fuchsia.hardware.usb.bus/fuchsia.hardware.usb.bus/banjo/cpp/fuchsia/hardware/usb/bus/cpp/banjo.h

void clear ()

Defined at line 263 of file fidling/gen/sdk/banjo/fuchsia.hardware.usb.bus/fuchsia.hardware.usb.bus/banjo/cpp/fuchsia/hardware/usb/bus/cpp/banjo.h

zx_status_t ConfigureHub (uint64_t hub_device, uint32_t speed, const usb_hub_descriptor_t * desc, bool multi_tt)

Configures a new hub based on its USB hub descriptor.

Defined at line 269 of file fidling/gen/sdk/banjo/fuchsia.hardware.usb.bus/fuchsia.hardware.usb.bus/banjo/cpp/fuchsia/hardware/usb/bus/cpp/banjo.h

zx_status_t DeviceAdded (uint64_t hub_device, uint32_t port, uint32_t speed)

Informs the USB bus that a new device has been added.

Defined at line 274 of file fidling/gen/sdk/banjo/fuchsia.hardware.usb.bus/fuchsia.hardware.usb.bus/banjo/cpp/fuchsia/hardware/usb/bus/cpp/banjo.h

zx_status_t DeviceRemoved (uint64_t hub_device, uint32_t port)

Informs the USB bus that a device has been removed.

Defined at line 279 of file fidling/gen/sdk/banjo/fuchsia.hardware.usb.bus/fuchsia.hardware.usb.bus/banjo/cpp/fuchsia/hardware/usb/bus/cpp/banjo.h

zx_status_t SetHubInterface (uint64_t usb_device, void * hub_ctx, const usb_hub_interface_protocol_ops_t * hub_ops)

Used by USB hub driver to register its USB hub protocol with the USB bus driver.

Defined at line 284 of file fidling/gen/sdk/banjo/fuchsia.hardware.usb.bus/fuchsia.hardware.usb.bus/banjo/cpp/fuchsia/hardware/usb/bus/cpp/banjo.h

void RequestQueue (usb_request_t * usb_request, const usb_request_complete_callback_t * complete_cb)

Queues a USB request with the host stack.

Defined at line 294 of file fidling/gen/sdk/banjo/fuchsia.hardware.usb.bus/fuchsia.hardware.usb.bus/banjo/cpp/fuchsia/hardware/usb/bus/cpp/banjo.h