insn work for ai on pci-6289 now.
{
int i,n;
unsigned int mask;
- unsigned short signbits;
+ unsigned signbits;
unsigned short d;
ni_load_channelgain_list(dev,1,&insn->chanspec);
rt_printk("ni_mio_common: timeout in 611x ni_ai_insn_read\n");
return -ETIME;
}
- d += signbits; /* subtle: needs to be short addition */
+ d += signbits;
data[ n ] = d;
}
}else{
unsigned int chan,range,aref;
unsigned int i;
unsigned int hi,lo;
- unsigned short offset;
+ unsigned offset;
unsigned int dither;
if(n_chan == 1 && boardtype.reg_type != ni_reg_611x){
int gpct_cur_operation[2]; \
unsigned short an_trig_etc_reg; \
\
- unsigned short ai_offset[512]; \
+ unsigned ai_offset[512]; \
\
unsigned long serial_interval_ns; \
unsigned char serial_hw_mode; \