| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 module device.serial; | 5 module device.serial; |
| 6 | 6 |
| 7 struct DeviceInfo { | 7 struct DeviceInfo { |
| 8 string path; | 8 string path; |
| 9 uint16 vendor_id; | 9 uint16 vendor_id; |
| 10 bool has_vendor_id = false; | 10 bool has_vendor_id = false; |
| (...skipping 24 matching lines...) Expand all Loading... |
| 35 }; | 35 }; |
| 36 | 36 |
| 37 enum DataBits { | 37 enum DataBits { |
| 38 NONE, | 38 NONE, |
| 39 SEVEN, | 39 SEVEN, |
| 40 EIGHT, | 40 EIGHT, |
| 41 }; | 41 }; |
| 42 | 42 |
| 43 enum ParityBit { | 43 enum ParityBit { |
| 44 NONE, | 44 NONE, |
| 45 NO, | 45 NO_PARITY, |
| 46 ODD, | 46 ODD, |
| 47 EVEN, | 47 EVEN, |
| 48 }; | 48 }; |
| 49 | 49 |
| 50 enum StopBits { | 50 enum StopBits { |
| 51 NONE, | 51 NONE, |
| 52 ONE, | 52 ONE, |
| 53 TWO, | 53 TWO, |
| 54 }; | 54 }; |
| 55 | 55 |
| (...skipping 20 matching lines...) Expand all Loading... |
| 76 bool rts; | 76 bool rts; |
| 77 bool has_rts = false; | 77 bool has_rts = false; |
| 78 }; | 78 }; |
| 79 | 79 |
| 80 struct DeviceControlSignals { | 80 struct DeviceControlSignals { |
| 81 bool dcd; | 81 bool dcd; |
| 82 bool cts; | 82 bool cts; |
| 83 bool ri; | 83 bool ri; |
| 84 bool dsr; | 84 bool dsr; |
| 85 }; | 85 }; |
| OLD | NEW |