- From: David MacMahon <davidm_at_astro.berkeley.edu>
- Date: Fri, 06 Oct 2006 13:53:14 -0700
M. Koehrer wrote:
> data[n] = ni_readl(M_Offset_AI_FIFO_Data);
> rt_printk("ni_mio_common: %i: data[n]==%x\n", __LINE__, data[n]);
>
> For a positive input value (+0.5V) data[n] is ffff8c57,
> for a negative input value (-0.5V) data[n] is 73d2
It looks like ni_readl ends up being a 32-bit read. Perhaps the
hardware is doing the sign-extension?
Dave
Received on 2006-10-06Z19:53:14