1 /*
2  * Copyright (C) 2010-2014 NXP Semiconductors
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *      http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
17 /*
18  * NFC Component ID Values - Used for Function Return Codes
19  */
20 
21 #ifndef PHNFCCOMPID_H
22 #define PHNFCCOMPID_H
23 
24 /*
25  *  Component IDs
26  *
27  *  IDs for all NFC components. Combined with the Status Code they build the
28  * value (status)
29  *  returned by each function.
30  *
31  *  ID Number Spaces:
32  *  - 01..1F: HAL
33  *  - 20..3F: NFC-MW (Local Device)
34  *  - 40..5F: NFC-MW (Remote Device)
35  *  .
36  *
37  *         The value CID_NFC_NONE does not exist for Component IDs. Do not use
38  * this value except
39  *         for NFCSTATUS_SUCCESS. The enumeration function uses CID_NFC_NONE
40  *         to mark unassigned "References".
41  */
42 /* Unassigned or doesn't apply (see #NFCSTATUS_SUCCESS) */
43 #define CID_NFC_NONE 0x00
44 #define CID_NFC_TML 0x01 /* Transport Mapping Layer */
45 #define CID_NFC_LLC 0x07 /* Logical Link Control Layer */
46 /* NFC Controller(NFCC) Interface Layer */
47 #define CID_NFC_NCI 0x08
48 /* Firmware Download Management Layer */
49 #define CID_NFC_DNLD 0x09
50 #define CID_NFC_HAL 0x10 /* Hardware Abstraction Layer */
51 /* Operating System Abstraction Layer*/
52 #define CID_NFC_OSAL CID_NFC_NONE
53 #define CID_FRI_NFC_OVR_HAL 0x20       /* NFC-Device, HAL-based */
54 #define CID_FRI_NFC_NDEF_RECORD 0x22   /* NDEF Record Tools Library. */
55 #define CID_FRI_NFC_NDEF_MAP 0x23      /* NDEF Mapping. */
56 #define CID_FRI_NFC_NDEF_REGISTRY 0x24 /* NDEF_REGISTRY. */
57 /* Automatic Device Discovery. */
58 #define CID_FRI_NFC_AUTO_DEV_DIS 0x25
59 #define CID_FRI_NFC_NDEF_SMTCRDFMT 0x26 /* Smart Card Formatting */
60 #define CID_NFC_LIB 0x30                /* NFC Library Layer*/
61 /* The maximum CID value that is defined. */
62 #define CID_MAX_VALUE 0xF0
63 /* Logical Link Control Protocol */
64 #define CID_FRI_NFC_LLCP 0x40
65 #define CID_FRI_NFC_LLCP_TRANSPORT 0x50
66 #define CID_FRI_NFC_LLCP_MAC 0x60
67 
68 #endif /* PHNFCCOMPID_H */
69