A versatile CMOS DAC-driver for resistive actuators