| // Copyright 2018 The Chromium Authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| |
| // https://wicg.github.io/serial |
| |
| enum ParityType { |
| "none", |
| "even", |
| "odd", |
| }; |
| |
| enum FlowControlType { |
| "none", |
| "hardware", |
| }; |
| |
| dictionary SerialOptions { |
| required [EnforceRange] unsigned long baudRate; |
| [EnforceRange] octet dataBits = 8; |
| [EnforceRange] octet stopBits = 1; |
| ParityType parity = "none"; |
| [EnforceRange] unsigned long bufferSize = 255; |
| FlowControlType flowControl = "none"; |
| }; |