ESPHome  2024.11.3
Data Structures | Enumerations
esphome::mcp4728 Namespace Reference

Data Structures

struct  DACInputData
 
class  MCP4728Channel
 
class  MCP4728Component
 MCP4728 float output component. More...
 

Enumerations

enum  CMD {
  CMD::FAST_WRITE = 0x00, CMD::MULTI_WRITE = 0x40, CMD::SINGLE_WRITE = 0x58, CMD::SEQ_WRITE = 0x50,
  CMD::SELECT_VREF = 0x80, CMD::SELECT_GAIN = 0xC0, CMD::SELECT_POWER_DOWN = 0xA0
}
 
enum  MCP4728Vref { MCP4728_VREF_VDD = 0, MCP4728_VREF_INTERNAL_2_8V = 1 }
 
enum  MCP4728PwrDown { MCP4728_PD_NORMAL = 0, MCP4728_PD_GND_1KOHM = 1, MCP4728_PD_GND_100KOHM = 2, MCP4728_PD_GND_500KOHM = 3 }
 
enum  MCP4728Gain { MCP4728_GAIN_X1 = 0, MCP4728_GAIN_X2 = 1 }
 
enum  MCP4728ChannelIdx { MCP4728_CHANNEL_A = 0, MCP4728_CHANNEL_B = 1, MCP4728_CHANNEL_C = 2, MCP4728_CHANNEL_D = 3 }
 

Enumeration Type Documentation

◆ CMD

enum esphome::mcp4728::CMD
strong
Enumerator
FAST_WRITE 
MULTI_WRITE 
SINGLE_WRITE 
SEQ_WRITE 
SELECT_VREF 
SELECT_GAIN 
SELECT_POWER_DOWN 

Definition at line 9 of file mcp4728.h.

◆ MCP4728ChannelIdx

Enumerator
MCP4728_CHANNEL_A 
MCP4728_CHANNEL_B 
MCP4728_CHANNEL_C 
MCP4728_CHANNEL_D 

Definition at line 30 of file mcp4728.h.

◆ MCP4728Gain

Enumerator
MCP4728_GAIN_X1 
MCP4728_GAIN_X2 

Definition at line 28 of file mcp4728.h.

◆ MCP4728PwrDown

Enumerator
MCP4728_PD_NORMAL 
MCP4728_PD_GND_1KOHM 
MCP4728_PD_GND_100KOHM 
MCP4728_PD_GND_500KOHM 

Definition at line 21 of file mcp4728.h.

◆ MCP4728Vref

Enumerator
MCP4728_VREF_VDD 
MCP4728_VREF_INTERNAL_2_8V 

Definition at line 19 of file mcp4728.h.