ESPHome 2026.12.0-dev
Loading...
Searching...
No Matches
esphome::WarnIfLongerThan< MAX, WARN > Struct Template Reference

FrameFormat option: a frame longer than MAX calls WARN(length) and is skipped; a replay can warn again. More...

#include <frame_reader.h>

Inheritance diagram for esphome::WarnIfLongerThan< MAX, WARN >:
esphome::FrameOption

Static Public Member Functions

static bool fits (size_t len)
 
- Static Public Member Functions inherited from esphome::FrameOption
static constexpr bool check (const uint8_t *)
 
static constexpr bool fits (size_t)
 

Static Public Attributes

static constexpr size_t WARN_MAX = MAX
 
- Static Public Attributes inherited from esphome::FrameOption
static constexpr size_t MIN = 0
 
static constexpr size_t CHECK_AT = 0
 
static constexpr size_t WARN_MAX = 0
 

Detailed Description

template<size_t MAX, void(*)(size_t) WARN>
struct esphome::WarnIfLongerThan< MAX, WARN >

FrameFormat option: a frame longer than MAX calls WARN(length) and is skipped; a replay can warn again.

Definition at line 152 of file frame_reader.h.

Member Function Documentation

◆ fits()

template<size_t MAX, void(*)(size_t) WARN>
static bool esphome::WarnIfLongerThan< MAX, WARN >::fits ( size_t len)
inlinestatic

Definition at line 154 of file frame_reader.h.

Field Documentation

◆ WARN_MAX

template<size_t MAX, void(*)(size_t) WARN>
size_t esphome::WarnIfLongerThan< MAX, WARN >::WARN_MAX = MAX
staticconstexpr

Definition at line 153 of file frame_reader.h.


The documentation for this struct was generated from the following file: