# SerialOpenOptions

`import { SerialOpenOptions } from "destack:device/binding";`

Serial port open options.

```ds title="SerialOpenOptions"
export struct SerialOpenOptions {
    config: SerialConfig;
    flags: SerialOpenFlags;
    readBufferBytes: uint32;
    writeBufferBytes: uint32;
}
```

[language/library/src/device/binding/serial.ds:108:117](https://github.com/destack-sh/destack/blob/main/language/library/src/device/binding/serial.ds#L108-L117)

## Members

### `config: SerialConfig`

Serial line configuration to apply before use.

### `flags: SerialOpenFlags`

Open behavior flags.

### `readBufferBytes: uint32`

Preferred inbound host buffer size in bytes.

### `writeBufferBytes: uint32`

Preferred outbound host buffer size in bytes.
