#include <Dac.h>
Static Public Member Functions | |
static void | kinkedDac (double *dac, int dacLength, double _2R_div_R, bool term) |
This model was derived by Dag Lem, and is port of the upcoming reSID version. In average, it shows a value higher than the target by a value that depends on the _2R_div_R parameter. It differs from the version written by Antti Lankila chiefly in the emulation of the lacking termination of the 2R ladder, which destroys the output with respect to the low bits of the DAC.
dac | an array to be filled with the resulting analog values | |
dacLength | the dac array length | |
_2R_div_R | nonlinearity parameter, 1.0 for perfect linearity. | |
termi | is the dac terminated by a 2R resistor? (6581 DACs are not) |