nRF5 SDK v13.0.0
Macros
Hardware Abstraction Layer for NFC library. configuration

Macros

#define NFC_HAL_ENABLED
 Set to 1 to activate. More...
 
#define NFCT_CONFIG_IRQ_PRIORITY
 Interrupt priority. More...
 
#define HAL_NFC_CONFIG_LOG_ENABLED
 Enables logging in the module. More...
 
#define HAL_NFC_CONFIG_LOG_LEVEL
 Default Severity level. More...
 
#define HAL_NFC_CONFIG_INFO_COLOR
 ANSI escape code prefix. More...
 
#define HAL_NFC_CONFIG_DEBUG_COLOR
 ANSI escape code prefix. More...
 
#define HAL_NFC_CONFIG_DEBUG_PIN_ENABLED
 Enables pin debug in the module. More...
 
#define HAL_NFC_HCLOCK_ON_DEBUG_PIN
 Pin number. More...
 
#define HAL_NFC_HCLOCK_OFF_DEBUG_PIN
 Pin number. More...
 
#define HAL_NFC_NFC_EVENT_DEBUG_PIN
 Pin number. More...
 
#define HAL_NFC_DETECT_EVENT_DEBUG_PIN
 Pin number. More...
 
#define HAL_NFC_TIMER4_EVENT_DEBUG_PIN
 Pin number. More...
 
#define HAL_NFC_FIELD_TIMER_PERIOD
 TIMER4 period in us (used for workaround). More...
 

Detailed Description

Macro Definition Documentation

#define HAL_NFC_CONFIG_DEBUG_COLOR

ANSI escape code prefix.

Following options are available:

  • 0 - Default
  • 1 - Black
  • 2 - Red
  • 3 - Green
  • 4 - Yellow
  • 5 - Blue
  • 6 - Magenta
  • 7 - Cyan
  • 8 - White
Note
This is an NRF_CONFIG macro.
#define HAL_NFC_CONFIG_DEBUG_PIN_ENABLED

Enables pin debug in the module.

Set to 1 to activate.

Note
This is an NRF_CONFIG macro.
#define HAL_NFC_CONFIG_INFO_COLOR

ANSI escape code prefix.

Following options are available:

  • 0 - Default
  • 1 - Black
  • 2 - Red
  • 3 - Green
  • 4 - Yellow
  • 5 - Blue
  • 6 - Magenta
  • 7 - Cyan
  • 8 - White
Note
This is an NRF_CONFIG macro.
#define HAL_NFC_CONFIG_LOG_ENABLED

Enables logging in the module.

Set to 1 to activate.

Note
This is an NRF_CONFIG macro.
#define HAL_NFC_CONFIG_LOG_LEVEL

Default Severity level.

Following options are available:

  • 0 - Off
  • 1 - Error
  • 2 - Warning
  • 3 - Info
  • 4 - Debug
Note
This is an NRF_CONFIG macro.
#define HAL_NFC_DETECT_EVENT_DEBUG_PIN

Pin number.

