nRF5 SDK v13.0.0
Macros
Adafruit PN532 implementation for nRF5x configuration

Macros

#define ADAFRUIT_PN532_ENABLED
 Enabling Adafruit PN532 module. More...
 
#define PN532_IRQ
 Pin number. More...
 
#define PN532_RESET
 Pin number. More...
 
#define PN532_CONFIG_SCL
 Pin number. More...
 
#define PN532_CONFIG_SDA
 Pin number. More...
 
#define PN532_CONFIG_TWI_INSTANCE
 TWI instance to be used. More...
 
#define ADAFRUIT_PN532_LOG_ENABLED
 Enables logging in the module. More...
 
#define ADAFRUIT_PN532_LOG_LEVEL
 Default Severity level. More...
 
#define ADAFRUIT_PN532_INFO_COLOR
 ANSI escape code prefix. More...
 
#define PN532_PACKBUFF_SIZE
 Size of the buffer used for sending commands and storing responses. More...
 

Detailed Description

Macro Definition Documentation

#define ADAFRUIT_PN532_ENABLED

Enabling Adafruit PN532 module.

Set to 1 to activate.

Note
This is an NRF_CONFIG macro.
#define ADAFRUIT_PN532_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 ADAFRUIT_PN532_LOG_ENABLED

Enables logging in the module.

Set to 1 to activate.

Note
This is an NRF_CONFIG macro.
#define ADAFRUIT_PN532_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 PN532_CONFIG_SCL

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 PN532_CONFIG_SDA

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 PN532_CONFIG_TWI_INSTANCE

TWI instance to be used.

Following options are available:

  • 0
  • 1
  • 2
Note
This is an NRF_CONFIG macro.
#define PN532_IRQ

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 PN532_PACKBUFF_SIZE

Size of the buffer used for sending commands and storing responses.

Note
This is an NRF_CONFIG macro.
#define PN532_RESET

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.

Documentation feedback | Developer Zone | Subscribe | Updated