aboutsummaryrefslogtreecommitdiffstats
path: root/fw/dac.h
diff options
context:
space:
mode:
authorSam Anthony <sam@samanthony.xyz>2025-11-08 11:03:02 -0500
committerSam Anthony <sam@samanthony.xyz>2025-11-08 11:03:02 -0500
commitbe26e8497b510d4bf441f9d9cd3207d02b058bc0 (patch)
tree85c64c4e67679451d6454e16e89c3097f4ac76ac /fw/dac.h
parentb6f66e394ad3f18b3dccea674b5c041f5a22fb41 (diff)
downloadcan-gauge-interface-be26e8497b510d4bf441f9d9cd3207d02b058bc0.zip
specify dac voltage in millivolts
Diffstat (limited to 'fw/dac.h')
-rw-r--r--fw/dac.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/fw/dac.h b/fw/dac.h
index 1882c3e..e9bf54b 100644
--- a/fw/dac.h
+++ b/fw/dac.h
@@ -20,17 +20,17 @@
void dacInit(void);
// Set DAC1 VOUTA.
-// Only the lower 10 bits are used.
-void dacSet1a(U16 level);
+// Mv is the desired voltage in millivolts.
+void dacSet1a(U16 mv);
// Set DAC1 VOUTB.
-// Only the lower 10 bits are used.
-void dacSet1b(U16 level);
+// Mv is the desired voltage in millivolts.
+void dacSet1b(U16 mv);
// Set DAC2 VOUTA.
-// Only the lower 10 bits are used.
-void dacSet2a(U16 level);
+// Mv is the desired voltage in millivolts.
+void dacSet2a(U16 mv);
// Set DAC2 VOUTB.
-// Only the lower 10 bits are used.
-void dacSet2b(U16 level);
+// Mv is the desired voltage in millivolts.
+void dacSet2b(U16 mv);