ESPHome  2024.12.2
Data Structures | Typedefs | Functions | Variables
esphome::bl0906 Namespace Reference

Data Structures

class  BL0906
 
struct  DataPacket
 
class  ResetEnergyAction
 
struct  sbe24_t
 
struct  ube24_t
 

Typedefs

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

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 = typedef void (BL0906::*)()

Definition at line 39 of file bl0906.h.

Function Documentation

◆ __attribute__()

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

◆ bl0906_checksum()

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

Definition at line 16 of file bl0906.cpp.

◆ to_int32_t()

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

Definition at line 13 of file bl0906.cpp.

◆ to_uint32_t()

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

Definition at line 11 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 115 of file constants.h.