ESPHome 2025.7.1
Loading...
Searching...
No Matches
esphome::nextion::NextionComponent::ComponentState Struct Reference

Component state management using compact bitfield structure. More...

#include <nextion_component.h>

Data Fields

uint16_t bco_needs_update: 1
 
uint16_t bco_is_set: 1
 
uint16_t bco2_needs_update: 1
 
uint16_t bco2_is_set: 1
 
uint16_t pco_needs_update: 1
 
uint16_t pco_is_set: 1
 
uint16_t pco2_needs_update: 1
 
uint16_t pco2_is_set: 1
 
uint16_t font_id_needs_update: 1
 
uint16_t font_id_is_set: 1
 
uint16_t visible_needs_update: 1
 
uint16_t visible_is_set: 1
 
uint16_t visible: 1
 
uint16_t reserved: 3
 

Detailed Description

Component state management using compact bitfield structure.

Stores all component state flags and properties in a single 16-bit bitfield for efficient memory usage and improved cache locality.

Each component property maintains two state flags:

  • needs_update: Indicates the property requires synchronization with the display
  • is_set: Tracks whether the property has been explicitly configured

The visible field stores both the update flags and the actual visibility state.

Definition at line 53 of file nextion_component.h.

Field Documentation

◆ bco2_is_set

uint16_t esphome::nextion::NextionComponent::ComponentState::bco2_is_set

Definition at line 60 of file nextion_component.h.

◆ bco2_needs_update

uint16_t esphome::nextion::NextionComponent::ComponentState::bco2_needs_update

Definition at line 59 of file nextion_component.h.

◆ bco_is_set

uint16_t esphome::nextion::NextionComponent::ComponentState::bco_is_set

Definition at line 56 of file nextion_component.h.

◆ bco_needs_update

uint16_t esphome::nextion::NextionComponent::ComponentState::bco_needs_update

Definition at line 55 of file nextion_component.h.

◆ font_id_is_set

uint16_t esphome::nextion::NextionComponent::ComponentState::font_id_is_set

Definition at line 72 of file nextion_component.h.

◆ font_id_needs_update

uint16_t esphome::nextion::NextionComponent::ComponentState::font_id_needs_update

Definition at line 71 of file nextion_component.h.

◆ pco2_is_set

uint16_t esphome::nextion::NextionComponent::ComponentState::pco2_is_set

Definition at line 68 of file nextion_component.h.

◆ pco2_needs_update

uint16_t esphome::nextion::NextionComponent::ComponentState::pco2_needs_update

Definition at line 67 of file nextion_component.h.

◆ pco_is_set

uint16_t esphome::nextion::NextionComponent::ComponentState::pco_is_set

Definition at line 64 of file nextion_component.h.

◆ pco_needs_update

uint16_t esphome::nextion::NextionComponent::ComponentState::pco_needs_update

Definition at line 63 of file nextion_component.h.

◆ reserved

uint16_t esphome::nextion::NextionComponent::ComponentState::reserved

Definition at line 80 of file nextion_component.h.

◆ visible

uint16_t esphome::nextion::NextionComponent::ComponentState::visible

Definition at line 77 of file nextion_component.h.

◆ visible_is_set

uint16_t esphome::nextion::NextionComponent::ComponentState::visible_is_set

Definition at line 76 of file nextion_component.h.

◆ visible_needs_update

uint16_t esphome::nextion::NextionComponent::ComponentState::visible_needs_update

Definition at line 75 of file nextion_component.h.


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