}
async->cur_chan = 0;
- async->cur_chanlist_len = async->cmd.chanlist_len;
async->cb_mask = COMEDI_CB_EOA|COMEDI_CB_BLOCK|COMEDI_CB_ERROR;
if(async->cmd.flags & TRIG_WAKE_EOS){
s->async->buf_int_ptr += sizeof(sampl_t);
s->async->buf_int_count += sizeof(sampl_t);
- if((++s->async->cur_chan) >= s->async->cur_chanlist_len) { /* one scan done */
+ if((++s->async->cur_chan) >= s->async->cmd.chanlist_len) { /* one scan done */
s->async->cur_chan = 0;
comedi_eos(dev, s);
}
d+=devpriv->ai_xorlist[j];
data[i]=d;
j++;
- if(j>=async->cur_chanlist_len){
+ if(j>=async->cmd.chanlist_len){
j=0;
async->events |= COMEDI_CB_EOS;
}
d+=devpriv->ai_xorlist[j];
*data=d;
j++;
- if(j>=s->async->cur_chanlist_len){
+ if(j>=s->async->cmd.chanlist_len){
j=0;
//s->events |= COMEDI_CB_EOS;
}
for(i=start;i<stop;i++){
*i +=devpriv->ai_xorlist[j];
j++;
- if(j>=async->cur_chanlist_len)j=0;
+ if(j>=async->cmd.chanlist_len)j=0;
}
async->cur_chan=j;
}
s->async->buf_int_count+=sizeof(sampl_t);
s->async->cur_chan++;
- if (s->async->cur_chan >= s->async->cur_chanlist_len) { /* one scan done */
+ if (s->async->cur_chan >= s->async->cmd.chanlist_len) { /* one scan done */
s->async->cur_chan=0;
devpriv->ai_act_scan++;
if (devpriv->ai_eos)
s->async->buf_int_count+=sizeof(sampl_t);
s->async->cur_chan++;
- if(s->async->cur_chan>=s->async->cur_chanlist_len){
+ if(s->async->cur_chan>=s->async->cmd.chanlist_len){
s->async->cur_chan=0;
devpriv->ai_act_scan++;
if (devpriv->ai_eos)
s->async->buf_int_count+=sizeof(sampl_t);
s->async->cur_chan++;
- if (s->async->cur_chan>=s->async->cur_chanlist_len){
+ if (s->async->cur_chan>=s->async->cmd.chanlist_len){
s->async->cur_chan=0;
#if 0
if (devpriv->cur_flags & TRIG_WAKE_EOS){
devpriv->act_chanlist_pos++;
s->async->cur_chan++;
- if(s->async->cur_chan>=s->async->cur_chanlist_len){
+ if(s->async->cur_chan>=s->async->cmd.chanlist_len){
s->async->cur_chan=0;
}
s->async->buf_int_count+=sizeof(sampl_t);
s->async->cur_chan++;
- if(s->async->cur_chan>=s->async->cur_chanlist_len){
+ if(s->async->cur_chan>=s->async->cmd.chanlist_len){
s->async->cur_chan++;
devpriv->int13_act_scan--;
}
s->async->buf_int_count+=sizeof(sampl_t);
s->async->cur_chan++;
- if(s->async->cur_chan>=s->async->cur_chanlist_len){
+ if(s->async->cur_chan>=s->async->cmd.chanlist_len){
s->async->cur_chan = 0;
devpriv->int13_act_scan--;
}
async->data = cmd->data;
async->data_len = cmd->data_len;
async->cur_chan = 0;
- async->cur_chanlist_len = cmd->chanlist_len;
return s->do_cmd(dev,s);
}
volatile unsigned int buf_int_count; /* byte count for interrupt */
unsigned int buf_user_count; /* byte count for read() and write() */
unsigned int cur_chan; /* useless channel marker for interrupt */
- unsigned int cur_chanlist_len;
void *data;
unsigned int data_len;
async->buf_int_ptr = 0;
async->events |= COMEDI_CB_EOBUF;
}
- if(++async->cur_chan >= async->cur_chanlist_len){
+ if(++async->cur_chan >= async->cmd.chanlist_len){
async->cur_chan = 0;
async->events |= COMEDI_CB_EOS;
}
async->buf_int_ptr = 0;
async->events |= COMEDI_CB_EOBUF;
}
- if(++async->cur_chan >= async->cur_chanlist_len){
+ if(++async->cur_chan >= async->cmd.chanlist_len){
async->cur_chan = 0;
async->events |= COMEDI_CB_EOS;
}