ESPHome  2024.11.0
Data Structures | Namespaces | Enumerations | Functions | Variables
bl0942.h File Reference

Go to the source code of this file.

Data Structures

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

Namespaces

 esphome
 Implementation of SPI Controller mode.
 
 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 71 of file bl0942.h.

◆ checksum

uint8_t checksum

Definition at line 77 of file bl0942.h.

◆ frame_header

uint8_t frame_header

Definition at line 66 of file bl0942.h.

◆ frequency

uint16_le_t frequency

Definition at line 72 of file bl0942.h.

◆ i_fast_rms

uint24_le_t i_fast_rms

Definition at line 69 of file bl0942.h.

◆ i_rms

uint24_le_t i_rms

Definition at line 67 of file bl0942.h.

◆ reserved1

uint8_t reserved1

Definition at line 73 of file bl0942.h.

◆ reserved2

uint8_t reserved2

Definition at line 75 of file bl0942.h.

◆ reserved3

uint8_t reserved3

Definition at line 76 of file bl0942.h.

◆ status

uint8_t status

Definition at line 74 of file bl0942.h.

◆ v_rms

uint24_le_t v_rms

Definition at line 68 of file bl0942.h.

◆ watt

int24_le_t watt

Definition at line 70 of file bl0942.h.