ESPHome  2024.11.0
Data Structures | Functions | Variables
esphome::bl0940 Namespace Reference

Data Structures

class  BL0940
 
union  DataPacket
 
struct  sbe24_t
 
struct  ube16_t
 
struct  ube24_t
 

Functions

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

Variables

const uint8_t BL0940_INIT [5][6]
 
esphome::bl0940::BL0940 __attribute__
 

Function Documentation

◆ __attribute__()

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

Variable Documentation

◆ __attribute__

union esphome::bl0940::DataPacket esphome::bl0940::__attribute__

◆ BL0940_INIT

const uint8_t esphome::bl0940::BL0940_INIT[5][6]
Initial value:
= {
{BL0940_WRITE_COMMAND, BL0940_REG_SOFT_RESET, 0x5A, 0x5A, 0x5A, 0x38},
{BL0940_WRITE_COMMAND, BL0940_REG_USR_WRPROT, 0x55, 0x00, 0x00, 0xF0},
{BL0940_WRITE_COMMAND, BL0940_REG_MODE, 0x00, 0x10, 0x00, 0x37},
{BL0940_WRITE_COMMAND, BL0940_REG_TPS_CTRL, 0xFF, 0x47, 0x00, 0xFE},
{BL0940_WRITE_COMMAND, BL0940_REG_I_FAST_RMS_CTRL, 0x1C, 0x18, 0x00, 0x1B}}

Definition at line 21 of file bl0940.cpp.