ESPHome  2024.12.2
Data Structures | Namespaces | Functions | Variables
bl0940.h File Reference

Go to the source code of this file.

Data Structures

struct  esphome::bl0940::ube24_t
 
struct  esphome::bl0940::ube16_t
 
struct  esphome::bl0940::sbe24_t
 
union  esphome::bl0940::DataPacket
 
class  esphome::bl0940::BL0940
 

Namespaces

 esphome
 Implementation of SPI Controller mode.
 
 esphome::bl0940
 

Functions

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

Variables

uint8_t l
 
uint8_t m
 
uint8_t h
 
uint8_t raw [35]
 
struct {
   uint8_t   frame_header
 
   ube24_t   i_fast_rms
 
   ube24_t   i_rms
 
   ube24_t   RESERVED0
 
   ube24_t   v_rms
 
   ube24_t   RESERVED1
 
   sbe24_t   watt
 
   ube24_t   RESERVED2
 
   ube24_t   cf_cnt
 
   ube24_t   RESERVED3
 
   ube16_t   tps1
 
   uint8_t   RESERVED4
 
   ube16_t   tps2
 
   uint8_t   RESERVED5
 
   uint8_t   checksum
 
}; 
 
esphome::bl0940::BL0940 esphome::bl0940::__attribute__
 

Variable Documentation

◆ @22

struct { ... }

◆ cf_cnt

ube24_t cf_cnt

Definition at line 27 of file bl0940.h.

◆ checksum

uint8_t checksum

Definition at line 33 of file bl0940.h.

◆ frame_header

uint8_t frame_header

Definition at line 19 of file bl0940.h.

◆ h

int8_t h

Definition at line 19 of file bl0940.h.

◆ i_fast_rms

ube24_t i_fast_rms

Definition at line 20 of file bl0940.h.

◆ i_rms

ube24_t i_rms

Definition at line 21 of file bl0940.h.

◆ l

uint8_t l

Definition at line 17 of file bl0940.h.

◆ m

uint8_t m

Definition at line 18 of file bl0940.h.

◆ raw

uint8_t raw[35]

Definition at line 17 of file bl0940.h.

◆ RESERVED0

ube24_t RESERVED0

Definition at line 22 of file bl0940.h.

◆ RESERVED1

ube24_t RESERVED1

Definition at line 24 of file bl0940.h.

◆ RESERVED2

ube24_t RESERVED2

Definition at line 26 of file bl0940.h.

◆ RESERVED3

ube24_t RESERVED3

Definition at line 28 of file bl0940.h.

◆ RESERVED4

uint8_t RESERVED4

Definition at line 30 of file bl0940.h.

◆ RESERVED5

uint8_t RESERVED5

Definition at line 32 of file bl0940.h.

◆ tps1

ube16_t tps1

Definition at line 29 of file bl0940.h.

◆ tps2

ube16_t tps2

Definition at line 31 of file bl0940.h.

◆ v_rms

ube24_t v_rms

Definition at line 23 of file bl0940.h.

◆ watt

sbe24_t watt

Definition at line 25 of file bl0940.h.