class FakeUsbCdcAcmFunction

Defined at line 32 of file ../../src/devices/serial/drivers/usb-cdc-acm/usb-cdc-acm-function.cc

Acts as a fake USB device for CDC-ACM serial tests. Stores a single write's worth of data and

echos it back on the next read, unless the write is exactly a single '0' byte, in which case

the next read will be an empty response.

Public Methods

void FakeUsbCdcAcmFunction (fdf::DriverStartArgs start_args, fdf::UnownedSynchronizedDispatcher dispatcher)

Defined at line 36 of file ../../src/devices/serial/drivers/usb-cdc-acm/usb-cdc-acm-function.cc

zx::result<> Start ()

Defined at line 192 of file ../../src/devices/serial/drivers/usb-cdc-acm/usb-cdc-acm-function.cc

void Control (ControlRequest & request, ControlCompleter::Sync & completer)

UsbFunctionInterface:

Defined at line 77 of file ../../src/devices/serial/drivers/usb-cdc-acm/usb-cdc-acm-function.cc

void SetConfigured (SetConfiguredRequest & request, SetConfiguredCompleter::Sync & completer)

Defined at line 82 of file ../../src/devices/serial/drivers/usb-cdc-acm/usb-cdc-acm-function.cc

void SetInterface (SetInterfaceRequest & request, SetInterfaceCompleter::Sync & completer)

Defined at line 127 of file ../../src/devices/serial/drivers/usb-cdc-acm/usb-cdc-acm-function.cc

void handle_unknown_method (fidl::UnknownMethodMetadata<fuchsia_hardware_usb_function::UsbFunctionInterface> metadata, fidl::UnknownMethodCompleter::Sync & completer)

Defined at line 132 of file ../../src/devices/serial/drivers/usb-cdc-acm/usb-cdc-acm-function.cc