return inb(dev->iobase + 7);
}
-/* enable_das800 makes the card start taking hardware triggered conversions */
-static void enable_das800(struct comedi_device *dev)
+static void das800_enable(struct comedi_device *dev)
{
const struct das800_board *thisboard = comedi_board(dev);
struct das800_private *devpriv = dev->private;
spin_unlock_irqrestore(&dev->spinlock, irq_flags);
}
-/* disable_das800 stops hardware triggered conversions */
-static void disable_das800(struct comedi_device *dev)
+static void das800_disable(struct comedi_device *dev)
{
unsigned long irq_flags;
devpriv->forever = 0;
devpriv->count = 0;
- disable_das800(dev);
+ das800_disable(dev);
return 0;
}
unsigned long irq_flags;
struct comedi_async *async = s->async;
- disable_das800(dev);
+ das800_disable(dev);
/* set channel scan limits */
startChan = CR_CHAN(async->cmd.chanlist[0]);
spin_unlock_irqrestore(&dev->spinlock, irq_flags);
async->events = 0;
- enable_das800(dev);
+ das800_enable(dev);
return 0;
}
/* otherwise, stop taking data */
} else {
spin_unlock_irqrestore(&dev->spinlock, irq_flags);
- disable_das800(dev); /* disable hardware triggered conversions */
+ das800_disable(dev);
async->events |= COMEDI_CB_EOA;
}
comedi_event(dev, s);
int timeout = 1000;
unsigned long irq_flags;
- disable_das800(dev); /* disable hardware conversions (enables software conversions) */
+ das800_disable(dev);
/* set multiplexer */
chan = CR_CHAN(insn->chanspec);
s->range_table = &range_digital;
s->insn_bits = das800_do_insn_bits;
- disable_das800(dev);
+ das800_disable(dev);
/* initialize digital out channels */
spin_lock_irqsave(&dev->spinlock, irq_flags);