• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
3// found in the LICENSE file.
4
5/**
6 * @fileoverview This file defines the status codes returned by the device.
7 */
8
9var DeviceStatusCodes = {};
10
11/**
12 * Device operation succeeded.
13 * @const
14 */
15DeviceStatusCodes.OK_STATUS = 0;
16
17/**
18 * Device operation wrong length status.
19 * @const
20 */
21DeviceStatusCodes.WRONG_LENGTH_STATUS = 0x6700;
22
23/**
24 * Device operation wait touch status.
25 * @const
26 */
27DeviceStatusCodes.WAIT_TOUCH_STATUS = 0x6985;
28
29/**
30 * Device operation invalid data status.
31 * @const
32 */
33DeviceStatusCodes.INVALID_DATA_STATUS = 0x6984;
34
35/**
36 * Device operation wrong data status.
37 * @const
38 */
39DeviceStatusCodes.WRONG_DATA_STATUS = 0x6a80;
40
41/**
42 * Device operation timeout status.
43 * @const
44 */
45DeviceStatusCodes.TIMEOUT_STATUS = -5;
46
47/**
48 * Device operation busy status.
49 * @const
50 */
51DeviceStatusCodes.BUSY_STATUS = -6;
52
53/**
54 * Device removed status.
55 * @const
56 */
57DeviceStatusCodes.GONE_STATUS = -8;
58