Google is committed to advancing racial equity for Black communities. See how.

fuchsia.hardware.usb.dci

PROTOCOLS

UsbDci

Defined in fuchsia.hardware.usb.dci/usb-dci.fidl

CancelAll

Cancels all transactions currently queued on the specified endpoint.

Request

NameType
ep_address uint8

Response

NameType
s zx/status

ConfigEp

Configures an endpoint based on provided descriptors.

Request

NameType
ep_desc fuchsia.hardware.usb.descriptor/UsbEndpointDescriptor
ss_comp_desc fuchsia.hardware.usb.descriptor/UsbSsEpCompDescriptor

Response

NameType
s zx/status

DisableEp

Disables the specified endpoint.

Request

NameType
ep_address uint8

Response

NameType
s zx/status

EpClearStall

Clears a stall condition for the specified endpoint.

Request

NameType
ep_address uint8

Response

NameType
s zx/status

EpSetStall

Stalls the specified endpoint.

Request

NameType
ep_address uint8

Response

NameType
s zx/status

GetRequestSize

Returns the size needed for a |usb_request_t|, including private storage needed by the HCI driver.

Request

NameType

Response

NameType
size uint64

RequestQueue

Queues a USB request with the DCI driver.

Request

NameType
usb_request fuchsia.hardware.usb.request/UsbRequest
complete_cb fuchsia.hardware.usb.request/UsbRequestCompleteCallback

Response

NameType

SetInterface

Registers callback interface with the DCI driver.

Request

NameType
interface UsbDciInterface

Response

NameType
s zx/status

UsbDciInterface

Defined in fuchsia.hardware.usb.dci/usb-dci.fidl

Interface for use by the DCI controller to call into the USB peripheral driver.

Control

Callback for handling ep0 control requests.

Request

NameType
setup fuchsia.hardware.usb.descriptor/UsbSetup
write vector<uint8>

Response

NameType
status zx/status
read vector<uint8>

SetConnected

Notifies change in USB connected state.

Request

NameType
connected bool

Response

NameType

SetSpeed

Notifies current USB speed..

Request

NameType
speed fuchsia.hardware.usb.descriptor/UsbSpeed

Response

NameType

STRUCTS