ESPHome 2026.6.0-dev
Loading...
Searching...
No Matches
esphome::bl0906 Namespace Reference

Data Structures

class  BL0906
 
struct  DataPacket
 
class  ResetEnergyAction
 
struct  sbe24_t
 
struct  ube24_t
 

Typedefs

using ActionCallbackFuncPtr = void (BL0906::*)()
 

Enumerations

enum  BL0906Stage : uint8_t {
  STAGE_TEMP = 0 , STAGE_CHANNEL_1 = 1 , STAGE_CHANNEL_2 = 2 , STAGE_CHANNEL_3 = 3 ,
  STAGE_CHANNEL_4 = 4 , STAGE_CHANNEL_5 = 5 , STAGE_CHANNEL_6 = 6 , STAGE_FREQ = UINT8_MAX - 2 ,
  STAGE_POWER = UINT8_MAX - 1 , STAGE_IDLE = UINT8_MAX
}
 

Functions

constexpr uint32_t to_uint32_t (ube24_t input)
 
constexpr int32_t to_int32_t (sbe24_t input)
 
constexpr uint8_t bl0906_checksum (const uint8_t address, const DataPacket *data)
 
struct esphome::bl0906::DataPacket __attribute__ ((packed))
 

Variables

esphome::bl0906::BL0906 __attribute__
 
const uint8_t BL0906_INIT [2][6]
 

Typedef Documentation

◆ ActionCallbackFuncPtr

using esphome::bl0906::ActionCallbackFuncPtr = void (BL0906::*)()

Definition at line 54 of file bl0906.h.

Enumeration Type Documentation

◆ BL0906Stage

Enumerator
STAGE_TEMP 
STAGE_CHANNEL_1 
STAGE_CHANNEL_2 
STAGE_CHANNEL_3 
STAGE_CHANNEL_4 
STAGE_CHANNEL_5 
STAGE_CHANNEL_6 
STAGE_FREQ 
STAGE_POWER 
STAGE_IDLE 

Definition at line 17 of file bl0906.h.

Function Documentation

◆ __attribute__()

struct esphome::bl0906::DataPacket esphome::bl0906::__attribute__ ( (packed) )

◆ bl0906_checksum()

uint8_t esphome::bl0906::bl0906_checksum ( const uint8_t address,
const DataPacket * data )
constexpr

Definition at line 17 of file bl0906.cpp.

◆ to_int32_t()

int32_t esphome::bl0906::to_int32_t ( sbe24_t input)
constexpr

Definition at line 12 of file bl0906.cpp.

◆ to_uint32_t()

uint32_t esphome::bl0906::to_uint32_t ( ube24_t input)
constexpr

Definition at line 10 of file bl0906.cpp.

Variable Documentation

◆ __attribute__

struct esphome::bl0906::sbe24_t esphome::bl0906::__attribute__

◆ BL0906_INIT

const uint8_t esphome::bl0906::BL0906_INIT[2][6]
Initial value:
= {
{BL0906_WRITE_COMMAND, BL0906_SOFT_RESET, 0x5A, 0x5A, 0x5A, 0x52},
{BL0906_WRITE_COMMAND, BL0906_USR_WRPROT, 0x55, 0x55, 0x00, 0xB7}}

Definition at line 114 of file constants.h.