ESPHome 2026.12.0-dev
Loading...
Searching...
No Matches
esphome::bq25820 Namespace Reference

Data Structures

class  BQ25820Component
 
struct  BQ25820Config
 

Typedefs

using BQ25820StatusRegisters = std::array<uint8_t, 4>
 
using BQ25820AdcRegisters = std::array<int16_t, 7>
 

Functions

 ESPHOME_LOG_TAG (TAG, "bq25820")
 
 PROGMEM_STRING_TABLE (BQ25820StatusStrings, "Not Charging", "Trickle", "Precharge", "Fast Charge", "Taper", "Unknown", "Top-Off", "Done", "Normal", "Warm", "Cool", "Cold", "Hot")
 
void publish_status_text (text_sensor::TextSensor *sensor, uint8_t &last, uint8_t value, uint8_t first)
 Publishes string first + (value & 7), only on change.
 

Typedef Documentation

◆ BQ25820AdcRegisters

typedef std::array< uint8_t, 1 > esphome::bq25820::BQ25820AdcRegisters = std::array<int16_t, 7>

Definition at line 44 of file bq25820.h.

◆ BQ25820StatusRegisters

using esphome::bq25820::BQ25820StatusRegisters = std::array<uint8_t, 4>

Definition at line 41 of file bq25820.h.

Function Documentation

◆ ESPHOME_LOG_TAG()

esphome::bq25820::ESPHOME_LOG_TAG ( TAG ,
"bq25820"  )

◆ PROGMEM_STRING_TABLE()

esphome::bq25820::PROGMEM_STRING_TABLE ( BQ25820StatusStrings ,
"Not Charging" ,
"Trickle" ,
"Precharge" ,
"Fast Charge" ,
"Taper" ,
"Unknown" ,
"Top-Off" ,
"Done" ,
"Normal" ,
"Warm" ,
"Cool" ,
"Cold" ,
"Hot"  )

◆ publish_status_text()

void esphome::bq25820::publish_status_text ( text_sensor::TextSensor * sensor,
uint8_t & last,
uint8_t value,
uint8_t first )
inline

Publishes string first + (value & 7), only on change.

Definition at line 56 of file bq25820.h.