1 /* 2 * Copyright (C) 2015 The Android Open Source Project 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 value (status) 28 * returned by each function. 29 * 30 * ID Number Spaces: 31 * - 01..1F: HAL 32 * - 20..3F: NFC-MW (Local Device) 33 * - 40..5F: NFC-MW (Remote Device) 34 * . 35 * 36 * The value CID_NFC_NONE does not exist for Component IDs. Do not use this value except 37 * for NFCSTATUS_SUCCESS. The enumeration function uses CID_NFC_NONE 38 * to mark unassigned "References". 39 */ 40 #define CID_NFC_NONE 0x00 /* Unassigned or doesn't apply (see #NFCSTATUS_SUCCESS) */ 41 #define CID_NFC_TML 0x01 /* Transport Mapping Layer */ 42 #define CID_NFC_LLC 0x07 /* Logical Link Control Layer */ 43 #define CID_NFC_NCI 0x08 /* NFC Controller(NFCC) Interface Layer */ 44 #define CID_NFC_DNLD 0x09 /* Firmware Download Management Layer */ 45 #define CID_NFC_HAL 0x10 /* Hardware Abstraction Layer */ 46 #define CID_NFC_OSAL CID_NFC_NONE /* Operating System Abstraction Layer*/ 47 #define CID_FRI_NFC_OVR_HAL 0x20 /* NFC-Device, HAL-based */ 48 #define CID_FRI_NFC_NDEF_RECORD 0x22 /* NDEF Record Tools Library. */ 49 #define CID_FRI_NFC_NDEF_MAP 0x23 /* NDEF Mapping. */ 50 #define CID_FRI_NFC_NDEF_REGISTRY 0x24 /* NDEF_REGISTRY. */ 51 #define CID_FRI_NFC_AUTO_DEV_DIS 0x25 /* Automatic Device Discovery. */ 52 #define CID_FRI_NFC_NDEF_SMTCRDFMT 0x26 /* Smart Card Formatting */ 53 #define CID_NFC_LIB 0x30 /* NFC Library Layer*/ 54 #define CID_MAX_VALUE 0xF0 /* The maximum CID value that is defined. */ 55 #define CID_FRI_NFC_LLCP 0x40 /* Logical Link Control Protocol */ 56 #define CID_FRI_NFC_LLCP_TRANSPORT 0x50 57 #define CID_FRI_NFC_LLCP_MAC 0x60 58 59 #endif /* PHNFCCOMPID_H */ 60