esp-web-tools
Version:
Web tools for ESP devices
7 lines (6 loc) • 448 B
TypeScript
import { type LineConfig, type UsbSerialDriver } from "./driver";
/** SET_LINE_CTL value: data bits in 11:8, parity in 7:4, stop bits in 3:0. */
export declare const cp210xLineControl: (config: LineConfig) => number;
/** SET_MHS value that sets both DTR and RTS to the given levels. */
export declare const cp210xModemControl: (dtr: boolean, rts: boolean) => number;
export declare const createCp210xDriver: (device: USBDevice) => UsbSerialDriver;