nfc_target.h revision 4356939d2a022dc570d21ebe6f7cefff6b85edda
1/****************************************************************************
2**
3**  Name:       nfc_target.h
4**
5**  Function    This file contains platform-specific NFC run-time parameters
6**
7**  NOTE        This file should always be included first.
8**
9**
10**  Copyright (c) 1999-2012, Broadcom Corp., All Rights Reserved.
11**  Broadcom Bluetooth Core. Proprietary and confidential.
12**
13*****************************************************************************/
14
15#ifndef NFC_TARGET_H
16#define NFC_TARGET_H
17
18#include "data_types.h"
19
20#ifdef BUILDCFG
21#include "buildcfg.h"
22#endif
23
24/* Include common GKI definitions used by this platform */
25#include "gki_target.h"
26
27#include "bt_types.h"   /* This must be defined AFTER buildcfg.h */
28#include "dyn_mem.h"    /* defines static and/or dynamic memory for components */
29#ifndef LMP_TEST
30#include "bt_trace.h"
31#endif
32
33
34/* API macros for DLL (needed to export API functions from DLLs) */
35#define NFC_API         EXPORT_API
36#define LLCP_API        EXPORT_API
37
38/******************************************************************************
39**
40** GKI Mail Box and Timer
41**
42******************************************************************************/
43
44/* Mailbox event mask for NFC stack */
45#ifndef NFC_MBOX_EVT_MASK
46#define NFC_MBOX_EVT_MASK           (TASK_MBOX_0_EVT_MASK)
47#endif
48
49/* Mailbox ID for NFC stack */
50#ifndef NFC_MBOX_ID
51#define NFC_MBOX_ID                 (TASK_MBOX_0)
52#endif
53
54/* Mailbox event mask for NFA */
55#ifndef NFA_MBOX_EVT_MASK
56#define NFA_MBOX_EVT_MASK           (TASK_MBOX_2_EVT_MASK)
57#endif
58
59/* Mailbox ID for NFA */
60#ifndef NFA_MBOX_ID
61#define NFA_MBOX_ID                 (TASK_MBOX_2)
62#endif
63
64/* GKI timer id used for protocol timer in NFC stack */
65#ifndef NFC_TIMER_ID
66#define NFC_TIMER_ID                (TIMER_0)
67#endif
68
69/* GKI timer event mask used for protocol timer in NFC stack */
70#ifndef NFC_TIMER_EVT_MASK
71#define NFC_TIMER_EVT_MASK          (TIMER_0_EVT_MASK)
72#endif
73
74/* GKI timer id used for quick timer in NFC stack */
75#ifndef NFC_QUICK_TIMER_ID
76#define NFC_QUICK_TIMER_ID          (TIMER_1)
77#endif
78
79/* GKI timer event mask used for quick timer in NFC stack */
80#ifndef NFC_QUICK_TIMER_EVT_MASK
81#define NFC_QUICK_TIMER_EVT_MASK    (TIMER_1_EVT_MASK)
82#endif
83
84/* GKI timer id used for protocol timer in NFA */
85#ifndef NFA_TIMER_ID
86#define NFA_TIMER_ID                (TIMER_2)
87#endif
88
89/* GKI timer event mask used for protocol timer in NFA */
90#ifndef NFA_TIMER_EVT_MASK
91#define NFA_TIMER_EVT_MASK          (TIMER_2_EVT_MASK)
92#endif
93
94/******************************************************************************
95**
96** GKI Buffer Pools
97**
98******************************************************************************/
99
100/* NCI command/notification/data */
101#ifndef NFC_NCI_POOL_ID
102#define NFC_NCI_POOL_ID             GKI_POOL_ID_2
103#endif
104
105#ifndef NFC_NCI_POOL_BUF_SIZE
106#define NFC_NCI_POOL_BUF_SIZE       GKI_BUF2_SIZE
107#endif
108
109/* Reader/Write commands (NCI data payload) */
110#ifndef NFC_RW_POOL_ID
111#define NFC_RW_POOL_ID             GKI_POOL_ID_2
112#endif
113
114#ifndef NFC_RW_POOL_BUF_SIZE
115#define NFC_RW_POOL_BUF_SIZE       GKI_BUF2_SIZE
116#endif
117
118/* Card Emulation responses (NCI data payload) */
119#ifndef NFC_CE_POOL_ID
120#define NFC_CE_POOL_ID             GKI_POOL_ID_2
121#endif
122
123#ifndef NFC_CE_POOL_BUF_SIZE
124#define NFC_CE_POOL_BUF_SIZE       GKI_BUF2_SIZE
125#endif
126
127
128/******************************************************************************
129**
130** NCI Transport definitions
131**
132******************************************************************************/
133/* offset of the first NCI packet in buffer for outgoing */
134#ifndef NCI_MSG_OFFSET_SIZE
135#define NCI_MSG_OFFSET_SIZE             1
136#endif
137
138
139/* Restore NFCC baud rate to default on shutdown if NFC_UpdateBaudRate was called */
140#ifndef NFC_RESTORE_BAUD_ON_SHUTDOWN
141#define NFC_RESTORE_BAUD_ON_SHUTDOWN    TRUE
142#endif
143
144/* Default NFCC power-up baud rate */
145#ifndef NFC_DEFAULT_BAUD
146#define NFC_DEFAULT_BAUD                USERIAL_BAUD_115200
147#endif
148
149/******************************************************************************
150**
151** NCI
152**
153******************************************************************************/
154
155#define NCI_VERSION_0_F             0x0F
156#define NCI_VERSION_1_0             0x10
157
158#ifndef NCI_VERSION
159#define NCI_VERSION                 NCI_VERSION_1_0
160#endif
161
162/* TRUE I2C patch is needed */
163#ifndef NFC_I2C_PATCH_INCLUDED
164#define NFC_I2C_PATCH_INCLUDED          TRUE     /* NFC-Android uses this!!! */
165#endif
166
167/******************************************************************************
168**
169** NFC
170**
171******************************************************************************/
172#ifndef NFC_INCLUDED
173#define NFC_INCLUDED            TRUE
174#endif
175
176/* Define to TRUE to include Broadcom Vendor Specific implementation */
177#ifndef NFC_BRCM_VS_INCLUDED
178#define NFC_BRCM_VS_INCLUDED    TRUE
179#endif
180
181/* Define to TRUE to include not openned Broadcom Vendor Specific implementation */
182#ifndef NFC_BRCM_NOT_OPEN_INCLUDED
183#define NFC_BRCM_NOT_OPEN_INCLUDED  FALSE  //Android requires FALSE
184#endif
185
186/* Define to TRUE if compling for NFC Reader/Writer Only mode */
187#ifndef NFC_RW_ONLY
188#define NFC_RW_ONLY         FALSE
189#endif
190
191/* Define to TRUE to use dynamic memory allocation.
192 * The default is FALSE - to use static memory allocations.
193*/
194#ifndef NFC_DYNAMIC_MEMORY
195#define NFC_DYNAMIC_MEMORY              FALSE
196#endif
197
198/* Timeout for receiving response to NCI command */
199#ifndef NFC_CMD_CMPL_TIMEOUT
200#define NFC_CMD_CMPL_TIMEOUT        2
201#endif
202
203/* Timeout for waiting on data credit/NFC-DEP */
204#ifndef NFC_DEACTIVATE_TIMEOUT
205#define NFC_DEACTIVATE_TIMEOUT      2
206#endif
207
208/* the maximum number of Vendor Specific callback functions allowed to be registered. 1-14 */
209#ifndef NFC_NUM_VS_CBACKS
210#define NFC_NUM_VS_CBACKS       3
211#endif
212
213/* the maximum number of NCI connections allowed. 1-14 */
214#ifndef NCI_MAX_CONN_CBS
215#define NCI_MAX_CONN_CBS        4
216#endif
217
218/* Define to TRUE to include the NFCEE related functionalities */
219#ifndef NFC_NFCEE_INCLUDED
220#define NFC_NFCEE_INCLUDED          TRUE
221#endif
222
223/* the maximum number of NFCEE interface supported */
224#ifndef NFC_MAX_EE_INTERFACE
225#define NFC_MAX_EE_INTERFACE        3
226#endif
227
228/* the maximum number of NFCEE information supported. */
229#ifndef NFC_MAX_EE_INFO
230#define NFC_MAX_EE_INFO        8
231#endif
232
233/* the maximum number of NFCEE TLVs supported */
234#ifndef NFC_MAX_EE_TLVS
235#define NFC_MAX_EE_TLVS        1
236#endif
237
238/* the maximum size of NFCEE TLV list supported */
239#ifndef NFC_MAX_EE_TLV_SIZE
240#define NFC_MAX_EE_TLV_SIZE        150
241#endif
242
243/* Number of times reader/writer should attempt to resend a command on failure */
244#ifndef RW_MAX_RETRIES
245#define RW_MAX_RETRIES              5
246#endif
247
248/* RW NDEF Support */
249#ifndef RW_NDEF_INCLUDED
250#define RW_NDEF_INCLUDED            TRUE
251#endif
252
253/* RW Type 1 Tag timeout for each API call, in ms */
254#ifndef RW_T1T_TOUT_RESP
255#define RW_T1T_TOUT_RESP            100
256#endif
257
258/* CE Type 1 Tag timeout for controller command, in ms */
259#ifndef CE_T1T_TOUT_RESP
260#define CE_T1T_TOUT_RESP            1000
261#endif
262
263/* CE Type 2 Tag timeout for controller command, in ms */
264#ifndef CE_T2T_TOUT_RESP
265#define CE_T2T_TOUT_RESP            1000
266#endif
267
268/* RW Type 2 Tag timeout for each API call, in ms */
269#ifndef RW_T2T_TOUT_RESP
270#define RW_T2T_TOUT_RESP            100
271#endif
272
273/* RW Type 2 Tag timeout for each API call, in ms */
274#ifndef RW_T2T_SEC_SEL_TOUT_RESP
275#define RW_T2T_SEC_SEL_TOUT_RESP    10
276#endif
277
278/* RW Type 3 Tag timeout for each API call, in ms */
279#ifndef RW_T3T_TOUT_RESP
280#define RW_T3T_TOUT_RESP            100         /* NFC-Android will use 100 instead of 75 for T3t presence-check */
281#endif
282
283/* CE Type 3 Tag maximum response timeout index (for check and update, used in SENSF_RES) */
284#ifndef CE_T3T_MRTI_C
285#define CE_T3T_MRTI_C               0xFF
286#endif
287#ifndef CE_T3T_MRTI_U
288#define CE_T3T_MRTI_U               0xFF
289#endif
290
291/* Default maxblocks for CE_T3T UPDATE/CHECK operations */
292#ifndef CE_T3T_DEFAULT_UPDATE_MAXBLOCKS
293#define CE_T3T_DEFAULT_UPDATE_MAXBLOCKS 3
294#endif
295
296#ifndef CE_T3T_DEFAULT_CHECK_MAXBLOCKS
297#define CE_T3T_DEFAULT_CHECK_MAXBLOCKS  3
298#endif
299
300/* CE Type 4 Tag, Frame Waiting time Integer */
301#ifndef CE_T4T_ISO_DEP_FWI
302#define CE_T4T_ISO_DEP_FWI          7
303#endif
304
305/* RW Type 4 Tag timeout for each API call, in ms */
306#ifndef RW_T4T_TOUT_RESP
307#define RW_T4T_TOUT_RESP            1000
308#endif
309
310/* CE Type 4 Tag timeout for update file, in ms */
311#ifndef CE_T4T_TOUT_UPDATE
312#define CE_T4T_TOUT_UPDATE          1000
313#endif
314
315/* CE Type 4 Tag, mandatory NDEF File ID */
316#ifndef CE_T4T_MANDATORY_NDEF_FILE_ID
317#define CE_T4T_MANDATORY_NDEF_FILE_ID    0x1000
318#endif
319
320/* CE Type 4 Tag, max number of AID supported */
321#ifndef CE_T4T_MAX_REG_AID
322#define CE_T4T_MAX_REG_AID         4
323#endif
324
325/* TRUE, to include Card Emulation related test commands */
326#ifndef CE_TEST_INCLUDED
327#define CE_TEST_INCLUDED            FALSE
328#endif
329
330/* Map NFC serial port to USERIAL_PORT_6 by default */
331#ifndef USERIAL_NFC_PORT
332#define USERIAL_NFC_PORT            (USERIAL_PORT_6)
333#endif
334
335/* NFC snooze mode */
336#ifndef NFC_LP_SNOOZE_MODE
337#define NFC_LP_SNOOZE_MODE          NFC_LP_SNOOZE_MODE_SPI_I2C  /* NFC-Android will use I2C by default */
338#endif
339
340/* Idle Threshold Host in 100ms unit */
341#ifndef NFC_LP_IDLE_THRESHOLD_HOST
342#define NFC_LP_IDLE_THRESHOLD_HOST  0
343#endif
344
345/* Idle Threshold HC in 100ms unit */
346#ifndef NFC_LP_IDLE_THRESHOLD_HC
347#define NFC_LP_IDLE_THRESHOLD_HC    0
348#endif
349
350/* Power cycle NFCC to move full power mode from CE low power mode */
351#ifndef NFC_LP_POWER_CYCLE_TO_FULL
352#define NFC_LP_POWER_CYCLE_TO_FULL  TRUE
353#endif
354
355/* Parameter for low power mode command    */
356#ifndef NFC_LP_COMMAND_PARAMS
357#define NFC_LP_COMMAND_PARAMS       5
358#endif
359/* Primary Threshold for battery monitor   */
360#ifndef NFC_LP_PRIMARY_THRESHOLD
361#define NFC_LP_PRIMARY_THRESHOLD    0
362#endif
363/* Secondary Threshold for battery monitor */
364#ifndef NFC_LP_SECONDARY_THRESHOLD
365#define NFC_LP_SECONDARY_THRESHOLD  8
366#endif
367/* time (in ms) between power off and on NFCC */
368#ifndef NCI_POWER_CYCLE_DELAY
369#define NCI_POWER_CYCLE_DELAY       100
370#endif
371
372/* NFCC snooze mode idle timeout before deassert NFC_WAKE in ms */
373#ifndef NCI_LP_IDLE_TIMEOUT
374#define NCI_LP_IDLE_TIMEOUT         100
375#endif
376
377/* NFCC boot-up delay before sending command in CE low power mode in ms */
378#ifndef NCI_LP_BOOTUP_DEALY
379#define NCI_LP_BOOTUP_DEALY         50
380#endif
381
382/* NFC-WAKE */
383#ifndef NCILP_NFC_WAKE_GPIO
384#define NCILP_NFC_WAKE_GPIO         UPIO_GENERAL3
385#endif
386
387/* Quick Timer */
388#ifndef QUICK_TIMER_TICKS_PER_SEC
389#define QUICK_TIMER_TICKS_PER_SEC   100       /* 10ms timer */
390#endif
391
392/******************************************************************************
393**
394** NDEF
395**
396******************************************************************************/
397/* The default is to use the GKI_shiftdown/GKI_shiftup function defined in GKI.
398 * If the NDEF functions are used as utility functions by a standalon application
399 * without GKI, NDEF_SHIFT_DOWN should be mapped to shiftdown and
400 * NDEF_SHIFT_UP should be mapped to shiftup and
401 * NDEF_SHIFT_INCLUDED should be mapped to TRUE in buildcfg.h
402 */
403#ifndef NDEF_SHIFT_DOWN
404#define NDEF_SHIFT_DOWN         (GKI_shiftdown)
405#endif
406
407#ifndef NDEF_SHIFT_UP
408#define NDEF_SHIFT_UP           (GKI_shiftup)
409#endif
410
411#ifndef NDEF_SHIFT_INCLUDED
412#define NDEF_SHIFT_INCLUDED     FALSE
413#endif
414
415
416/******************************************************************************
417**
418** LLCP
419**
420******************************************************************************/
421
422#ifndef LLCP_TEST_INCLUDED
423#define LLCP_TEST_INCLUDED          FALSE
424#endif
425
426#ifndef LLCP_POOL_ID
427#define LLCP_POOL_ID                GKI_POOL_ID_3
428#endif
429
430#ifndef LLCP_POOL_BUF_SIZE
431#define LLCP_POOL_BUF_SIZE          GKI_BUF3_SIZE
432#endif
433
434/* LLCP Maximum Information Unit (between LLCP_DEFAULT_MIU(128) and LLCP_MAX_MIU (2175)*/
435#ifndef LLCP_MIU
436#define LLCP_MIU                    (LLCP_POOL_BUF_SIZE - BT_HDR_SIZE - NCI_MSG_OFFSET_SIZE - NCI_DATA_HDR_SIZE - LLCP_PDU_HEADER_SIZE)
437#endif
438
439/* Link Timeout, LTO */
440#ifndef LLCP_LTO_VALUE
441#define LLCP_LTO_VALUE              1000    /* Default is 100ms. It should be sufficiently larger than RWT */
442#endif
443
444/*
445** LTO is max time interval between the last bit received and the first bit sent over the air.
446** Link timeout must be delayed as much as time between the packet sent from LLCP and the last bit transmitted at NFCC.
447**  - 200ms, max OTA transmitting time between the first bit and the last bit at NFCC
448**    Largest MIU(2175bytes) of LLCP must be fragmented and sent on NFC-DEP over the air.
449**    8 * (DEP_REQ/RES+ACK) + DEP_REQ/RES for 2175 MIU at 106kbps bit rate.
450**  - 10ms, processing time
451*/
452#ifndef LLCP_INTERNAL_TX_DELAY
453#define LLCP_INTERNAL_TX_DELAY      210
454#endif
455
456/*
457** LTO is max time interval between the last bit received and the first bit sent over the air.
458** Link timeout must be delayed as much as time between the first bit received at NFCC and the packet received at LLCP.
459**  - 200ms, max OTA transmitting time between the first bit and the last bit at NFCC
460**    LLCP cannot receive data packet until all bit are received and reassembled in NCI.
461**    8 * (DEP_REQ/RES+ACK) + DEP_REQ/RES for 2175 MIU at 106kbps bit rate.
462**  - 10ms, processing time
463*/
464#ifndef LLCP_INTERNAL_RX_DELAY
465#define LLCP_INTERNAL_RX_DELAY      210
466#endif
467
468/* Wait for application layer sending data before sending SYMM */
469#ifndef LLCP_DELAY_RESP_TIME
470#define LLCP_DELAY_RESP_TIME        20      /* in ms */
471#endif
472
473/* LLCP inactivity timeout for initiator */
474#ifndef LLCP_INIT_INACTIVITY_TIMEOUT
475#define LLCP_INIT_INACTIVITY_TIMEOUT            0    /* in ms */
476#endif
477
478/* LLCP inactivity timeout for target */
479#ifndef LLCP_TARGET_INACTIVITY_TIMEOUT
480#define LLCP_TARGET_INACTIVITY_TIMEOUT          0    /* in ms */
481#endif
482
483/* LLCP delay timeout to send the first PDU as initiator */
484#ifndef LLCP_DELAY_TIME_TO_SEND_FIRST_PDU
485#define LLCP_DELAY_TIME_TO_SEND_FIRST_PDU      50    /* in ms */
486#endif
487
488/* Response Waiting Time */
489#ifndef LLCP_WAITING_TIME
490#define LLCP_WAITING_TIME           7       /* its scaled value should be less than LTO */
491#endif
492
493/* Options Parameters */
494#ifndef LLCP_OPT_VALUE
495#define LLCP_OPT_VALUE              LLCP_LSC_3  /* Link Service Class 3 */
496#endif
497
498/* Data link connection timeout */
499#ifndef LLCP_DATA_LINK_CONNECTION_TOUT
500#define LLCP_DATA_LINK_CONNECTION_TOUT      1000
501#endif
502
503/* Max length of service name */
504#ifndef LLCP_MAX_SN_LEN
505#define LLCP_MAX_SN_LEN             255     /* max length of service name */
506#endif
507
508/* Max number of well-known services, at least 2 for LM and SDP and up to 16 */
509#ifndef LLCP_MAX_WKS
510#define LLCP_MAX_WKS                5
511#endif
512
513/* Max number of services advertised by local SDP, up to 16 */
514#ifndef LLCP_MAX_SERVER
515#define LLCP_MAX_SERVER             10
516#endif
517
518/* Max number of services not advertised by local SDP, up to 32 */
519#ifndef LLCP_MAX_CLIENT
520#define LLCP_MAX_CLIENT             20
521#endif
522
523/* Max number of data link connections */
524#ifndef LLCP_MAX_DATA_LINK
525#define LLCP_MAX_DATA_LINK          16
526#endif
527
528/* Max number of outstanding service discovery requests */
529#ifndef LLCP_MAX_SDP_TRANSAC
530#define LLCP_MAX_SDP_TRANSAC        16
531#endif
532
533/* Percentage of LLCP buffer pool for receiving data */
534#ifndef LLCP_RX_BUFF_RATIO
535#define LLCP_RX_BUFF_RATIO                  30
536#endif
537
538/* Rx congestion end threshold as percentage of receiving buffers */
539#ifndef LLCP_RX_CONGEST_END
540#define LLCP_RX_CONGEST_END                 50
541#endif
542
543/* Rx congestion start threshold as percentage of receiving buffers */
544#ifndef LLCP_RX_CONGEST_START
545#define LLCP_RX_CONGEST_START               70
546#endif
547
548/* limitation of rx UI PDU as percentage of receiving buffers */
549#ifndef LLCP_LL_RX_BUFF_LIMIT
550#define LLCP_LL_RX_BUFF_LIMIT               30
551#endif
552
553/* minimum rx congestion threshold (number of rx I PDU in queue) for data link connection */
554#ifndef LLCP_DL_MIN_RX_CONGEST
555#define LLCP_DL_MIN_RX_CONGEST              4
556#endif
557
558/* limitation of tx UI PDU as percentage of transmitting buffers */
559#ifndef LLCP_LL_TX_BUFF_LIMIT
560#define LLCP_LL_TX_BUFF_LIMIT               30
561#endif
562
563/******************************************************************************
564**
565** NFA
566**
567******************************************************************************/
568#ifndef NFA_DYNAMIC_MEMORY
569#define NFA_DYNAMIC_MEMORY          FALSE
570#endif
571
572#ifndef NFA_INCLUDED
573#define NFA_INCLUDED                TRUE
574#endif
575
576#ifndef NFA_P2P_INCLUDED
577#define NFA_P2P_INCLUDED            TRUE
578#endif
579
580/* Timeout for waiting on other host in HCI Network to initialize */
581#ifndef NFA_HCI_NETWK_INIT_TIMEOUT
582#define NFA_HCI_NETWK_INIT_TIMEOUT  400
583#endif
584
585#ifndef NFA_HCI_MAX_HOST_IN_NETWORK
586#define NFA_HCI_MAX_HOST_IN_NETWORK 0x06
587#endif
588
589#ifndef NFA_HCI_MAX_GATE_IN_HOST
590#define NFA_HCI_MAX_GATE_IN_HOST    0x0F
591#endif
592
593#ifndef NFA_HCI_MAX_MESSAGE_LEN
594#define NFA_HCI_MAX_MESSAGE_LEN     0xFF
595#endif
596
597/* Max number of Application that can be registered to NFA-HCI */
598#ifndef NFA_HCI_MAX_APP_CB
599#define NFA_HCI_MAX_APP_CB          0x05
600#endif
601
602/* Max number of HCI gates that can be created */
603#ifndef NFA_HCI_MAX_GATE_CB
604#define NFA_HCI_MAX_GATE_CB         0x06
605#endif
606
607/* Max number of HCI pipes that can be created for the whole system */
608#ifndef NFA_HCI_MAX_PIPE_CB
609#define NFA_HCI_MAX_PIPE_CB         0x08
610#endif
611
612/* Max number of HCI pipes that can be created per gate */
613#ifndef NFA_HCI_MAX_PIPES_PER_GATE
614#define NFA_HCI_MAX_PIPES_PER_GATE  0x02
615#endif
616
617/* NFCC will respond to more than one technology during listen discovery  */
618#ifndef NFA_DM_MULTI_TECH_RESP
619#define NFA_DM_MULTI_TECH_RESP      FALSE    /* NFC-Android will enable/disable this by .conf file on startup */
620#endif
621
622/* Default poll duration (may be over-ridden using NFA_SetRfDiscoveryDuration) */
623#ifndef NFA_DM_DISC_DURATION_POLL
624#define NFA_DM_DISC_DURATION_POLL               500
625#endif
626
627/* Automatic NDEF detection (when not in exclusive RF mode) */
628#ifndef NFA_DM_AUTO_DETECT_NDEF
629#define NFA_DM_AUTO_DETECT_NDEF      FALSE  /* !!!!! NFC-Android needs FALSE */
630#endif
631
632/* Automatic NDEF read (when not in exclusive RF mode) */
633#ifndef NFA_DM_AUTO_READ_NDEF
634#define NFA_DM_AUTO_READ_NDEF        FALSE  /* !!!!! NFC-Android needs FALSE */
635#endif
636
637/* Time to restart discovery after deactivated */
638#ifndef NFA_DM_DISC_DELAY_DISCOVERY
639#define NFA_DM_DISC_DELAY_DISCOVERY     1000
640#endif
641
642/* Max number of NDEF type handlers that can be registered (including the default handler) */
643#ifndef NFA_NDEF_MAX_HANDLERS
644#define NFA_NDEF_MAX_HANDLERS       8
645#endif
646
647/* Maximum number of listen entries configured/registered with NFA_CeConfigureUiccListenTech, */
648/* NFA_CeRegisterFelicaSystemCodeOnDH, or NFA_CeRegisterT4tAidOnDH                            */
649#ifndef NFA_CE_LISTEN_INFO_MAX
650#define NFA_CE_LISTEN_INFO_MAX        5
651#endif
652
653#ifndef NFA_CHO_INCLUDED
654#define NFA_CHO_INCLUDED            TRUE
655#endif
656
657/* MIU for CHO              */
658#ifndef NFA_CHO_MIU
659#define NFA_CHO_MIU                    499
660#endif
661
662/* Receiving Window for CHO */
663#ifndef NFA_CHO_RW
664#define NFA_CHO_RW                     4
665#endif
666
667/* Max number of alternative carrier information */
668#ifndef NFA_CHO_MAX_AC_INFO
669#define NFA_CHO_MAX_AC_INFO                 2
670#endif
671
672/* Max reference character length, it is up to 255 but it's RECOMMENDED short */
673#ifndef NFA_CHO_MAX_REF_NAME_LEN
674#define NFA_CHO_MAX_REF_NAME_LEN            8
675#endif
676
677/* Max auxiliary data count */
678#ifndef NFA_CHO_MAX_AUX_DATA_COUNT
679#define NFA_CHO_MAX_AUX_DATA_COUNT          2
680#endif
681
682#ifndef NFA_CHO_TEST_INCLUDED
683#define NFA_CHO_TEST_INCLUDED           FALSE
684#endif
685
686#ifndef NFA_SNEP_INCLUDED
687#define NFA_SNEP_INCLUDED               TRUE
688#endif
689
690/* Max acceptable length */
691#ifndef NFA_SNEP_DEFAULT_SERVER_MAX_NDEF_SIZE
692#define NFA_SNEP_DEFAULT_SERVER_MAX_NDEF_SIZE          500000
693#endif
694/* Max number of SNEP server/client and data link connection */
695#ifndef NFA_SNEP_MAX_CONN
696#define NFA_SNEP_MAX_CONN               6
697#endif
698
699/* Max number data link connection of SNEP default server*/
700#ifndef NFA_SNEP_DEFAULT_MAX_CONN
701#define NFA_SNEP_DEFAULT_MAX_CONN       3
702#endif
703
704/* MIU for SNEP              */
705#ifndef NFA_SNEP_MIU
706#define NFA_SNEP_MIU                    1980        /* Modified for NFC-A */
707#endif
708
709/* Receiving Window for SNEP */
710#ifndef NFA_SNEP_RW
711#define NFA_SNEP_RW                     2           /* Modified for NFC-A */
712#endif
713
714/* Max number of NFCEE supported */
715#ifndef NFA_EE_MAX_EE_SUPPORTED
716#define NFA_EE_MAX_EE_SUPPORTED         4
717#endif
718
719/* Maximum number of AID entries per target_handle  */
720#ifndef NFA_EE_MAX_AID_ENTRIES
721#define NFA_EE_MAX_AID_ENTRIES      (10)
722#endif
723
724/* Maximum number of callback functions can be registered through NFA_EeRegister() */
725#ifndef NFA_EE_MAX_CBACKS
726#define NFA_EE_MAX_CBACKS           (3)
727#endif
728
729#endif /* NFC_TARGET_H */
730
731
732
733