| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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.usb; | 5 module device.usb; |
| 6 | 6 |
| 7 enum OpenDeviceError { | 7 enum OpenDeviceError { |
| 8 // Opening the device succeeded. | 8 // Opening the device succeeded. |
| 9 OK, | 9 OK, |
| 10 | 10 |
| (...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 108 uint16 index; | 108 uint16 index; |
| 109 }; | 109 }; |
| 110 | 110 |
| 111 enum TransferStatus { | 111 enum TransferStatus { |
| 112 // The transfer completed successfully. | 112 // The transfer completed successfully. |
| 113 COMPLETED, | 113 COMPLETED, |
| 114 | 114 |
| 115 // The transfer failed due to a non-specific error. | 115 // The transfer failed due to a non-specific error. |
| 116 ERROR, | 116 ERROR, |
| 117 | 117 |
| 118 // The transfer was not allowed. |
| 119 PERMISSION_DENIED, |
| 120 |
| 118 // The transfer timed out. | 121 // The transfer timed out. |
| 119 TIMEOUT, | 122 TIMEOUT, |
| 120 | 123 |
| 121 // The transfer was cancelled. | 124 // The transfer was cancelled. |
| 122 CANCELLED, | 125 CANCELLED, |
| 123 | 126 |
| 124 // The transfer stalled. | 127 // The transfer stalled. |
| 125 STALLED, | 128 STALLED, |
| 126 | 129 |
| 127 // The transfer failed because the device was disconnected from the host. | 130 // The transfer failed because the device was disconnected from the host. |
| (...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 262 // this transfer. | 265 // this transfer. |
| 263 // | 266 // |
| 264 // |timeout| specifies the request timeout in milliseconds. A timeout of 0 | 267 // |timeout| specifies the request timeout in milliseconds. A timeout of 0 |
| 265 // indicates no timeout: the request will remain pending indefinitely until | 268 // indicates no timeout: the request will remain pending indefinitely until |
| 266 // completed or otherwise terminated. | 269 // completed or otherwise terminated. |
| 267 IsochronousTransferOut(uint8 endpoint_number, | 270 IsochronousTransferOut(uint8 endpoint_number, |
| 268 array<array<uint8>> packets, | 271 array<array<uint8>> packets, |
| 269 uint32 timeout) | 272 uint32 timeout) |
| 270 => (TransferStatus status); | 273 => (TransferStatus status); |
| 271 }; | 274 }; |
| OLD | NEW |