ESPHome 2026.11.0-dev
Loading...
Searching...
No Matches
esphome::pn532 Namespace Reference

Data Structures

class  PN532
 
class  PN532BinarySensor
 

Typedefs

using PN532Frame = StaticVector<uint8_t, PN532_FRAME_MAX_SIZE>
 Holds one frame in either direction so bus traffic never allocates.
 
using MifareReadData = std::array<uint8_t, MIFARE_READ_SIZE>
 
using UltralightHeader = std::array<uint8_t, MIFARE_READ_SIZE>
 Pages 3 to 6, read in one go: the capability container and the start of the NDEF TLV.
 

Enumerations

enum  PN532ReadReady : uint8_t { WOULDBLOCK = 0 , TIMEOUT , READY }
 

Functions

 ESPHOME_LOG_TAG (TAG, "pn532")
 
uint8_t tag_type_from_sel_res (uint8_t sel_res)
 Tag type (nfc::TAG_TYPE_*) from a type A target's SEL_RES byte.
 
 ESPHOME_LOG_TAG (TAG, "pn532.mifare_classic")
 
 ESPHOME_LOG_TAG (TAG, "pn532.mifare_ultralight")
 

Typedef Documentation

◆ MifareReadData

using esphome::pn532::MifareReadData = std::array<uint8_t, MIFARE_READ_SIZE>

Definition at line 59 of file pn532.h.

◆ PN532Frame

using esphome::pn532::PN532Frame = StaticVector<uint8_t, PN532_FRAME_MAX_SIZE>

Holds one frame in either direction so bus traffic never allocates.

Definition at line 52 of file pn532.h.

◆ UltralightHeader

using esphome::pn532::UltralightHeader = std::array<uint8_t, MIFARE_READ_SIZE>

Pages 3 to 6, read in one go: the capability container and the start of the NDEF TLV.

Definition at line 61 of file pn532.h.

Enumeration Type Documentation

◆ PN532ReadReady

Enumerator
WOULDBLOCK 
TIMEOUT 
READY 

Definition at line 24 of file pn532.h.

Function Documentation

◆ ESPHOME_LOG_TAG() [1/3]

esphome::pn532::ESPHOME_LOG_TAG ( TAG ,
"pn532"  )

◆ ESPHOME_LOG_TAG() [2/3]

esphome::pn532::ESPHOME_LOG_TAG ( TAG ,
"pn532.mifare_classic"  )

◆ ESPHOME_LOG_TAG() [3/3]

esphome::pn532::ESPHOME_LOG_TAG ( TAG ,
"pn532.mifare_ultralight"  )

◆ tag_type_from_sel_res()

uint8_t esphome::pn532::tag_type_from_sel_res ( uint8_t sel_res)
inline

Tag type (nfc::TAG_TYPE_*) from a type A target's SEL_RES byte.

Definition at line 36 of file pn532.h.