ESPHome 2026.11.0b6
Loading...
Searching...
No Matches
ld24xx.h File Reference

Go to the source code of this file.

Namespaces

namespace  esphome
 
namespace  esphome::ld24xx
 

Functions

template<typename T , size_t N>
optional< size_t > esphome::ld24xx::find_index (const T(&arr)[N], T value)
 
const char * esphome::ld24xx::format_mac_str (const uint8_t *mac_address, std::span< char, MAC_ADDRESS_PRETTY_BUFFER_SIZE > buffer)
 
bool esphome::ld24xx::store_mac (const uint8_t *reported, uint8_t *mac_address)
 
void esphome::ld24xx::format_version_str (const uint8_t *version, std::span< char, 20 > buffer)
 
bool esphome::ld24xx::validate_header_footer (const uint8_t *header_footer, const uint8_t *buffer)
 
uint32_t esphome::ld24xx::cmd_frame_length (const uint8_t *buffer, uint8_t count)
 
uint8_t esphome::ld24xx::drop_to_next_header (uint8_t *buffer, uint8_t count, uint8_t from, const uint8_t *data_header)
 
template<size_t N, typename LengthFn , typename HandleFn , typename DropFn >
void esphome::ld24xx::feed_frame_byte (uint8_t(&buffer)[N], uint8_t &pos, uint8_t byte, const uint8_t *data_header, LengthFn frame_length, HandleFn handle_frame, DropFn on_drop)