|
cryptnox-sdk-esp32 1.0.0
ESP32 SDK for Cryptnox Hardware Wallet
|
Opaque-like runtime state for a single PN532 instance. More...
#include <pn532.h>
Public Attributes | |
| pn532_transport_t | transport |
| spi_device_handle_t | spi |
| int | pin_cs |
| i2c_master_bus_handle_t | i2c_bus |
| i2c_master_dev_handle_t | i2c_dev |
| int | pin_irq |
| int | pin_rst |
Opaque-like runtime state for a single PN532 instance.
Populated by pn532_init; must remain valid for the lifetime of all subsequent driver calls. Do not read or write fields directly — treat this as an opaque handle.
| i2c_master_bus_handle_t pn532_t::i2c_bus |
I²C bus handle returned by i2c_new_master_bus().
Definition at line 149 of file pn532.h.
Referenced by pn532_init_i2c().
| i2c_master_dev_handle_t pn532_t::i2c_dev |
I²C device handle returned by i2c_master_bus_add_device().
Definition at line 150 of file pn532.h.
Referenced by i2c_read_ready(), pn532_init_i2c(), read_data(), read_data_apdu_frame(), and write_command().
| int pn532_t::pin_cs |
Chip-select GPIO (cached from config for fast toggling).
Definition at line 146 of file pn532.h.
Referenced by pn532_init_spi(), read_data(), read_data_apdu_frame(), read_ready(), and write_command().
| int pn532_t::pin_irq |
| int pn532_t::pin_rst |
Reset GPIO (-1 when unused).
Definition at line 152 of file pn532.h.
Referenced by pn532_init_i2c().
| spi_device_handle_t pn532_t::spi |
SPI device handle returned by spi_bus_add_device().
Definition at line 145 of file pn532.h.
Referenced by pn532_init_spi(), spi_read_byte(), and spi_write_byte().
| pn532_transport_t pn532_t::transport |
Active transport (copied from pn532_config_t).
Definition at line 142 of file pn532.h.
Referenced by pn532_init(), read_data(), read_data_apdu_frame(), read_ready(), and write_command().