diff options
Diffstat (limited to 'inc/phNfcConfig.h')
-rwxr-xr-x[-rw-r--r--] | inc/phNfcConfig.h | 50 |
1 files changed, 30 insertions, 20 deletions
diff --git a/inc/phNfcConfig.h b/inc/phNfcConfig.h index 6bc050c..0c94dc0 100644..100755 --- a/inc/phNfcConfig.h +++ b/inc/phNfcConfig.h @@ -124,14 +124,14 @@ /**< Indicates PN544 Power Modes Configuration for the NFC Device, - 0x00U -> PN544 stays in active bat mode + 0x00U -> PN544 stays in active bat mode (except when generating RF field) - 0x01U -> PN544 goes in standby when possible otherwise + 0x01U -> PN544 goes in standby when possible otherwise stays in active bat mode - 0x02U -> PN544 goes in idle mode as soon as it can + 0x02U -> PN544 goes in idle mode as soon as it can (otherwise it is in active bat except when generating RF field) - 0x03U -> PN544 goes in standby when possible otherwise goes in idle mode - as soon as it can (otherwise it is in active bat except when + 0x03U -> PN544 goes in standby when possible otherwise goes in idle mode + as soon as it can (otherwise it is in active bat except when generating RF field) */ @@ -150,7 +150,7 @@ /**< Max number of remote devices supported */ #ifndef MAX_REMOTE_DEVICES -#define MAX_REMOTE_DEVICES 0x0A +#define MAX_REMOTE_DEVICES 0x0A #endif /**< System Event Notification @@ -198,30 +198,30 @@ /**< Presence check interval in milliseconds */ #ifndef PRESENCE_CHECK_INTERVAL #define PRESENCE_CHECK_INTERVAL 500U -#endif +#endif -/** Resolution value for the timer, here the +/** Resolution value for the timer, here the timer resolution is 500 milliseconds */ #ifndef TIMER_RESOLUTION #define TIMER_RESOLUTION 500U -#endif +#endif /* Kindly note that the below Timeout values should be * in Multiples of the value provided to TIMER_RESOLUTION */ -/**< Defines guard time out value for LLC timer, +/**< Defines guard time out value for LLC timer, 1000 is in milliseconds */ #ifndef LINK_GUARD_TIMEOUT #define LINK_GUARD_TIMEOUT 1000U -#endif +#endif -/**< Defines connection time out value for LLC timer, +/**< Defines connection time out value for LLC timer, 1000 is in milliseconds */ #ifndef LINK_CONNECTION_TIMEOUT #define LINK_CONNECTION_TIMEOUT 1000U -#endif +#endif /**< Defines ACK time out value for LLC timer, 150 is in milliseconds */ @@ -239,7 +239,7 @@ #endif -/**< Define to configure the Active Mode Polling Guard Time-out +/**< Define to configure the Active Mode Polling Guard Time-out */ #ifndef DEV_MGMT_ACT_GRD_TO_DEFAULT @@ -275,7 +275,7 @@ #ifndef HOST_CE_A_SAK_DEFAULT #define HOST_CE_A_SAK_DEFAULT 0x20U -#endif +#endif #ifndef NXP_CE_A_ATQA_HIGH #define NXP_CE_A_ATQA_HIGH 0x00U @@ -288,11 +288,11 @@ #ifndef NXP_UICC_CE_RIGHTS #define NXP_UICC_CE_RIGHTS 0x0FU -#endif +#endif #ifndef NXP_UICC_RD_RIGHTS #define NXP_UICC_RD_RIGHTS 0x00U -#endif +#endif /* @@ -302,7 +302,7 @@ */ #define ES_HW_VER 32 - + /* ***************************************************************** *************** FEATURE SPECIFIC MACROS ************************* @@ -319,7 +319,7 @@ #endif #if (NXP_SMX == 1) -#define NXP_HAL_ENABLE_SMX +#define NXP_HAL_ENABLE_SMX #endif /**< Macro to Enable the Host Session @@ -373,7 +373,17 @@ #define RECONNECT_SUPPORT /**< Macro to Enable the Card Emulation Feature */ -/* #define HOST_EMULATION */ +#define HOST_EMULATION + +//this ifdef can be removed when this is not a patch that is being +//administered after a new release of Android. it is required that +//the new pipes for A and B emu get created for the CE patch ON THE NFC CHIP +//if this patch is adminstered AFTER the phone has been already updated with +//a release, it is possible that the create A/B pipe code could never +//get executed, so we are forcing it every time. this can be removed +//for a main build with a new OS release, or any time this build has run at +//least once on a device +#define FIRST_CE_PATCH #define NXP_HAL_VERIFY_EEPROM_CRC 0x01U |