forked from google/u2f-ref-code
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdevicestatuscodes.js
65 lines (55 loc) · 1.17 KB
/
devicestatuscodes.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
// Copyright 2014 Google Inc. All rights reserved
//
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file or at
// https://developers.google.com/open-source/licenses/bsd
/**
* @fileoverview This file defines the status codes returned by the device.
*/
/**
* Status codes returned by the gnubby device.
* @const
* @enum {number}
* @export
*/
var DeviceStatusCodes = {};
/**
* Device operation succeeded.
* @const
*/
DeviceStatusCodes.OK_STATUS = 0;
/**
* Device operation wrong length status.
* @const
*/
DeviceStatusCodes.WRONG_LENGTH_STATUS = 0x6700;
/**
* Device operation wait touch status.
* @const
*/
DeviceStatusCodes.WAIT_TOUCH_STATUS = 0x6985;
/**
* Device operation invalid data status.
* @const
*/
DeviceStatusCodes.INVALID_DATA_STATUS = 0x6984;
/**
* Device operation wrong data status.
* @const
*/
DeviceStatusCodes.WRONG_DATA_STATUS = 0x6a80;
/**
* Device operation timeout status.
* @const
*/
DeviceStatusCodes.TIMEOUT_STATUS = -5;
/**
* Device operation busy status.
* @const
*/
DeviceStatusCodes.BUSY_STATUS = -6;
/**
* Device removed status.
* @const
*/
DeviceStatusCodes.GONE_STATUS = -8;