Maxim Integrated 7-bit Sink/Source Current DAC. DS4424, DS4422 input/output current Digital-to-Analog Converter Driver/library code.
Dependents: DS4424_Hello_Current_DAC_on_MAX32630FTHR
Diff: DS4424.cpp
- Revision:
- 2:b7a81b724561
- Parent:
- 1:a5d963a3c298
- Child:
- 4:3824afaf0d61
--- a/DS4424.cpp Mon Sep 10 21:53:18 2018 +0000 +++ b/DS4424.cpp Sun Oct 07 21:31:57 2018 +0000 @@ -93,7 +93,7 @@ raw.bits = value; result = raw.dx; - if (raw.source_bit == DS4424_SINK_I) // Sinking will be negative values + if (raw.source_bit == DS4424_SINK_I) /** Sinking will be negative values */ result = -result; return DS4424_NO_ERROR;