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

Data Structures

class  NdefMessage
 
class  NdefRecord
 
class  NdefRecordText
 
class  NdefRecordUri
 
class  NfcTag
 

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)
 

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_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.

◆ guess_tag_type()

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

Definition at line 34 of file nfc.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.