Following options are available:

  • 0 - 0 (P0.0)
  • 1 - 1 (P0.1)
  • 2 - 2 (P0.2)
  • 3 - 3 (P0.3)
  • 4 - 4 (P0.4)
  • 5 - 5 (P0.5)
  • 6 - 6 (P0.6)
  • 7 - 7 (P0.7)
  • 8 - 8 (P0.8)
  • 9 - 9 (P0.9)
  • 10 - 10 (P0.10)
  • 11 - 11 (P0.11)
  • 12 - 12 (P0.12)
  • 13 - 13 (P0.13)
  • 14 - 14 (P0.14)
  • 15 - 15 (P0.15)
  • 16 - 16 (P0.16)
  • 17 - 17 (P0.17)
  • 18 - 18 (P0.18)
  • 19 - 19 (P0.19)
  • 20 - 20 (P0.20)
  • 21 - 21 (P0.21)
  • 22 - 22 (P0.22)
  • 23 - 23 (P0.23)
  • 24 - 24 (P0.24)
  • 25 - 25 (P0.25)
  • 26 - 26 (P0.26)
  • 27 - 27 (P0.27)
  • 28 - 28 (P0.28)
  • 29 - 29 (P0.29)
  • 30 - 30 (P0.30)
  • 31 - 31 (P0.31)
  • 32 - 32 (P1.0) (Software Component only)
  • 33 - 33 (P1.1) (Software Component only)
  • 34 - 34 (P1.2) (Software Component only)
  • 35 - 35 (P1.3) (Software Component only)
  • 36 - 36 (P1.4) (Software Component only)
  • 37 - 37 (P1.5) (Software Component only)
  • 38 - 38 (P1.6) (Software Component only)
  • 39 - 39 (P1.7) (Software Component only)
  • 40 - 40 (P1.8) (Software Component only)
  • 41 - 41 (P1.9) (Software Component only)
  • 42 - 42 (P1.10) (Software Component only)
  • 43 - 43 (P1.11) (Software Component only)
  • 44 - 44 (P1.12) (Software Component only)
  • 45 - 45 (P1.13) (Software Component only)
  • 46 - 46 (P1.14) (Software Component only)
  • 47 - 47 (P1.15) (Software Component only)
  • 4294967295 - Not connected
Note
This is an NRF_CONFIG macro.
#define HAL_NFC_FIELD_TIMER_PERIOD

TIMER4 period in us (used for workaround).

This value is used as a timeout for polling NFC field to detect FIELDLOST event. This value can affect Tag behavior.

Minimum value: 100 Maximum value: 10000

Note
This is an NRF_CONFIG macro.
#define HAL_NFC_HCLOCK_OFF_DEBUG_PIN

Pin number.

Following options are available:

  • 0 - 0 (P0.0)
  • 1 - 1 (P0.1)
  • 2 - 2 (P0.2)
  • 3 - 3 (P0.3)
  • 4 - 4 (P0.4)
  • 5 - 5 (P0.5)
  • 6 - 6 (P0.6)
  • 7 - 7 (P0.7)
  • 8 - 8 (P0.8)
  • 9 - 9 (P0.9)
  • 10 - 10 (P0.10)
  • 11 - 11 (P0.11)
  • 12 - 12 (P0.12)
  • 13 - 13 (P0.13)
  • 14 - 14 (P0.14)
  • 15 - 15 (P0.15)
  • 16 - 16 (P0.16)
  • 17 - 17 (P0.17)
  • 18 - 18 (P0.18)
  • 19 - 19 (P0.19)
  • 20 - 20 (P0.20)
  • 21 - 21 (P0.21)
  • 22 - 22 (P0.22)
  • 23 - 23 (P0.23)
  • 24 - 24 (P0.24)
  • 25 - 25 (P0.25)
  • 26 - 26 (P0.26)
  • 27 - 27 (P0.27)
  • 28 - 28 (P0.28)
  • 29 - 29 (P0.29)
  • 30 - 30 (P0.30)
  • 31 - 31 (P0.31)
  • 32 - 32 (P1.0) (Software Component only)
  • 33 - 33 (P1.1) (Software Component only)
  • 34 - 34 (P1.2) (Software Component only)
  • 35 - 35 (P1.3) (Software Component only)
  • 36 - 36 (P1.4) (Software Component only)
  • 37 - 37 (P1.5) (Software Component only)
  • 38 - 38 (P1.6) (Software Component only)
  • 39 - 39 (P1.7) (Software Component only)
  • 40 - 40 (P1.8) (Software Component only)
  • 41 - 41 (P1.9) (Software Component only)
  • 42 - 42 (P1.10) (Software Component only)
  • 43 - 43 (P1.11) (Software Component only)
  • 44 - 44 (P1.12) (Software Component only)
  • 45 - 45 (P1.13) (Software Component only)
  • 46 - 46 (P1.14) (Software Component only)
  • 47 - 47 (P1.15) (Software Component only)
  • 4294967295 - Not connected
