code update
[adaptation/devices/nfc-plugin-nxp.git] / src / phLibNfcStatus.h
1 /*\r
2  * Copyright (C) 2010 NXP Semiconductors\r
3  *\r
4  * Licensed under the Apache License, Version 2.0 (the "License");\r
5  * you may not use this file except in compliance with the License.\r
6  * You may obtain a copy of the License at\r
7  *\r
8  *      http://www.apache.org/licenses/LICENSE-2.0\r
9  *\r
10  * Unless required by applicable law or agreed to in writing, software\r
11  * distributed under the License is distributed on an "AS IS" BASIS,\r
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
13  * See the License for the specific language governing permissions and\r
14  * limitations under the License.\r
15  */\r
16 \r
17 /**\r
18  * \file  phLibNfcStatus.h\r
19  * \brief NFC Status Values - Function Return Codes\r
20  *\r
21  * Project: NFC MW / HAL\r
22  *\r
23  * $Date: Thu Feb 25 19:16:41 2010 $\r
24  * $Author: ing07385 $\r
25  * $Revision: 1.24 $\r
26  * $Aliases: NFC_FRI1.1_WK1008_SDK,NFC_FRI1.1_WK1007_R33_4,NFC_FRI1.1_WK1007_SDK,NFC_FRI1.1_WK1014_SDK,NFC_FRI1.1_WK1017_PREP1,NFC_FRI1.1_WK1017_R34_1,NFC_FRI1.1_WK1017_R34_2,NFC_FRI1.1_WK1019_SDK,NFC_FRI1.1_WK1024_SDK $\r
27  *\r
28  */\r
29 #ifndef PHLIBNFCSTATUS_H /* */\r
30 #define PHLIBNFCSTATUS_H/* */\r
31 \r
32 #include <phNfcStatus.h>\r
33 \r
34 #define LLCP_CHANGES\r
35 #define LLCP_TRANSACT_CHANGES\r
36 \r
37 #ifdef LLCP_TRANSACT_CHANGES\r
38 /* These two macros are defined due to non availibity of the below macros in header files\r
39 #define PHFRINFC_LLCP_STATE_RESET_INIT               0   // \internal Initial state\r
40 #define PHFRINFC_LLCP_STATE_CHECKED                  1   // \internal The tag has been checked for LLCP compliance\r
41 */\r
42 #define LLCP_STATE_RESET_INIT                       0x00U\r
43 #define LLCP_STATE_CHECKED                          0x01U\r
44 \r
45 \r
46 #endif /* #ifdef LLCP_TRANSACT_CHANGES */\r
47 #define LIB_NFC_VERSION_SET(v,major,minor,patch,build) ((v) = \\r
48                                     ( ((major) << 24) & 0xFF000000 ) | \\r
49                                     ( ((minor) << 16) & 0x00FF0000 ) | \\r
50                                     ( ((patch) << 8) & 0x0000FF00 ) | \\r
51                                     ( (build) & 0x000000FF ) )\r
52 \r
53 #define NFCSTATUS_SHUTDOWN                  (0x0091)\r
54 #define NFCSTATUS_TARGET_LOST               (0x0092)\r
55 #define NFCSTATUS_REJECTED                  (0x0093)\r
56 #define NFCSTATUS_TARGET_NOT_CONNECTED      (0x0094) \r
57 #define NFCSTATUS_INVALID_HANDLE            (0x0095)\r
58 #define NFCSTATUS_ABORTED                   (0x0096)\r
59 #define NFCSTATUS_COMMAND_NOT_SUPPORTED     (0x0097)\r
60 #define NFCSTATUS_NON_NDEF_COMPLIANT        (0x0098)\r
61 #define NFCSTATUS_OK                        (0x0000)\r
62 \r
63 #ifndef NFCSTATUS_NOT_ENOUGH_MEMORY\r
64 #define NFCSTATUS_NOT_ENOUGH_MEMORY         (0x001F)\r
65 #endif\r
66 \r
67 \r
68 #endif /* PHNFCSTATUS_H */\r
69 \r
70 \r
71 \r