Interface ChameleonSerialPort<I, O>

interface ChameleonSerialPort<I, O> {
    dfuWriteObject?: ((buf: Buffer, mtu?: number) => Promise<void>);
    isDfu?: (() => boolean);
    isOpen?: (() => boolean);
    readable: null | ReadableStream<I>;
    writable: null | WritableStream<O>;
}

Type Parameters

  • I extends Buffer = Buffer
  • O extends Buffer = Buffer

Properties

dfuWriteObject?: ((buf: Buffer, mtu?: number) => Promise<void>)
isDfu?: (() => boolean)
isOpen?: (() => boolean)
readable: null | ReadableStream<I>
writable: null | WritableStream<O>