unsigned char id;
int ai_speed; /* max conversion period in nanoseconds */
int qram_len; /* length of card's channel / gain queue */
- int do_n_chan; /* number of digital output channels */
int ao_ability; /* 0 == no analog out, 1 == basic analog out, 2 == waveform analog out */
int ao_n_chan; /* number of analog out channels */
const struct comedi_lrange *range_ai; /* available input ranges */
.id = DAS1800_ID_ST,
.ai_speed = 6250,
.qram_len = 256,
- .do_n_chan = 4,
.ao_ability = 0,
.ao_n_chan = 0,
.range_ai = &range_ai_das1801,
.id = DAS1800_ID_ST_DA,
.ai_speed = 6250,
.qram_len = 256,
- .do_n_chan = 4,
.ao_ability = 1,
.ao_n_chan = 4,
.range_ai = &range_ai_das1801,
.id = DAS1800_ID_ST,
.ai_speed = 6250,
.qram_len = 256,
- .do_n_chan = 4,
.ao_ability = 0,
.ao_n_chan = 0,
.range_ai = &range_ai_das1802,
.id = DAS1800_ID_ST_DA,
.ai_speed = 6250,
.qram_len = 256,
- .do_n_chan = 4,
.ao_ability = 1,
.ao_n_chan = 4,
.range_ai = &range_ai_das1802,
.id = DAS1800_ID_HR,
.ai_speed = 20000,
.qram_len = 256,
- .do_n_chan = 4,
.ao_ability = 0,
.ao_n_chan = 0,
.range_ai = &range_ai_das1802,
.id = DAS1800_ID_HR_DA,
.ai_speed = 20000,
.qram_len = 256,
- .do_n_chan = 4,
.ao_ability = 1,
.ao_n_chan = 2,
.range_ai = &range_ai_das1802,
.id = DAS1800_ID_AO,
.ai_speed = 6250,
.qram_len = 256,
- .do_n_chan = 4,
.ao_ability = 2,
.ao_n_chan = 2,
.range_ai = &range_ai_das1801,
.id = DAS1800_ID_AO,
.ai_speed = 6250,
.qram_len = 256,
- .do_n_chan = 4,
.ao_ability = 2,
.ao_n_chan = 2,
.range_ai = &range_ai_das1802,
.id = DAS1800_ID_ST,
.ai_speed = 3000,
.qram_len = 256,
- .do_n_chan = 4,
.ao_ability = 0,
.ao_n_chan = 0,
.range_ai = &range_ai_das1801,
.id = DAS1800_ID_ST_DA,
.ai_speed = 3000,
.qram_len = 256,
- .do_n_chan = 4,
.ao_ability = 1,
.ao_n_chan = 4,
.range_ai = &range_ai_das1801,
.id = DAS1800_ID_ST,
.ai_speed = 3000,
.qram_len = 256,
- .do_n_chan = 4,
.ao_ability = 0,
.ao_n_chan = 0,
.range_ai = &range_ai_das1802,
.id = DAS1800_ID_ST_DA,
.ai_speed = 3000,
.qram_len = 256,
- .do_n_chan = 4,
.ao_ability = 1,
.ao_n_chan = 4,
.range_ai = &range_ai_das1802,
.id = DAS1800_ID_HR,
.ai_speed = 10000,
.qram_len = 256,
- .do_n_chan = 4,
.ao_ability = 0,
.ao_n_chan = 0,
.range_ai = &range_ai_das1802,
.id = DAS1800_ID_HR_DA,
.ai_speed = 10000,
.qram_len = 256,
- .do_n_chan = 4,
.ao_ability = 1,
.ao_n_chan = 2,
.range_ai = &range_ai_das1802,
.id = DAS1800_ID_HC,
.ai_speed = 3000,
.qram_len = 64,
- .do_n_chan = 8,
.ao_ability = 1,
.ao_n_chan = 2,
.range_ai = &range_ai_das1801,
.id = DAS1800_ID_HC,
.ai_speed = 3000,
.qram_len = 64,
- .do_n_chan = 8,
.ao_ability = 1,
.ao_n_chan = 2,
.range_ai = &range_ai_das1802,
.id = DAS1800_ID_AO,
.ai_speed = 3000,
.qram_len = 256,
- .do_n_chan = 4,
.ao_ability = 2,
.ao_n_chan = 2,
.range_ai = &range_ai_das1801,
.id = DAS1800_ID_AO,
.ai_speed = 3000,
.qram_len = 256,
- .do_n_chan = 4,
.ao_ability = 2,
.ao_n_chan = 2,
.range_ai = &range_ai_das1802,
s = &dev->subdevices[3];
s->type = COMEDI_SUBD_DO;
s->subdev_flags = SDF_WRITABLE;
- s->n_chan = board->do_n_chan;
+ s->n_chan = (board->id == DAS1800_ID_HC) ? 8 : 4;
s->maxdata = 1;
s->range_table = &range_digital;
s->insn_bits = das1800_do_insn_bits;