unsigned int ns_min;
int n_aochan;
const struct comedi_lrange *ai_range_type;
- int ao_maxdata;
unsigned int has_dma:1;
unsigned int has_fifo:1;
unsigned int is_818:1;
.ns_min = 25000,
.n_aochan = 1,
.ai_range_type = &range_pcl818l_l_ai,
- .ao_maxdata = 0xfff,
.has_dma = 1,
.is_818 = 1,
}, {
.ns_min = 10000,
.n_aochan = 1,
.ai_range_type = &range_pcl818h_ai,
- .ao_maxdata = 0xfff,
.has_dma = 1,
.is_818 = 1,
}, {
.ns_min = 10000,
.n_aochan = 1,
.ai_range_type = &range_pcl818h_ai,
- .ao_maxdata = 0xfff,
.has_dma = 1,
.has_fifo = 1,
.is_818 = 1,
.ns_min = 10000,
.n_aochan = 1,
.ai_range_type = &range_pcl818hg_ai,
- .ao_maxdata = 0xfff,
.has_dma = 1,
.has_fifo = 1,
.is_818 = 1,
.ns_min = 10000,
.n_aochan = 2,
.ai_range_type = &range_pcl818h_ai,
- .ao_maxdata = 0xfff,
.has_dma = 1,
.is_818 = 1,
}, {
.ns_min = 16000,
.n_aochan = 2,
.ai_range_type = &range_unipolar5,
- .ao_maxdata = 0xfff,
.has_dma = 1,
}, {
.name = "pcm3718",
.ns_min = 10000,
.ai_range_type = &range_pcl818h_ai,
- .ao_maxdata = 0xfff,
.has_dma = 1,
.is_818 = 1,
},
s->type = COMEDI_SUBD_AO;
s->subdev_flags = SDF_WRITABLE | SDF_GROUND;
s->n_chan = board->n_aochan;
- s->maxdata = board->ao_maxdata;
+ s->maxdata = 0x0fff;
s->range_table = &range_unipolar5;
s->insn_read = pcl818_ao_insn_read;
s->insn_write = pcl818_ao_insn_write;