ESPHome  2024.11.0
Data Structures | Enumerations
esphome::as3935 Namespace Reference

Data Structures

class  AS3935Component
 

Enumerations

enum  AS3935RegisterNames {
  AFE_GAIN = 0x00, THRESHOLD, LIGHTNING_REG, INT_MASK_ANT,
  ENERGY_LIGHT_LSB, ENERGY_LIGHT_MSB, ENERGY_LIGHT_MMSB, DISTANCE,
  FREQ_DISP_IRQ, CALIB_TRCO = 0x3A, CALIB_SRCO = 0x3B, DEFAULT_RESET = 0x3C,
  CALIB_RCO = 0x3D
}
 
enum  AS3935RegisterMasks {
  WIPE_ALL = 0x0, GAIN_MASK = 0x3E, SPIKE_MASK = 0xF, IO_MASK = 0xC1,
  DISTANCE_MASK = 0xC0, INT_MASK = 0xF0, THRESH_MASK = 0x0F, R_SPIKE_MASK = 0xF0,
  ENERGY_MASK = 0xF0, CAP_MASK = 0xF0, LIGHT_MASK = 0xCF, DISTURB_MASK = 0xDF,
  NOISE_FLOOR_MASK = 0x70, OSC_MASK = 0xE0, CALIB_MASK = 0x7F, CALIB_MASK_NOK = 0xBF,
  DIV_MASK = 0x3F
}
 
enum  AS3935Values {
  AS3935_ADDR = 0x03, INDOOR = 0x12, OUTDOOR = 0xE, LIGHTNING_INT = 0x08,
  DISTURBER_INT = 0x04, NOISE_INT = 0x01
}
 

Enumeration Type Documentation

◆ AS3935RegisterMasks

Enumerator
WIPE_ALL 
GAIN_MASK 
SPIKE_MASK 
IO_MASK 
DISTANCE_MASK 
INT_MASK 
THRESH_MASK 
R_SPIKE_MASK 
ENERGY_MASK 
CAP_MASK 
LIGHT_MASK 
DISTURB_MASK 
NOISE_FLOOR_MASK 
OSC_MASK 
CALIB_MASK 
CALIB_MASK_NOK 
DIV_MASK 

Definition at line 35 of file as3935.h.

◆ AS3935RegisterNames

Enumerator
AFE_GAIN 
THRESHOLD 
LIGHTNING_REG 
INT_MASK_ANT 
ENERGY_LIGHT_LSB 
ENERGY_LIGHT_MSB 
ENERGY_LIGHT_MMSB 
DISTANCE 
FREQ_DISP_IRQ 
CALIB_TRCO 
CALIB_SRCO 
DEFAULT_RESET 
CALIB_RCO 

Definition at line 19 of file as3935.h.

◆ AS3935Values

Enumerator
AS3935_ADDR 
INDOOR 
OUTDOOR 
LIGHTNING_INT 
DISTURBER_INT 
NOISE_INT 

Definition at line 55 of file as3935.h.