Note
This is an NRF_CONFIG macro.
#define HAL_NFC_HCLOCK_ON_DEBUG_PIN

Pin number.

Following options are available:

  • 0 - 0 (P0.0)
  • 1 - 1 (P0.1)
  • 2 - 2 (P0.2)
  • 3 - 3 (P0.3)
  • 4 - 4 (P0.4)
  • 5 - 5 (P0.5)
  • 6 - 6 (P0.6)
  • 7 - 7 (P0.7)
  • 8 - 8 (P0.8)
  • 9 - 9 (P0.9)
  • 10 - 10 (P0.10)
  • 11 - 11 (P0.11)
  • 12 - 12 (P0.12)
  • 13 - 13 (P0.13)
  • 14 - 14 (P0.14)
  • 15 - 15 (P0.15)
  • 16 - 16 (P0.16)
  • 17 - 17 (P0.17)
  • 18 - 18 (P0.18)
  • 19 - 19 (P0.19)
  • 20 - 20 (P0.20)
  • 21 - 21 (P0.21)
  • 22 - 22 (P0.22)
  • 23 - 23 (P0.23)
  • 24 - 24 (P0.24)
  • 25 - 25 (P0.25)
  • 26 - 26 (P0.26)
  • 27 - 27 (P0.27)
  • 28 - 28 (P0.28)
  • 29 - 29 (P0.29)
  • 30 - 30 (P0.30)
  • 31 - 31 (P0.31)
  • 32 - 32 (P1.0) (Software Component only)
  • 33 - 33 (P1.1) (Software Component only)
  • 34 - 34 (P1.2) (Software Component only)
  • 35 - 35 (P1.3) (Software Component only)
  • 36 - 36 (P1.4) (Software Component only)
  • 37 - 37 (P1.5) (Software Component only)
  • 38 - 38 (P1.6) (Software Component only)
  • 39 - 39 (P1.7) (Software Component only)
  • 40 - 40 (P1.8) (Software Component only)
  • 41 - 41 (P1.9) (Software Component only)
  • 42 - 42 (P1.10) (Software Component only)
  • 43 - 43 (P1.11) (Software Component only)
  • 44 - 44 (P1.12) (Software Component only)
  • 45 - 45 (P1.13) (Software Component only)
  • 46 - 46 (P1.14) (Software Component only)
  • 47 - 47 (P1.15) (Software Component only)
  • 4294967295 - Not connected
Note
This is an NRF_CONFIG macro.
#define HAL_NFC_NFC_EVENT_DEBUG_PIN

Pin number.

Following options are available:

  • 0 - 0 (P0.0)
  • 1 - 1 (P0.1)
  • 2 - 2 (P0.2)
  • 3 - 3 (P0.3)
  • 4 - 4 (P0.4)
  • 5 - 5 (P0.5)
  • 6 - 6 (P0.6)
  • 7 - 7 (P0.7)
  • 8 - 8 (P0.8)
  • 9 - 9 (P0.9)
  • 10 - 10 (P0.10)
  • 11 - 11 (P0.11)
  • 12 - 12 (P0.12)
  • 13 - 13 (P0.13)
  • 14 - 14 (P0.14)
  • 15 - 15 (P0.15)
  • 16 - 16 (P0.16)
  • 17 - 17 (P0.17)
  • 18 - 18 (P0.18)
  • 19 - 19 (P0.19)
  • 20 - 20 (P0.20)
  • 21 - 21 (P0.21)
  • 22 - 22 (P0.22)
  • 23 - 23 (P0.23)
  • 24 - 24 (P0.24)
  • 25 - 25 (P0.25)
  • 26 - 26 (P0.26)
  • 27 - 27 (P0.27)
  • 28 - 28 (P0.28)
  • 29 - 29 (P0.29)
  • 30 - 30 (P0.30)
  • 31 - 31 (P0.31)
  • 32 - 32 (P1.0) (Software Component only)
  • 33 - 33 (P1.1) (Software Component only)
  • 34 - 34 (P1.2) (Software Component only)
  • 35 - 35 (P1.3) (Software Component only)
  • 36 - 36 (P1.4) (Software Component only)
  • 37 - 37 (P1.5) (Software Component only)
  • 38 - 38 (P1.6) (Software Component only)
  • 39 - 39 (P1.7) (Software Component only)
  • 40 - 40 (P1.8) (Software Component only)
  • 41 - 41 (P1.9) (Software Component only)
  • 42 - 42 (P1.10) (Software Component only)
  • 43 - 43 (P1.11) (Software Component only)
  • 44 - 44 (P1.12) (Software Component only)
  • 45 - 45 (P1.13) (Software Component only)
  • 46 - 46 (P1.14) (Software Component only)
  • 47 - 47 (P1.15) (Software Component only)
  • 4294967295 - Not connected
