Wrap an already-selected USBDevice.
CH340/CH341 USB device.
Private controlPrivate currentPrivate currentPrivate endpointPrivate endpointPrivate interfacePrivate readPrivate usbCH340/CH341 USB device.
Use with Transport, which is typed against the Web Serial SerialPort.
This adapter as a SerialPort-like object.
Private claimPrivate createOpen the device, claim the vendor bulk interface, and initialize CH340 UART.
Serial options. Only baudRate is applied on CH340.
Private vendorStatic requestPrompt for a WCH USB-serial device (VID 0x1a86). CH343 (PID 0x55d3) is rejected.
Adapter for the selected device.
SerialPort-compatible WebUSB adapter for WCH CH340/CH341. Implements in-place baud changes with vendor request 0x9A so Transport does not need to close and reopen the port.