Driver C++ source code for MAX5216/MAX5214 16-bit/14-bit DAC SPI (50MHz) bus ICs. Low power Digital-to_Analog Converter chips which accept supply voltages of 2.7V to 5.5V. Features Rail-to-Rail Buffered Output Operation and Safe Power-On Reset (POR) to Zero DAC Output.
Dependents: MAX5216_16_Bit_DAC_Hello_Code
Fork of MAX5487_Digital_Pot_Potentiometer_Rheostat_Resistor_Wiper by
Revision 6:cd8d96483262, committed 2018-08-18
- Comitter:
- phonemacro
- Date:
- Sat Aug 18 09:36:53 2018 +0000
- Parent:
- 5:bd8dbd9be2ac
- Child:
- 7:1132d5fab5c7
- Commit message:
- Updated comments for MAX5216, MAX5214 16/14-bit sample source code.
Changed in this revision
| MAX5216.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/MAX5216.cpp Mon Aug 13 04:18:09 2018 +0000
+++ b/MAX5216.cpp Sat Aug 18 09:36:53 2018 +0000
@@ -31,12 +31,12 @@
*******************************************************************************
*/
#include "MAX5216.h"
-
+
MAX5216::MAX5216(SPI &spi, DigitalOut &pin, MAX521X_ic_t ic_variant) : m_spi(spi), m_pin(pin), m_ic_variant(ic_variant)
{
m_pin = 1;
}
-
+
void MAX5216::writeCommand(setting_t setting, uint32_t value, pwrDwnMode_t mode)
{
@@ -74,9 +74,9 @@
}
m_pin = 1;
}
-
+
MAX5216::~MAX5216(void)
{
//empty block
}
-
+