Note
This is an NRF_CONFIG macro.
#define HAL_NFC_TIMER4_EVENT_DEBUG_PIN

Pin number.

Following options are available:

  • 0 - 0 (P0.0)
  • 1 - 1 (P0.1)
  • 2 - 2 (P0.2)
  • 3 - 3 (P0.3)
  • 4 - 4 (P0.4)
  • 5 - 5 (P0.5)
  • 6 - 6 (P0.6)
  • 7 - 7 (P0.7)
  • 8 - 8 (P0.8)
  • 9 - 9 (P0.9)
  • 10 - 10 (P0.10)
  • 11 - 11 (P0.11)
  • 12 - 12 (P0.12)
  • 13 - 13 (P0.13)
  • 14 - 14 (P0.14)
  • 15 - 15 (P0.15)
  • 16 - 16 (P0.16)
  • 17 - 17 (P0.17)
  • 18 - 18 (P0.18)
  • 19 - 19 (P0.19)
  • 20 - 20 (P0.20)
  • 21 - 21 (P0.21)
  • 22 - 22 (P0.22)
  • 23 - 23 (P0.23)
  • 24 - 24 (P0.24)
  • 25 - 25 (P0.25)
  • 26 - 26 (P0.26)
  • 27 - 27 (P0.27)
  • 28 - 28 (P0.28)
  • 29 - 29 (P0.29)
  • 30 - 30 (P0.30)
  • 31 - 31 (P0.31)
  • 32 - 32 (P1.0) (Software Component only)
  • 33 - 33 (P1.1) (Software Component only)
  • 34 - 34 (P1.2) (Software Component only)
  • 35 - 35 (P1.3) (Software Component only)
  • 36 - 36 (P1.4) (Software Component only)
  • 37 - 37 (P1.5) (Software Component only)
  • 38 - 38 (P1.6) (Software Component only)
  • 39 - 39 (P1.7) (Software Component only)
  • 40 - 40 (P1.8) (Software Component only)
  • 41 - 41 (P1.9) (Software Component only)
  • 42 - 42 (P1.10) (Software Component only)
  • 43 - 43 (P1.11) (Software Component only)
  • 44 - 44 (P1.12) (Software Component only)
  • 45 - 45 (P1.13) (Software Component only)
  • 46 - 46 (P1.14) (Software Component only)
  • 47 - 47 (P1.15) (Software Component only)
  • 4294967295 - Not connected
Note
This is an NRF_CONFIG macro.
#define NFC_HAL_ENABLED

Set to 1 to activate.

Note
This is an NRF_CONFIG macro.
#define NFCT_CONFIG_IRQ_PRIORITY

Interrupt priority.

Priorities 0,2 (nRF51) and 0,1,4,5 (nRF52) are reserved for SoftDevice

Following options are available:

  • 0 - 0 (highest)
  • 1 - 1
  • 2 - 2
  • 3 - 3
  • 4 - 4 (except nRF51 family)
  • 5 - 5 (except nRF51 family)
  • 6 - 6 (except nRF51 family)
  • 7 - 7 (except nRF51 family)
Note
This is an NRF_CONFIG macro.

Documentation feedback | Developer Zone | Subscribe | Updated