###################### Start of libnfc-brcm.conf #######################

##########################################################
# Application options
APPL_TRACE_LEVEL=0x07
PROTOCOL_TRACE_LEVEL=0xFFFFFFFE
USE_RAW_NCI_TRACE=0x00

###############################################################################
# File used for NFA storage
NFA_STORAGE="/data/nfc"

###############################################################################
# Override the stack default for nfa_dm_cfg set in nfc_dm_cfg.c
#NFA_DM_CFG

###############################################################################
# Post FW update Vendor Specific Conommands (100 bytes maximum)
# This parameter allows to send arbitrary NCI commands after FW update completion
# and before CORE_RESET sent by the stacK.
# It can be used to overwrite TLVs parameters set in infc.conf file
# Total length
# NCI commands (*n)
#NFA_DM_POST_FW_VSC_CFG={00}

###############################################################################
# Startup Configuration (100 bytes maximum)
# byte[0] = total length#
# following bytes = N * (Param_id, Param_len, Param_value)
# Set NCI_RF_WORKKAROUND to 5 to allow interop with Nexus S
# Set NCI_CONFIG_CARD_DETECT to 1 to enable card detect
# Set PI_BIT_RATE to 3 to allow poll modes modes up to 848 bps
# Set LI_BIT_RATE to 3 to allow listen modes up to 848 bps
NFA_DM_START_UP_CFG={09: AB:01:05: AD:01:01 :21:01:03}

###############################################################################
# Extra routing entries (100 bytes maximum) to be added to routing
# table set by the host
# byte[0] = total length#
# byte[1] = number of TLV entries
# following bytes TLV entries
#
# Enable NFCID2 routing
# 09            total lentgh
# 02            number of TLVs
# 03 01 01      NFCID2 routing TLV : NFCID2 enabled in PHONE_ON
# 01:03:00:01:05 NFC-DEP to DH in PHONE_ON

NFA_DM_ROUTING_EXTRA_TLV={09:02: 03:01:01: 01:03:00:01:05}

###############################################################################
# External clock_in frequency, in kHz
# This parameter is now handled in infc.conf.
# It is still possible to set it here to overwrite the value in infc.conf
#NFA_DM_EXT_CLOCK_FREQ=26000


###############################################################################
# Startup Vendor Specific Configuration (100 bytes maximum);
# NFA_DM_START_UP_VSC_CFG

###############################################################################
# Override the stack default for NFA_EE_MAX_EE_SUPPORTED set in nfc_target.h.
# The value is set to 3 by default as it assumes we will discover 0x01, 0x02,
# 0x03, and 0x04. If a platform will exclude and SE, this value can be reduced
# so that the stack will not wait any longer than necessary.
NFA_MAX_EE_SUPPORTED=4

###############################################################################
# Configure the single default SE to use.  The default is to use the first
# SE that is detected by the stack.  This value might be used when the phone
# supports multiple SE (e.g. 0x02, 0x03 and 0x04) but you want to force it to use
# one of them (e.g. 0x02).
ACTIVE_SE=0x00

###############################################################################
# Configure the default NfcA/IsoDep techology and protocol route. Can be
# either a secure element (e.g. 0xF4) or the host (0x00)
DEFAULT_ISODEP_ROUTE=0x00

###############################################################################
# Override the stack default whitelist set in nfa_hci_whitelist in nfa_dm_cfg.c
DEVICE_HOST_WHITE_LIST={02:03}

###############################################################################
# Preserve stack storage
# Default value (0x00) is to erase the stack storage each time it is started
PRESERVE_STORAGE=0x01

###############################################################################
#
# Name of the NCI HAL module to use
# If unset, falls back to nfc_nci.bcm2079x
NCI_HAL_MODULE="nfc_nci.fdp"

###############################################################################
#
###############################################################################
# Force tag polling for the following technology(s).
# The bits are defined as tNFA_TECHNOLOGY_MASK in nfa_api.h.
# Default is NFA_TECHNOLOGY_MASK_A | NFA_TECHNOLOGY_MASK_B |
#            NFA_TECHNOLOGY_MASK_F | NFA_TECHNOLOGY_MASK_ISO15693 |
#            NFA_TECHNOLOGY_MASK_B_PRIME | NFA_TECHNOLOGY_MASK_A_ACTIVE |
#            NFA_TECHNOLOGY_MASK_F_ACTIVE.
#
# Notable bits:
#   NFA_TECHNOLOGY_MASK_KOVIO       0x20
#   NFA_TECHNOLOGY_MASK_A_ACTIVE    0x40
#   NFA_TECHNOLOGY_MASK_F_ACTIVE    0x80
POLLING_TECH_MASK=0xCF

###############################################################################
# Force P2P to only listen for the following technology(s).
# The bits are defined as tNFA_TECHNOLOGY_MASK in nfa_api.h.
# Default is NFA_TECHNOLOGY_MASK_A | NFA_TECHNOLOGY_MASK_F |
#            NFA_TECHNOLOGY_MASK_A_ACTIVE | NFA_TECHNOLOGY_MASK_F_ACTIVE
P2P_LISTEN_TECH_MASK=0xC5

###############################################################################
# Overrides the stack default polling frequency nfa_dm_rf_disc_freq_cfg
# defined in nfa_dm_cfg.c
# The default is 1 for all technologies
# The format is {PA:PB:PF:P93:PBP:PK:PAA:PFA}
#POLL_FREQUENCY={01:01:01:01:01:01:01:01}

###############################################################################
# Presence check algorithm
# One of the following values
# 0x00    /* The default behavior             */
# 0x01,   /* Empty I Block                    */
# 0x02    /* Deactivate to Sleep; Re-activate */
# 0x03,   /* ReadBinary on Channel 0          */
# 0x04    /* ReadBinary on Channel 3          */
#PRESENCE_CHECK_ALGORITHM=0x00

###############################################################################
# When screen is turned off, specify the desired power state of the controller.
# 0: power-off-sleep state; DEFAULT
# 1: full-power state
# 2: screen-off card-emulation (CE4/CE3/CE1 modes are used)
SCREEN_OFF_POWER_STATE=0


###############################################################################
# Default poll duration (in ms)
#  The default is 500ms if not set (see nfc_target.h)
NFA_DM_DISC_DURATION_POLL=200

###############################################################################
# Configure the default Off Host route. Can be
# either a secure element (e.g. 0x04) or the UICC (0x02)
DEFAULT_OFFHOST_ROUTE=0x02

###############################################################################
# Enable the HW reset
ENABLE_HW_RESET=0
