ESPHome  2024.9.2
Data Structures | Enumerations | Functions
esphome::max9611 Namespace Reference

Data Structures

class  MAX9611Component
 

Enumerations

enum  MAX9611Multiplexer {
  MAX9611_MULTIPLEXER_CSA_GAIN1 = 0b000, MAX9611_MULTIPLEXER_CSA_GAIN4 = 0b001, MAX9611_MULTIPLEXER_CSA_GAIN8 = 0b010, MAX9611_MULTIPLEXER_RS = 0b011,
  MAX9611_MULTIPLEXER_OUT = 0b100, MAX9611_MULTIPLEXER_SET = 0b101, MAX9611_MULTIPLEXER_TEMP = 0b110, MAX9611_MULTIPLEXER_FAST_MODE = 0b111
}
 
enum  MAX9611RegisterMap {
  CSA_DATA_BYTE_MSB_ADRR = 0x00, CSA_DATA_BYTE_LSB_ADRR = 0x01, RS_DATA_BYTE_MSB_ADRR = 0x02, RS_DATA_BYTE_LSB_ADRR = 0x03,
  OUT_DATA_BYTE_MSB_ADRR = 0x04, OUT_DATA_BYTE_LSB_ADRR = 0x05, SET_DATA_BYTE_MSB_ADRR = 0x06, SET_DATA_BYTE_LSB_ADRR = 0x07,
  TEMP_DATA_BYTE_MSB_ADRR = 0x08, TEMP_DATA_BYTE_LSB_ADRR = 0x09, CONTROL_REGISTER_1_ADRR = 0x0A, CONTROL_REGISTER_2_ADRR = 0x0B
}
 

Functions

template<typename T , unsigned B>
signextend (const T x)
 
float gain_to_lsb (MAX9611Multiplexer gain)
 

Enumeration Type Documentation

◆ MAX9611Multiplexer

Enumerator
MAX9611_MULTIPLEXER_CSA_GAIN1 
MAX9611_MULTIPLEXER_CSA_GAIN4 
MAX9611_MULTIPLEXER_CSA_GAIN8 
MAX9611_MULTIPLEXER_RS 
MAX9611_MULTIPLEXER_OUT 
MAX9611_MULTIPLEXER_SET 
MAX9611_MULTIPLEXER_TEMP 
MAX9611_MULTIPLEXER_FAST_MODE 

Definition at line 11 of file max9611.h.

◆ MAX9611RegisterMap

Enumerator
CSA_DATA_BYTE_MSB_ADRR 
CSA_DATA_BYTE_LSB_ADRR 
RS_DATA_BYTE_MSB_ADRR 
RS_DATA_BYTE_LSB_ADRR 
OUT_DATA_BYTE_MSB_ADRR 
OUT_DATA_BYTE_LSB_ADRR 
SET_DATA_BYTE_MSB_ADRR 
SET_DATA_BYTE_LSB_ADRR 
TEMP_DATA_BYTE_MSB_ADRR 
TEMP_DATA_BYTE_LSB_ADRR 
CONTROL_REGISTER_1_ADRR 
CONTROL_REGISTER_2_ADRR 

Definition at line 22 of file max9611.h.

Function Documentation

◆ gain_to_lsb()

float esphome::max9611::gain_to_lsb ( MAX9611Multiplexer  gain)

Definition at line 16 of file max9611.cpp.

◆ signextend()

template<typename T , unsigned B>
T esphome::max9611::signextend ( const T  x)
inline

Definition at line 9 of file max9611.cpp.