20#include <piduino/converter.h>
21#include <piduino/i2cdev.h>
88 explicit Mcp4728 (
const std::string ¶meters);
188 bool fastWrite (
const std::array<uint16_t, 4> &values) {
The Converter class provides an interface for analog-to-digital and digital-to-analog converters.
@ VddReference
Vdd reference voltage (analog or digital power supply depending on the converter)
static Info defaultBus()
Gets information about the default I2C bus on the system.
Class for the MCP4728 series of digital-to-analog converters.
static constexpr double InternalFullScaleRange
Internal full-scale range for the MCP4728.
virtual ~Mcp4728()
Virtual destructor for the Mcp4728 class.
static constexpr int DefaultAddress
Default I2C address for the MCP4728.
static constexpr double DefaultFullScaleRange
Default full-scale range for the MCP4728.
static constexpr int DefaultReferenceId
Default reference ID for the MCP4728.
static std::string registeredName()
Returns the name registered for this converter.
Mcp4728(int busId=I2cDev::Info::defaultBus().id(), int address=DefaultAddress)
Constructs a Mcp4728 object with the specified I2C device and parameters.
bool fastWrite(const uint16_t values[4])
Writes multiple values to the MCP4728 DAC channels in a single operation.
Mcp4728(const std::string ¶meters)
Constructs a Mcp4728 object from a string of parameters.
bool fastWrite(const std::array< uint16_t, 4 > &values)
Writes multiple values to the MCP4728 DAC channels in a single operation.
Mcp4728(Private &dd)
Protected constructor for internal use with PIMPL pattern.
Internal implementation class for GpioDevice.
#define PIMP_DECLARE_PRIVATE(Class)
PIMP_DECLARE_PRIVATE.
Global namespace for Piduino.