forked from nanoframework/nanoFramework.IoT.Device
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ErrorCode.cs
151 lines (123 loc) · 3.37 KB
/
ErrorCode.cs
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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
namespace Iot.Device.Pn532
{
/// <summary>
/// All errors that can be returned by the PN532
/// </summary>
public enum ErrorCode
{
/// <summary>
/// None
/// </summary>
None = 0x00,
/// <summary>
/// Timeout
/// </summary>
Timeout = 0x01,
/// <summary>
/// CRC Error
/// </summary>
CRCError = 0x02,
/// <summary>
/// Parity Error
/// </summary>
ParityError = 0x03,
/// <summary>
/// Erroneous Bit Count
/// </summary>
ErroneousBitCount = 0x04,
/// <summary>
/// Framing Error
/// </summary>
FramingError = 0x05,
/// <summary>
/// Abnormal Collision
/// </summary>
AbnormalCollision = 0x06,
/// <summary>
/// Buffer Size Insufficient
/// </summary>
BufferSizeInsufficient = 0x07,
/// <summary>
/// RF Buffer Overflow
/// </summary>
RFBufferOverflow = 0x09,
/// <summary>
/// RF Field Not Switched
/// </summary>
RFFieldNotSwitched = 0x0A,
/// <summary>
/// RF Protocol Error
/// </summary>
RFProtocolError = 0x0B,
/// <summary>
/// Temperature Error
/// </summary>
TemperatureError = 0x0D,
/// <summary>
/// Internal Buffer Overflow
/// </summary>
InternalBufferOverflow = 0x0E,
/// <summary>
/// Invalid Parameter
/// </summary>
InvalidParameter = 0x10,
/// <summary>
/// DEP Protocol Target Mode Not Supported
/// </summary>
DEPProtocolTargetModeNotSupport = 0x12,
/// <summary>
/// DEP Protocol Data Format Not Match
/// </summary>
DEPProtocolDataFormatNotMatch = 0x13,
/// <summary>
/// Mifare Authentication Error
/// </summary>
MifareAuthenticationError = 0x14,
/// <summary>
/// Check Byte Wrong
/// </summary>
CheckByteWrong = 0x23,
/// <summary>
/// DEP Protocol Invalid Device State
/// </summary>
DEPProtocolInvalidDeviceState = 0x25,
/// <summary>
/// Operation Not Allowed
/// </summary>
OperationNotAllowed = 0x26,
/// <summary>
/// Command Not Acceptable
/// </summary>
CommandNotAcceptable = 0x27,
/// <summary>
/// Configured Target Been Released
/// </summary>
ConfiguredTargetBeenReleased = 0x29,
/// <summary>
/// ID Card Does Not Match
/// </summary>
IDCardDoesNotMatch = 0x2A,
/// <summary>
/// Card Disappeared
/// </summary>
CardDisappeared = 0x2B,
/// <summary>
/// Mismatch DEP Passive
/// </summary>
MismatchDEPPassive = 0x2C,
/// <summary>
/// Over Current Detected
/// </summary>
OverCurrentDetected = 0x2D,
/// <summary>
/// NA DMissing
/// </summary>
NADMissing = 0x2E,
/// <summary>
/// Unknown
/// </summary>
Unknown = 0xFF,
}
}