|
cryptnox-sdk-esp32 1.0.0
ESP32 SDK for Cryptnox Hardware Wallet
|
Compile-time configuration passed to pn532_init. More...
#include <pn532.h>
Public Attributes | |
| pn532_transport_t | transport |
| spi_host_device_t | spi_host |
| int | pin_mosi |
| int | pin_miso |
| int | pin_sclk |
| int | pin_cs |
| bool | skip_bus_init |
| int | i2c_port |
| int | pin_sda |
| int | pin_scl |
| int | pin_irq |
| int | pin_rst |
| uint32_t | i2c_clock_hz |
Compile-time configuration passed to pn532_init.
Only the fields that correspond to the selected transport need to be initialised; fields for the other transport are ignored.
| uint32_t pn532_config_t::i2c_clock_hz |
I²C clock frequency in Hz (100000 standard, 400000 fast).
Definition at line 128 of file pn532.h.
Referenced by app_main(), and pn532_init_i2c().
| int pn532_config_t::i2c_port |
I²C port number (I2C_NUM_0 or I2C_NUM_1).
Definition at line 123 of file pn532.h.
Referenced by app_main(), and pn532_init_i2c().
| int pn532_config_t::pin_cs |
Chip-select GPIO number (software-driven).
Definition at line 119 of file pn532.h.
Referenced by app_main(), and pn532_init_spi().
| int pn532_config_t::pin_irq |
IRQ input GPIO (-1 = unused; IRQ is not currently used by the driver).
Definition at line 126 of file pn532.h.
Referenced by app_main(), and pn532_init_i2c().
| int pn532_config_t::pin_miso |
MISO GPIO number (ignored when skip_bus_init is true).
Definition at line 117 of file pn532.h.
Referenced by pn532_init_spi().
| int pn532_config_t::pin_mosi |
MOSI GPIO number (ignored when skip_bus_init is true).
Definition at line 116 of file pn532.h.
Referenced by pn532_init_spi().
| int pn532_config_t::pin_rst |
Reset output GPIO (-1 = unused; a pulse is asserted on init when provided).
Definition at line 127 of file pn532.h.
Referenced by app_main(), and pn532_init_i2c().
| int pn532_config_t::pin_scl |
SCL GPIO number.
Definition at line 125 of file pn532.h.
Referenced by app_main(), and pn532_init_i2c().
| int pn532_config_t::pin_sclk |
SCLK GPIO number (ignored when skip_bus_init is true).
Definition at line 118 of file pn532.h.
Referenced by pn532_init_spi().
| int pn532_config_t::pin_sda |
SDA GPIO number.
Definition at line 124 of file pn532.h.
Referenced by app_main(), and pn532_init_i2c().
| bool pn532_config_t::skip_bus_init |
When true, skip spi_bus_initialize(); caller has already done it.
Definition at line 120 of file pn532.h.
Referenced by app_main(), and pn532_init_spi().
| spi_host_device_t pn532_config_t::spi_host |
SPI peripheral (SPI2_HOST or SPI3_HOST).
Definition at line 115 of file pn532.h.
Referenced by app_main(), and pn532_init_spi().
| pn532_transport_t pn532_config_t::transport |
Active transport (PN532_TRANSPORT_SPI or PN532_TRANSPORT_I2C).
Definition at line 112 of file pn532.h.
Referenced by app_main(), and pn532_init().