ESPHome 2026.1.4
Loading...
Searching...
No Matches
nfc.cpp File Reference

Go to the source code of this file.

Namespaces

namespace  esphome
 Providing packet encoding functions for exchanging data with a remote host.
 
namespace  esphome::nfc
 

Functions

char * esphome::nfc::format_uid_to (char *buffer, const std::vector< 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, const std::vector< uint8_t > &bytes)
 Format bytes to buffer with ' ' separator (e.g., "04 11 22 33"). Returns buffer for inline use.
 
std::string esphome::nfc::format_uid (const std::vector< uint8_t > &uid)
 
std::string esphome::nfc::format_bytes (const std::vector< uint8_t > &bytes)
 
uint8_t esphome::nfc::guess_tag_type (uint8_t uid_length)
 
uint8_t esphome::nfc::get_mifare_classic_ndef_start_index (std::vector< uint8_t > &data)
 
bool esphome::nfc::decode_mifare_classic_tlv (std::vector< 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)
 
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)