M5Unit-ANADIG 0.4.1 git rev:a449179
Loading...
Searching...
No Matches
m5::unit::UnitMCP4725::config_t Struct Reference

Settings for begin. More...

#include <unit_MCP4725.hpp>

Public Attributes

bool using_eeprom_settings {false}
 
float supply_voltage {5000.f}
 VDD of MCP4725 chip (mV). Used for raw <-> voltage conversion.
 
float saturation_voltage {3300.f}
 

Detailed Description

Settings for begin.

Member Data Documentation

◆ saturation_voltage

float m5::unit::UnitMCP4725::config_t::saturation_voltage {3300.f}

Max reliable output voltage (mV). 0 means no limit (uses supply_voltage)

Note
UnitDAC (U012) saturates at ~3.3V despite 5V VDD

◆ using_eeprom_settings

bool m5::unit::UnitMCP4725::config_t::using_eeprom_settings {false}

Using EEPROM settings on begin?

  • true: The EEPROM settings (output value and power down mode) are written to the DAC register
  • false: The output is not changed. lastValue() / powerDown() take over the current DAC register (the EEPROM settings after power-on, or the last written value after an MCU-only reset)