ESPHome 2026.11.0-dev
Loading...
Searching...
No Matches
esphome::bl0939 Namespace Reference

Data Structures

class  BL0939
 
union  DataPacket
 
struct  sbe24_t
 
struct  ube16_t
 
struct  ube24_t
 

Enumerations

enum class  BL0939Mode : uint8_t { BL0939_MODE_DIRECT = 0 , BL0939_MODE_CURRENT_TRANSFORMER = 1 }
 

Functions

 ESPHOME_LOG_TAG (TAG, "bl0939")
 
struct esphome::bl0939::ube24_t __attribute__ ((packed))
 

Variables

const uint8_t BL0939_INIT [6][6]
 
esphome::bl0939::BL0939 __attribute__
 

Enumeration Type Documentation

◆ BL0939Mode

enum class esphome::bl0939::BL0939Mode : uint8_t
strong
Enumerator
BL0939_MODE_DIRECT 
BL0939_MODE_CURRENT_TRANSFORMER 

Definition at line 33 of file bl0939.h.

Function Documentation

◆ __attribute__()

struct esphome::bl0939::ube24_t esphome::bl0939::__attribute__ ( (packed) )

◆ ESPHOME_LOG_TAG()

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

Variable Documentation

◆ __attribute__

union esphome::bl0939::DataPacket esphome::bl0939::__attribute__

◆ BL0939_INIT

const uint8_t esphome::bl0939::BL0939_INIT[6][6]
Initial value:
= {
{BL0939_WRITE_COMMAND, BL0939_REG_SOFT_RESET, 0x5A, 0x5A, 0x5A, 0x33},
{BL0939_WRITE_COMMAND, BL0939_REG_USR_WRPROT, 0x55, 0x00, 0x00, 0xEB},
{BL0939_WRITE_COMMAND, BL0939_REG_MODE, 0x00, 0x10, 0x00, 0x32},
{BL0939_WRITE_COMMAND, BL0939_REG_TPS_CTRL, 0xFF, 0x47, 0x00, 0xF9},
{BL0939_WRITE_COMMAND, BL0939_REG_IA_FAST_RMS_CTRL, 0x1C, 0x18, 0x00, 0x16},
{BL0939_WRITE_COMMAND, BL0939_REG_IB_FAST_RMS_CTRL, 0x1C, 0x18, 0x00, 0x08}}

Definition at line 23 of file bl0939.cpp.