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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
72 bool has_rts = false; | 72 bool has_rts = false; |
73 }; | 73 }; |
74 | 74 |
75 struct DeviceControlSignals { | 75 struct DeviceControlSignals { |
76 bool dcd; | 76 bool dcd; |
77 bool cts; | 77 bool cts; |
78 bool ri; | 78 bool ri; |
79 bool dsr; | 79 bool dsr; |
80 }; | 80 }; |
81 | 81 |
| 82 interface SerialService { |
| 83 GetDevices() => (DeviceInfo[] devices); |
| 84 }; |
| 85 |
82 } | 86 } |
OLD | NEW |