~ubuntu-branches/ubuntu/intrepid/comedilib/intrepid

« back to all changes in this revision

Viewing changes to lib/data.c

  • Committer: Bazaar Package Importer
  • Author(s): David Schleef
  • Date: 2004-11-04 11:43:51 UTC
  • mto: (2.1.5 intrepid)
  • mto: This revision was merged to the branch mainline in revision 3.
  • Revision ID: james.westby@ubuntu.com-20041104114351-0ftfmz0jf6jbtk8a
Tags: upstream-0.7.22
ImportĀ upstreamĀ versionĀ 0.7.22

Show diffs side-by-side

added added

removed removed

Lines of Context:
68
68
                        trigvar:        0,
69
69
                        trigvar1:       0,
70
70
                };
71
 
                sampl_t sdata=data;
72
 
 
 
71
                sampl_t sdata[2];
 
72
                
 
73
                sdata[0]=data & 0xffff;
 
74
                sdata[1]=(data >> 16) & 0xffff;
73
75
                chan=CR_PACK(chan,range,aref);
74
76
 
75
77
                cmd.subdev=subdev;
76
78
                if(it->subdevices[subdev].subd_flags & SDF_LSAMPL){
77
 
                        cmd.data=(sampl_t *)(&data);
 
79
                        cmd.data=sdata;
78
80
                }else{
79
 
                        cmd.data=&sdata;
 
81
                        cmd.data=sdata;
80
82
                }
81
83
                cmd.chanlist=&chan;
82
84