ESPHome  2024.11.3
Data Structures | Functions
esphome::nfc Namespace Reference

Data Structures

class  NciMessage
 
class  NdefMessage
 
class  NdefRecord
 
class  NdefRecordText
 
class  NdefRecordUri
 
class  Nfcc
 
class  NfcOnTagTrigger
 
class  NfcTag
 
class  NfcTagBinarySensor
 
class  NfcTagListener
 

Functions

std::string format_uid (std::vector< uint8_t > &uid)
 
std::string format_bytes (std::vector< uint8_t > &bytes)
 
uint8_t guess_tag_type (uint8_t uid_length)
 
uint8_t get_mifare_classic_ndef_start_index (std::vector< uint8_t > &data)
 
bool decode_mifare_classic_tlv (std::vector< uint8_t > &data, uint32_t &message_length, uint8_t &message_start_index)
 
uint32_t get_mifare_ultralight_buffer_size (uint32_t message_length)
 
uint32_t get_mifare_classic_buffer_size (uint32_t message_length)
 
bool mifare_classic_is_first_block (uint8_t block_num)
 
bool mifare_classic_is_trailer_block (uint8_t block_num)
 
bool has_ha_tag_ndef (NfcTag &tag)
 
std::string get_ha_tag_ndef (NfcTag &tag)
 
std::string get_random_ha_tag_ndef ()
 

Function Documentation

◆ decode_mifare_classic_tlv()

bool esphome::nfc::decode_mifare_classic_tlv ( std::vector< uint8_t > &  data,
uint32_t &  message_length,
uint8_t &  message_start_index 
)

Definition at line 55 of file nfc.cpp.

◆ format_bytes()

std::string esphome::nfc::format_bytes ( std::vector< uint8_t > &  bytes)

Definition at line 22 of file nfc.cpp.

◆ format_uid()

std::string esphome::nfc::format_uid ( std::vector< uint8_t > &  uid)

Definition at line 10 of file nfc.cpp.

◆ get_ha_tag_ndef()

std::string esphome::nfc::get_ha_tag_ndef ( NfcTag tag)

Definition at line 10 of file nfc_helpers.cpp.

◆ get_mifare_classic_buffer_size()

uint32_t esphome::nfc::get_mifare_classic_buffer_size ( uint32_t  message_length)

Definition at line 78 of file nfc.cpp.

◆ get_mifare_classic_ndef_start_index()

uint8_t esphome::nfc::get_mifare_classic_ndef_start_index ( std::vector< uint8_t > &  data)

Definition at line 42 of file nfc.cpp.

◆ get_mifare_ultralight_buffer_size()

uint32_t esphome::nfc::get_mifare_ultralight_buffer_size ( uint32_t  message_length)

Definition at line 71 of file nfc.cpp.

◆ get_random_ha_tag_ndef()

std::string esphome::nfc::get_random_ha_tag_ndef ( )

Definition at line 26 of file nfc_helpers.cpp.

◆ guess_tag_type()

uint8_t esphome::nfc::guess_tag_type ( uint8_t  uid_length)

Definition at line 34 of file nfc.cpp.

◆ has_ha_tag_ndef()

bool esphome::nfc::has_ha_tag_ndef ( NfcTag tag)

Definition at line 8 of file nfc_helpers.cpp.

◆ mifare_classic_is_first_block()

bool esphome::nfc::mifare_classic_is_first_block ( uint8_t  block_num)

Definition at line 91 of file nfc.cpp.

◆ mifare_classic_is_trailer_block()

bool esphome::nfc::mifare_classic_is_trailer_block ( uint8_t  block_num)

Definition at line 99 of file nfc.cpp.