ESPHome 2025.5.0
Loading...
Searching...
No Matches
bl0942.h File Reference

Go to the source code of this file.

Data Structures

struct  esphome::bl0942::DataPacket
 
class  esphome::bl0942::BL0942
 

Namespaces

namespace  esphome
 Providing packet encoding functions for exchanging data with a remote host.
 
namespace  esphome::bl0942
 

Enumerations

enum  esphome::bl0942::LineFrequency : uint8_t { esphome::bl0942::LINE_FREQUENCY_50HZ = 50 , esphome::bl0942::LINE_FREQUENCY_60HZ = 60 }
 

Functions

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

Variables

uint8_t frame_header
 
uint24_le_t i_rms
 
uint24_le_t v_rms
 
uint24_le_t i_fast_rms
 
int24_le_t watt
 
uint24_le_t cf_cnt
 
uint16_le_t frequency
 
uint8_t reserved1
 
uint8_t status
 
uint8_t reserved2
 
uint8_t reserved3
 
uint8_t checksum
 
enum esphome::bl0942::LineFrequency esphome::bl0942::__attribute__
 

Variable Documentation

◆ cf_cnt

uint24_le_t cf_cnt

Definition at line 5 of file bl0942.h.

◆ checksum

uint8_t checksum

Definition at line 11 of file bl0942.h.

◆ frame_header

uint8_t frame_header

Definition at line 0 of file bl0942.h.

◆ frequency

uint16_le_t frequency

Definition at line 6 of file bl0942.h.

◆ i_fast_rms

uint24_le_t i_fast_rms

Definition at line 3 of file bl0942.h.

◆ i_rms

uint24_le_t i_rms

Definition at line 1 of file bl0942.h.

◆ reserved1

uint8_t reserved1

Definition at line 7 of file bl0942.h.

◆ reserved2

uint8_t reserved2

Definition at line 9 of file bl0942.h.

◆ reserved3

uint8_t reserved3

Definition at line 10 of file bl0942.h.

◆ status

uint8_t status

Definition at line 8 of file bl0942.h.

◆ v_rms

uint24_le_t v_rms

Definition at line 2 of file bl0942.h.

◆ watt

int24_le_t watt

Definition at line 4 of file bl0942.h.