On 04/08/15 18:57, H Hartley Sweeten wrote:
The coemdi (*insn_read) functions are supposed to read insn->n values
from the hardware. Make this function work like the core expects.
Use the comedi_offset_munge() helper to munge the two's complement
values to offset binary.
My guess would be that the format of the output value could be
controlled by the ME4000_AI_CTRL_BIT_OFFSET bit, but that's only a
guess, and the guy at Meilhaus who wrote the original driver didn't use it!
--
-=( Ian Abbott @ MEV Ltd. E-mail: <abbo...@mev.co.uk> )=-
-=( Web: http://www.mev.co.uk/ )=-
_______________________________________________
devel mailing list
de...@linuxdriverproject.org
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel