• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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  *
19  *  This file contains compile-time configurable constants for vendor specific proprietary protocols
20  *
21  ******************************************************************************/
22 #ifndef __NFC_VENDOR_CFG_H__
23 #define __NFC_VENDOR_CFG_H__
24 
25 /* compile-time configuration structure for proprietary protocol and discovery value */
26 typedef struct
27 {
28     UINT8 pro_protocol_18092_active;
29     UINT8 pro_protocol_b_prime;
30     UINT8 pro_protocol_dual;
31     UINT8 pro_protocol_15693;
32     UINT8 pro_protocol_kovio;
33     UINT8 pro_protocol_mfc;
34 
35     UINT8 pro_discovery_kovio_poll;
36     UINT8 pro_discovery_b_prime_poll;
37     UINT8 pro_discovery_b_prime_listen;
38 } tNFA_PROPRIETARY_CFG;
39 
40 
41 extern tNFA_PROPRIETARY_CFG *p_nfa_proprietary_cfg;
42 
43  /**********************************************
44  * Proprietary Protocols
45  **********************************************/
46 #ifndef NCI_PROTOCOL_18092_ACTIVE
47 #define NCI_PROTOCOL_18092_ACTIVE       (p_nfa_proprietary_cfg->pro_protocol_18092_active)
48 #endif
49 #ifndef NCI_PROTOCOL_B_PRIME
50 #define NCI_PROTOCOL_B_PRIME            (p_nfa_proprietary_cfg->pro_protocol_b_prime)
51 #endif
52 #ifndef NCI_PROTOCOL_DUAL
53 #define NCI_PROTOCOL_DUAL               (p_nfa_proprietary_cfg->pro_protocol_dual)
54 #endif
55 #ifndef NCI_PROTOCOL_15693
56 #define NCI_PROTOCOL_15693              (p_nfa_proprietary_cfg->pro_protocol_15693)
57 #endif
58 #ifndef NCI_PROTOCOL_KOVIO
59 #define NCI_PROTOCOL_KOVIO              (p_nfa_proprietary_cfg->pro_protocol_kovio)
60 #endif
61 #ifndef NCI_PROTOCOL_MIFARE
62 #define NCI_PROTOCOL_MIFARE             (p_nfa_proprietary_cfg->pro_protocol_mfc)
63 #endif
64 
65  /**********************************************
66  * Proprietary Discovery technology and mode
67  **********************************************/
68 #ifndef NCI_DISCOVERY_TYPE_POLL_KOVIO
69 #define NCI_DISCOVERY_TYPE_POLL_KOVIO           (p_nfa_proprietary_cfg->pro_discovery_kovio_poll)
70 #endif
71 
72 #ifndef NCI_DISCOVERY_TYPE_POLL_B_PRIME
73 #define NCI_DISCOVERY_TYPE_POLL_B_PRIME         (p_nfa_proprietary_cfg->pro_discovery_b_prime_poll)
74 #endif
75 
76 #ifndef NCI_DISCOVERY_TYPE_LISTEN_B_PRIME
77 #define NCI_DISCOVERY_TYPE_LISTEN_B_PRIME       (p_nfa_proprietary_cfg->pro_discovery_b_prime_listen)
78 #endif
79 
80 #endif /* __NFC_VENDOR_CFG_H__ */
81