diff options
Diffstat (limited to 'device-functions.c')
-rw-r--r-- | device-functions.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/device-functions.c b/device-functions.c index 7c10704..f5878ae 100644 --- a/device-functions.c +++ b/device-functions.c @@ -230,6 +230,11 @@ void set_dac(int dac, int word) { /* allows dacs to be disabled (using dac=-1, for example) */ if ((dac >= 0) && (dac < max_dacs)) { + + // TODO: is this one of the ampl DACs? + // If so, calculate |%change| in DAC and multiply by settling time max. + // Then, see if it is larger than any previously calculated settling times (other chans). + // Reset settling time at end of main update. globals.Registers.parallel_DAC_reg[dac]=word; g_print_debug(": set dac %d to %d\n\r",dac,word); } |