diff options
| author | Sam Anthony <sam@samanthony.xyz> | 2025-11-08 11:03:02 -0500 |
|---|---|---|
| committer | Sam Anthony <sam@samanthony.xyz> | 2025-11-08 11:03:02 -0500 |
| commit | be26e8497b510d4bf441f9d9cd3207d02b058bc0 (patch) | |
| tree | 85c64c4e67679451d6454e16e89c3097f4ac76ac /fw/dac.h | |
| parent | b6f66e394ad3f18b3dccea674b5c041f5a22fb41 (diff) | |
| download | can-gauge-interface-be26e8497b510d4bf441f9d9cd3207d02b058bc0.zip | |
specify dac voltage in millivolts
Diffstat (limited to 'fw/dac.h')
| -rw-r--r-- | fw/dac.h | 16 |
1 files changed, 8 insertions, 8 deletions
@@ -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); |