- From: Frank Mori Hess <fmhess_at_users.sourceforge.net>
- Date: Tue, 15 Jun 2004 20:53:18 -0400
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 If the 2's complement stuff is confusing you, just add 2048 instead of trying to flip bits, and it will all work out. What version of comedi are you using by the way? On Tuesday 15 June 2004 07:20 pm, Naoko Kurahashi wrote: > Hi! > > Sorry, I meant to say that sampl_t in comedi is 16bits where as my ADC > gives 12bit data (maxvalue = 4096). so I don't think I want to XOR the > top 4 bits. Is that right? When I ^0x0800, the negative numbers turn out > fine but the positive ones shoot up. > > Naoko - -- Frank -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (GNU/Linux) iD8DBQFAz5n+5vihyNWuA4URAqw/AJ9+HSah0NNwBG22XAiCYBNvQwf+4wCgmdTP wUtxrTQ+wacODsSpMsQwpk4= =BPJ9 -----END PGP SIGNATURE-----
Received on 2004-06-15Z23:53:18