xref: /aosp_15_r20/system/nfc/conf/libnfc-nci.conf (revision 7eba2f3b06c51ae21384f6a4f14577b668a869b3)
1###############################################################################
2# Debug options
3NFC_DEBUG_ENABLED=0
4
5###############################################################################
6# File used for NFA storage
7NFA_STORAGE="/data/nfc"
8PRESERVE_STORAGE=0x01
9
10###############################################################################
11# When screen is turned off, specify the desired power state of the controller.
12# 0: power-off-sleep state; DEFAULT
13# 1: full-power state
14# 2: screen-off card-emulation (CE4/CE3/CE1 modes are used)
15SCREEN_OFF_POWER_STATE=1
16
17###############################################################################
18# Default poll duration (in ms)
19# Default is 500ms if not set (see nfc_target.h)
20#NFA_DM_DISC_DURATION_POLL=333
21
22###############################################################################
23# Force tag polling for the following technology(s).
24# The bits are defined as tNFA_TECHNOLOGY_MASK in nfa_api.h.
25# Default is NFA_TECHNOLOGY_MASK_A | NFA_TECHNOLOGY_MASK_B |
26#            NFA_TECHNOLOGY_MASK_F | NFA_TECHNOLOGY_MASK_ISO15693 |
27#            NFA_TECHNOLOGY_MASK_B_PRIME | NFA_TECHNOLOGY_MASK_KOVIO |
28#            NFA_TECHNOLOGY_MASK_A_ACTIVE | NFA_TECHNOLOGY_MASK_F_ACTIVE.
29#
30# Notable bits:
31# NFA_TECHNOLOGY_MASK_A             0x01    /* NFC Technology A             */
32# NFA_TECHNOLOGY_MASK_B             0x02    /* NFC Technology B             */
33# NFA_TECHNOLOGY_MASK_F             0x04    /* NFC Technology F             */
34# NFA_TECHNOLOGY_MASK_ISO15693      0x08    /* Proprietary Technology       */
35POLLING_TECH_MASK=0x0F
36
37###############################################################################
38# Force UICC to only listen to the following technology(s).
39# The bits are defined as tNFA_TECHNOLOGY_MASK in nfa_api.h.
40# Default is NFA_TECHNOLOGY_MASK_A | NFA_TECHNOLOGY_MASK_B | NFA_TECHNOLOGY_MASK_F
41UICC_LISTEN_TECH_MASK=0x07
42
43###############################################################################
44# Override the stack default for NFA_EE_MAX_EE_SUPPORTED set in nfc_target.h.
45# The value is set to 3 by default as it assumes we will discover 0xF2,
46# 0xF3, and 0xF4. If a platform will exclude and SE, this value can be reduced
47# so that the stack will not wait any longer than necessary.
48# Maximum EE supported number
49# NXP PN547C2 0x02
50# NXP PN65T 0x03
51# NXP PN548C2 0x02
52# NXP PN66T 0x03
53NFA_MAX_EE_SUPPORTED=0x02
54
55###############################################################################
56# AID for Empty Select command
57# If specified, this AID will be substituted when an Empty SELECT command is
58# detected.  The first byte is the length of the AID.  Maximum length is 16.
59AID_FOR_EMPTY_SELECT={08:A0:00:00:01:51:00:00:00}
60
61###############################################################################
62# AID_MATCHING constants
63# AID_MATCHING_EXACT_ONLY 0x00
64# AID_MATCHING_EXACT_OR_PREFIX 0x01
65# AID_MATCHING_PREFIX_ONLY 0x02
66AID_MATCHING_MODE=0x01
67
68###############################################################################
69# NCI_RESET_TYPE options
70# Default 0x00, reset configurations everytime.
71# 0x01, reset configurations only once every boot.
72# 0x02, keep configurations.
73NCI_RESET_TYPE=0x00
74
75###############################################################################
76# Set presence check retry count value. Value Range: 0 to 5
77# This value indicates the number of time presence check is repeated in case of
78# failure
79PRESENCE_CHECK_RETRY_COUNT=0
80
81##############################################################################
82# Deactivate notification wait time out in seconds used in listen active state
83# Default is 8sec if not set or set as 0 (see nfc_target.h)
84#NFA_DM_LISTEN_ACTIVE_DEACT_NTF_TIMEOUT=3
85