ESPHome 2026.11.0-dev
Loading...
Searching...
No Matches
nfc.cpp File Reference

Go to the source code of this file.

Namespaces

namespace  esphome
 
namespace  esphome::nfc
 

Functions

 esphome::nfc::ESPHOME_LOG_TAG (TAG, "nfc")
 
char * esphome::nfc::format_uid_to (char *buffer, std::span< const uint8_t > uid)
 Format UID to buffer with '-' separator (e.g., "04-11-22-33"). Returns buffer for inline use.
 
char * esphome::nfc::format_bytes_to (char *buffer, std::span< const uint8_t > bytes)
 Format bytes to buffer with ' ' separator (e.g., "04 11 22 33"). Returns buffer for inline use.
 
uint8_t esphome::nfc::guess_tag_type (uint8_t uid_length)
 
int8_t esphome::nfc::get_mifare_classic_ndef_start_index (const std::span< const uint8_t > data)
 
bool esphome::nfc::decode_mifare_classic_tlv (const std::span< const uint8_t > data, uint32_t &message_length, uint8_t &message_start_index)
 
uint32_t esphome::nfc::get_mifare_ultralight_buffer_size (uint32_t message_length)
 
void esphome::nfc::fill_ndef_tlv (std::span< const uint8_t > message, uint32_t buffer_length, FixedVector< uint8_t > &buffer)
 Fills buffer with the NDEF TLV (type, length, message, terminator) padded with zeros to buffer_length
 
uint32_t esphome::nfc::get_mifare_classic_buffer_size (uint32_t message_length)
 
bool esphome::nfc::mifare_classic_is_first_block (uint8_t block_num)
 
bool esphome::nfc::mifare_classic_is_trailer_block (uint8_t block_num)