DeviceSerialBinding import { DeviceSerialBinding } from "destack:device/binding"; Serial binding family. export interface DeviceSerialBinding { listSerialPorts(): Result; openSerialWatch(): Result; closeSerialWatch(watch: SerialWatchHandle): Result; readSerialWatch(watch: SerialWatchHandle, timeoutNs?: uint64 | undefined): Result; openSerialPort(id: &'a readonly string, options: &'b readonly SerialOpenOptions): Result; closeSerialPort(port: SerialPortHandle): Result; describeSerialPort(port: SerialPortHandle): Result; getSerialConfig(port: SerialPortHandle): Result; setSerialConfig(port: SerialPortHandle, config: &'a readonly SerialConfig): Result; readSerial(port: SerialPortHandle, buffer: &'a [uint8], timeoutNs?: uint64 | undefined): Result; writeSerial(port: SerialPortHandle, bytes: &'a readonly [uint8], timeoutNs?: uint64 | undefined): Result; drainSerial(port: SerialPortHandle): Result; flushSerial(port: SerialPortHandle, buffers: SerialFlushFlags): Result; getSerialSignals(port: SerialPortHandle): Result; setSerialSignals(port: SerialPortHandle, signals: &'a readonly SerialOutputSignals): Result; readSerialEvent(port: SerialPortHandle, timeoutNs?: uint64 | undefined): Result; } language/library/src/device/binding/serial.ds:292:456 Members listSerialPorts(): Result List serial ports. openSerialWatch(): Result Open a serial topology watch. closeSerialWatch(watch: SerialWatchHandle): Result Close a serial topology watch. readSerialWatch(watch: SerialWatchHandle, timeoutNs?: uint64 | undefined): Result Read one serial topology event. openSerialPort(id: &'a readonly string, options: &'b readonly SerialOpenOptions): Result Open a serial port. closeSerialPort(port: SerialPortHandle): Result Close a serial port. describeSerialPort(port: SerialPortHandle): Result Describe a serial port. getSerialConfig(port: SerialPortHandle): Result Read serial port configuration. setSerialConfig(port: SerialPortHandle, config: &'a readonly SerialConfig): Result Update serial port configuration. readSerial(port: SerialPortHandle, buffer: &'a [uint8], timeoutNs?: uint64 | undefined): Result Read bytes from a serial port. writeSerial(port: SerialPortHandle, bytes: &'a readonly [uint8], timeoutNs?: uint64 | undefined): Result Write bytes to a serial port. drainSerial(port: SerialPortHandle): Result Wait for queued serial output to drain. flushSerial(port: SerialPortHandle, buffers: SerialFlushFlags): Result Flush queued serial bytes. getSerialSignals(port: SerialPortHandle): Result Read serial input signals. setSerialSignals(port: SerialPortHandle, signals: &'a readonly SerialOutputSignals): Result Update serial output signals. readSerialEvent(port: SerialPortHandle, timeoutNs?: uint64 | undefined): Result Read one serial port event.