nfa_dm_cfg.c revision e9df6ba5a8fcccf306a80b1670b423be8fe7746a
1/******************************************************************************
2 *
3 *  Copyright (C) 2011-2012 Broadcom Corporation
4 *
5 *  Licensed under the Apache License, Version 2.0 (the "License");
6 *  you may not use this file except in compliance with the License.
7 *  You may obtain a copy of the License at:
8 *
9 *  http://www.apache.org/licenses/LICENSE-2.0
10 *
11 *  Unless required by applicable law or agreed to in writing, software
12 *  distributed under the License is distributed on an "AS IS" BASIS,
13 *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 *  See the License for the specific language governing permissions and
15 *  limitations under the License.
16 *
17 ******************************************************************************/
18
19/******************************************************************************
20 *
21 *  This file contains compile-time configurable constants for NFA modules
22 *
23 ******************************************************************************/
24#include "nfa_api.h"
25
26/* the SetConfig for CE T3T/T4T */
27const UINT8 nfa_dm_ce_cfg[] =
28{
29    13,                         /* total length */
30    NFC_PMID_LF_T3T_PMM,        /* Type-3 tag default PMM */
31    NCI_PARAM_LEN_LF_T3T_PMM,
32    0x20,
33    0x79,
34    0xFF,
35    0xFF,
36    0xFF,
37    0xFF,
38    0xFF,
39    0xFF,
40    NFC_PMID_FWI,               /* FWI for ISO-DEP */
41    1,
42    CE_T4T_ISO_DEP_FWI
43};
44
45UINT8 *p_nfa_dm_ce_cfg = (UINT8 *) nfa_dm_ce_cfg;
46
47/* the SetConfig for optional general NFC stack functions */
48const UINT8 nfa_dm_gen_cfg[] =
49{
50    3,                         /* total length */
51    NFC_PMID_RF_FIELD_INFO,     /* Instruct NFCC to report RF field generated by remote device (or not) */
52    1,
53    0x01
54};
55
56UINT8 *p_nfa_dm_gen_cfg = NULL;
57
58UINT8 nfa_ee_max_ee_cfg = NFA_EE_MAX_EE_SUPPORTED;
59
60
61const tNCI_DISCOVER_MAPS nfa_dm_interface_mapping[NFA_DM_NUM_INTERFACE_MAP] =
62{
63    /* Protocols that use Frame Interface do not need to be included in the interface mapping */
64    {
65        NCI_PROTOCOL_ISO_DEP,
66        NCI_INTERFACE_MODE_POLL_N_LISTEN,
67        NCI_INTERFACE_ISO_DEP
68    },
69    {
70        NCI_PROTOCOL_NFC_DEP,
71        NCI_INTERFACE_MODE_POLL_N_LISTEN,
72        NCI_INTERFACE_NFC_DEP
73    }
74};
75/* set to NULL to use the default mapping set by stack */
76tNCI_DISCOVER_MAPS *p_nfa_dm_interface_mapping = NULL;
77UINT8 nfa_dm_num_dm_interface_mapping = 0;
78
79
80const tNFA_DM_CFG nfa_dm_cfg =
81{
82    NFA_DM_AUTO_DETECT_NDEF,                /* Automatic NDEF detection (when not in exclusive RF mode) */
83    NFA_DM_AUTO_READ_NDEF                   /* Automatic NDEF read (when not in exclusive RF mode)      */
84
85};
86
87tNFA_DM_CFG *p_nfa_dm_cfg = (tNFA_DM_CFG *) &nfa_dm_cfg;
88
89
90
91
92