new_insn.subdev = insn->subdev;
if(insn->insn == INSN_WRITE){
- if(!(s->subdev_flags & SDF_WRITEABLE))
+ if(!(s->subdev_flags & SDF_WRITABLE))
return -EINVAL;
new_data[0] = 1<<chan; /* mask */
new_data[1] = data[0]?(1<<chan):0; /* bits */
int subdev_8255_init(comedi_device *dev,comedi_subdevice *s,int (*cb)(int,int,int,unsigned long),unsigned long arg)
{
s->type=COMEDI_SUBD_DIO;
- s->subdev_flags=SDF_READABLE|SDF_WRITEABLE|SDF_RT;
+ s->subdev_flags=SDF_READABLE|SDF_WRITABLE|SDF_RT;
s->n_chan=24;
s->range_table=&range_digital;
s->maxdata=1;
subdevice = dev->subdevices + 1;
subdevice->type = COMEDI_SUBD_AO;
- subdevice->subdev_flags = SDF_WRITEABLE|SDF_COMMON;
+ subdevice->subdev_flags = SDF_WRITABLE|SDF_COMMON;
subdevice->n_chan = board->ao_channel_nbr;
subdevice->maxdata = board->ao_resolution_mask;
subdevice->len_chanlist = board->ao_channel_nbr;
subdevice = dev->subdevices + 3;
subdevice->type = COMEDI_SUBD_DO;
- subdevice->subdev_flags = SDF_READABLE|SDF_WRITEABLE;
+ subdevice->subdev_flags = SDF_READABLE|SDF_WRITABLE;
subdevice->n_chan = PCI9111_DO_CHANNEL_NBR;
subdevice->maxdata = 1;
subdevice->range_table = &range_digital;
s = dev->subdevices + 1;
s->type = COMEDI_SUBD_AO;
- s->subdev_flags = SDF_WRITEABLE|SDF_GROUND|SDF_COMMON;
+ s->subdev_flags = SDF_WRITABLE|SDF_GROUND|SDF_COMMON;
s->n_chan = this_board->n_aochan;
s->maxdata = this_board->ao_maxdata;
s->len_chanlist = this_board->n_aochan;
s = dev->subdevices + 3;
s->type = COMEDI_SUBD_DO;
- s->subdev_flags = SDF_WRITEABLE|SDF_GROUND|SDF_COMMON;
+ s->subdev_flags = SDF_WRITABLE|SDF_GROUND|SDF_COMMON;
s->n_chan = 4;
s->maxdata = 1;
s->len_chanlist = 4;
if (this_board->n_aochan) {
s = dev->subdevices + subdev;
s->type = COMEDI_SUBD_AO;
- s->subdev_flags = SDF_WRITEABLE|SDF_GROUND|SDF_COMMON;
+ s->subdev_flags = SDF_WRITABLE|SDF_GROUND|SDF_COMMON;
s->n_chan = this_board->n_aochan;
s->maxdata = this_board->ao_maxdata;
s->len_chanlist = this_board->n_aochan;
if (this_board->n_dochan) {
s = dev->subdevices + subdev;
s->type = COMEDI_SUBD_DO;
- s->subdev_flags = SDF_WRITEABLE|SDF_GROUND|SDF_COMMON;
+ s->subdev_flags = SDF_WRITABLE|SDF_GROUND|SDF_COMMON;
s->n_chan = this_board->n_dochan;
s->maxdata = 1;
s->len_chanlist = this_board->n_dochan;
s=dev->subdevices+1;
/* analog output subdevice */
s->type=COMEDI_SUBD_AO;
- s->subdev_flags=SDF_WRITEABLE;
+ s->subdev_flags=SDF_WRITABLE;
s->n_chan=thisboard->ao_chans;;
s->maxdata=(1<<thisboard->ao_bits)-1;
s->range_table=&pci230_ao_range;
if(thisboard->ao_nchan)
{
s->type = COMEDI_SUBD_AO;
- s->subdev_flags = SDF_READABLE | SDF_WRITEABLE | SDF_GROUND;
+ s->subdev_flags = SDF_READABLE | SDF_WRITABLE | SDF_GROUND;
s->n_chan = thisboard->ao_nchan;
// analog out resolution is the same as analog input resolution, so use ai_bits
s->maxdata = (1 << thisboard->ai_bits) - 1;
{
// dev->write_subdev = s;
s->type = COMEDI_SUBD_AO;
- s->subdev_flags = SDF_READABLE | SDF_WRITEABLE | SDF_GROUND;
+ s->subdev_flags = SDF_READABLE | SDF_WRITABLE | SDF_GROUND;
s->n_chan = board(dev)->ao_nchan;
// analog out resolution is the same as analog input resolution, so use ai_bits
s->maxdata = (1 << board(dev)->ai_bits) - 1;
{
s = dev->subdevices + 3;
s->type = COMEDI_SUBD_DO;
- s->subdev_flags = SDF_WRITEABLE | SDF_READABLE;
+ s->subdev_flags = SDF_WRITABLE | SDF_READABLE;
s->n_chan = 4;
s->maxdata = 1;
s->range_table = &range_digital;
if(board(dev)->layout == LAYOUT_60XX)
{
s->type = COMEDI_SUBD_DIO;
- s->subdev_flags = SDF_WRITEABLE | SDF_READABLE;
+ s->subdev_flags = SDF_WRITABLE | SDF_READABLE;
s->n_chan = 8;
s->maxdata = 1;
s->range_table = &range_digital;
// 8 channel 8800 caldac
s = dev->subdevices + 6;
s->type=COMEDI_SUBD_CALIB;
- s->subdev_flags = SDF_READABLE | SDF_WRITEABLE | SDF_INTERNAL;
+ s->subdev_flags = SDF_READABLE | SDF_WRITABLE | SDF_INTERNAL;
s->n_chan = 8;
if(board(dev)->layout == LAYOUT_4020)
s->maxdata = 0xfff;
if(board(dev)->layout == LAYOUT_64XX)
{
s->type = COMEDI_SUBD_CALIB;
- s->subdev_flags = SDF_READABLE | SDF_WRITEABLE | SDF_INTERNAL;
+ s->subdev_flags = SDF_READABLE | SDF_WRITABLE | SDF_INTERNAL;
s->n_chan = 2;
s->insn_read = ad8402_read_insn;
s->insn_write = ad8402_write_insn;
s = dev->subdevices + 0;
/* analog output subdevice */
s->type = COMEDI_SUBD_AO;
- s->subdev_flags = SDF_WRITEABLE;
+ s->subdev_flags = SDF_WRITABLE;
s->n_chan = thisboard->ao_chans;
s->maxdata = (1 << thisboard->ao_bits) - 1;
s->range_table = thisboard->ranges;
s=dev->subdevices+0;
s->type=COMEDI_SUBD_DO;
- s->subdev_flags=SDF_WRITEABLE;
+ s->subdev_flags=SDF_WRITABLE;
s->n_chan=8;
s->maxdata=1;
s->range_table=&range_digital;
s=dev->subdevices+2;
s->type=COMEDI_SUBD_DO;
- s->subdev_flags=SDF_WRITEABLE;
+ s->subdev_flags=SDF_WRITABLE;
s->n_chan=4;
s->maxdata=1;
s->range_table=&range_digital;
s=dev->subdevices+1;
s->type = COMEDI_SUBD_DO;
- s->subdev_flags = SDF_WRITEABLE;
+ s->subdev_flags = SDF_WRITABLE;
s->n_chan = 16;
s->maxdata = 1;
s->range_table = &range_digital;
s = dev->subdevices + 1;
/* ao subdevice */
s->type = COMEDI_SUBD_AO;
- s->subdev_flags = SDF_WRITEABLE|SDF_RT;
+ s->subdev_flags = SDF_WRITABLE|SDF_RT;
s->n_chan = 2;
s->maxdata = 0xffff;
s->insn_read = daqboard2000_ao_insn_read;
if(thisboard->ao){
s->type=COMEDI_SUBD_AO;
// XXX lacks read-back insn
- s->subdev_flags = SDF_WRITEABLE;
+ s->subdev_flags = SDF_WRITABLE;
s->n_chan = 2;
s->maxdata = (1<<thisboard->ao_nbits)-1;
s->range_table = &range_bipolar5;
/* do */
if(thisboard->do_){
s->type=COMEDI_SUBD_DO;
- s->subdev_flags = SDF_WRITEABLE | SDF_READABLE;
+ s->subdev_flags = SDF_WRITABLE | SDF_READABLE;
s->n_chan = thisboard->do_nchan;
s->maxdata = 1;
s->range_table = &range_digital;
/* ao */
if(thisboard->ao){
s->type = COMEDI_SUBD_AO;
- s->subdev_flags = SDF_WRITEABLE;
+ s->subdev_flags = SDF_WRITABLE;
s->n_chan = 2;
s->maxdata = (1 << thisboard->ao_nbits) - 1;
if(devpriv->user_ao_range_table)
/* do */
if(thisboard->do_){
s->type = COMEDI_SUBD_DO;
- s->subdev_flags = SDF_WRITEABLE | SDF_READABLE;
+ s->subdev_flags = SDF_WRITABLE | SDF_READABLE;
s->n_chan = 4;
s->maxdata = 1;
s->range_table = &range_digital;
s = dev->subdevices + 2;
/* do */
s->type = COMEDI_SUBD_DO;
- s->subdev_flags = SDF_WRITEABLE | SDF_READABLE;
+ s->subdev_flags = SDF_WRITABLE | SDF_READABLE;
s->n_chan = 4;
s->maxdata = 1;
s->range_table = &range_digital;
if(thisboard->ao_ability == 1)
{
s->type = COMEDI_SUBD_AO;
- s->subdev_flags = SDF_WRITEABLE;
+ s->subdev_flags = SDF_WRITABLE;
s->n_chan = thisboard->ao_n_chan;
s->maxdata = (1 << thisboard->resolution) - 1;
s->range_table = &range_ao_1;
/* do */
s = dev->subdevices + 3;
s->type = COMEDI_SUBD_DO;
- s->subdev_flags = SDF_WRITEABLE | SDF_READABLE;
+ s->subdev_flags = SDF_WRITABLE | SDF_READABLE;
s->n_chan = thisboard->do_n_chan;
s->maxdata = 1;
s->range_table = &range_digital;
/* do */
s = dev->subdevices + 2;
s->type=COMEDI_SUBD_DO;
- s->subdev_flags = SDF_WRITEABLE | SDF_READABLE;
+ s->subdev_flags = SDF_WRITABLE | SDF_READABLE;
s->n_chan = 4;
s->maxdata = 1;
s->range_table = &range_digital;
s++;
/* ao subdevice */
s->type=COMEDI_SUBD_AO;
- s->subdev_flags=SDF_WRITEABLE;
+ s->subdev_flags=SDF_WRITABLE;
s->n_chan=2;
s->maxdata=(1<<boardtype.dabits)-1;
s->range_table_list=devpriv->dac_range_types;
s++;
/* 1st digital subdevice */
s->type=COMEDI_SUBD_DIO;
- s->subdev_flags=SDF_READABLE|SDF_WRITEABLE;
+ s->subdev_flags=SDF_READABLE|SDF_WRITABLE;
s->n_chan=8;
s->maxdata=1;
s->range_table=&range_digital;
s++;
/* 2nd digital subdevice */
s->type=COMEDI_SUBD_DIO;
- s->subdev_flags=SDF_READABLE|SDF_WRITEABLE;
+ s->subdev_flags=SDF_READABLE|SDF_WRITABLE;
s->n_chan=8;
s->maxdata=1;
s->range_table=&range_digital;
s = dev->subdevices + 1;
/* ao subdevice */
s->type = COMEDI_SUBD_AO;
- s->subdev_flags = SDF_WRITEABLE;
+ s->subdev_flags = SDF_WRITABLE;
s->n_chan = 2;
s->insn_write = dt2811_ao_insn;
s->insn_read = dt2811_ao_insn_read;
s = dev->subdevices + 3;
/* do subdevice */
s->type = COMEDI_SUBD_DO;
- s->subdev_flags = SDF_WRITEABLE;
+ s->subdev_flags = SDF_WRITABLE;
s->n_chan = 8;
s->insn_bits = dt2811_do_insn_bits;
s->maxdata = 1;
s=dev->subdevices;
/* ao subdevice */
s->type=COMEDI_SUBD_AO;
- s->subdev_flags=SDF_WRITEABLE;
+ s->subdev_flags=SDF_WRITABLE;
s->maxdata=0xfff;
s->n_chan=8;
s->insn_write = dt2815_ao_insn;
s->n_chan=32;
s->type=COMEDI_SUBD_DIO;
- s->subdev_flags=SDF_READABLE|SDF_WRITEABLE;
+ s->subdev_flags=SDF_READABLE|SDF_WRITABLE;
s->range_table=&range_digital;
s->maxdata=1;
s->insn_bits=dt2817_dio_insn_bits;
/* ao subsystem */
s->type=COMEDI_SUBD_AO;
dev->write_subdev=s;
- s->subdev_flags=SDF_WRITEABLE;
+ s->subdev_flags=SDF_WRITABLE;
s->insn_read=dt282x_ao_insn_read;
s->insn_write=dt282x_ao_insn_write;
s->do_cmdtest=dt282x_ao_cmdtest;
s++;
/* dio subsystem */
s->type=COMEDI_SUBD_DIO;
- s->subdev_flags=SDF_READABLE|SDF_WRITEABLE;
+ s->subdev_flags=SDF_READABLE|SDF_WRITABLE;
s->n_chan=16;
s->insn_bits = dt282x_dio_insn_bits;
s->insn_config = dt282x_dio_insn_config;
s++;
/* ao subsystem */
s->type=COMEDI_SUBD_AO;
- s->subdev_flags=SDF_WRITEABLE;
+ s->subdev_flags=SDF_WRITABLE;
s->n_chan=2;
s->insn_read=dt3k_ao_insn_read;
s->insn_write=dt3k_ao_insn;
s++;
/* dio subsystem */
s->type=COMEDI_SUBD_DIO;
- s->subdev_flags=SDF_READABLE|SDF_WRITEABLE;
+ s->subdev_flags=SDF_READABLE|SDF_WRITABLE;
s->n_chan=8;
s->insn_config=dt3k_dio_insn_config;
s->insn_bits=dt3k_dio_insn_bits;
/* Analog output */
s = dev->subdevices+1;
s->type = COMEDI_SUBD_AO; /* define subdevice as Analog OUT */
- s->subdev_flags = SDF_WRITEABLE; /* you can write it from userspace */
+ s->subdev_flags = SDF_WRITABLE; /* you can write it from userspace */
s->n_chan = 2; /* Number of Analog output channels */
s->maxdata = 0x0fff; /* accept only 12 bits of data */
s->range_table = &range_fl512; /* device use one of the ranges */
if (this_board->n_aochan) {
s = dev->subdevices + subdev;
s->type = COMEDI_SUBD_AO;
- s->subdev_flags = SDF_WRITEABLE|SDF_GROUND|SDF_COMMON;
+ s->subdev_flags = SDF_WRITABLE|SDF_GROUND|SDF_COMMON;
s->n_chan = this_board->n_aochan;
s->maxdata = this_board->ao_maxdata;
s->len_chanlist = this_board->n_aochan;
if (this_board->n_dochan) {
s = dev->subdevices + subdev;
s->type = COMEDI_SUBD_DO;
- s->subdev_flags = SDF_WRITEABLE | SDF_READABLE;
+ s->subdev_flags = SDF_WRITABLE | SDF_READABLE;
s->n_chan = this_board->n_dochan;
s->maxdata = 1;
s->len_chanlist = this_board->n_dochan;
if (this_board->n_ctrs) {
s = dev->subdevices + subdev;
s->type = COMEDI_SUBD_COUNTER;
- s->subdev_flags = SDF_WRITEABLE|SDF_GROUND|SDF_COMMON;
+ s->subdev_flags = SDF_WRITABLE|SDF_GROUND|SDF_COMMON;
s->n_chan = this_board->n_ctrs;
s->maxdata = 0xffff;
s->len_chanlist = this_board->n_ctrs;
/* ao subdevice */
s->type = COMEDI_SUBD_AO;
- s->subdev_flags = SDF_WRITEABLE|SDF_RT;
+ s->subdev_flags = SDF_WRITABLE|SDF_RT;
s->n_chan = 2;
s->len_chanlist = 2;
s->insn_read = pci20006_insn_read;
{
s->type = COMEDI_SUBD_DIO;
- s->subdev_flags = SDF_READABLE | SDF_WRITEABLE;
+ s->subdev_flags = SDF_READABLE | SDF_WRITABLE;
s->n_chan = 32;
s->insn_bits = pci20xxx_dio_insn_bits;
s->insn_config = pci20xxx_dio_insn_config;
for(i=0;i<4;i++){
s=dev->subdevices+i;
s->type=COMEDI_SUBD_DIO;
- s->subdev_flags=SDF_READABLE|SDF_WRITEABLE;
+ s->subdev_flags=SDF_READABLE|SDF_WRITABLE;
s->n_chan=32;
s->maxdata=1;
s->range_table=&range_digital;
s = dev->subdevices + 1;
/* ao subdevice */
s->type = COMEDI_SUBD_AO;
- s->subdev_flags = SDF_WRITEABLE;
+ s->subdev_flags = SDF_WRITABLE;
s->n_chan = 8;
s->insn_read = multiq3_ao_insn_read;
s->insn_write = multiq3_ao_insn_write;
s = dev->subdevices + 3;
/* do subdevice */
s->type = COMEDI_SUBD_DO;
- s->subdev_flags = SDF_WRITEABLE;
+ s->subdev_flags = SDF_WRITABLE;
s->n_chan = 16;
s->insn_bits = multiq3_do_insn_bits;
s->maxdata = 1;
s=dev->subdevices+0;
/* analog output subdevice */
s->type = COMEDI_SUBD_AO;
- s->subdev_flags = SDF_WRITEABLE;
+ s->subdev_flags = SDF_WRITABLE;
s->n_chan = thisboard->ao_chans;
s->maxdata = 0xffff;
s->range_table = &range_bipolar10;
s=dev->subdevices+1;
/* digital i/o subdevice */
s->type = COMEDI_SUBD_DIO;
- s->subdev_flags = SDF_READABLE|SDF_WRITEABLE;
+ s->subdev_flags = SDF_READABLE|SDF_WRITABLE;
s->n_chan = 8;
s->maxdata = 1;
s->range_table = &range_digital;
s=dev->subdevices+0;
/* analog output subdevice */
s->type=COMEDI_SUBD_AO;
- s->subdev_flags=SDF_WRITEABLE;
+ s->subdev_flags=SDF_WRITABLE;
s->n_chan=thisboard->n_ao_chans;
s->maxdata=(1<<12)-1;
s->range_table=&range_bipolar10;
s=dev->subdevices+1;
/* digital i/o subdevice */
s->type=COMEDI_SUBD_DIO;
- s->subdev_flags=SDF_READABLE|SDF_WRITEABLE;
+ s->subdev_flags=SDF_READABLE|SDF_WRITABLE;
s->n_chan=8;
s->maxdata=1;
s->range_table=&range_digital;
s=dev->subdevices+2;
/* caldac subdevice */
s->type=COMEDI_SUBD_CALIB;
- s->subdev_flags = SDF_WRITEABLE|SDF_INTERNAL;
+ s->subdev_flags = SDF_WRITABLE|SDF_INTERNAL;
s->n_chan = 21;
s->maxdata = 0xff;
s->insn_read = atao_calib_insn_read;
/* ao subdevice */
s++;
s->type=COMEDI_SUBD_AO;
- s->subdev_flags=SDF_WRITEABLE;
+ s->subdev_flags=SDF_WRITABLE;
s->n_chan=2;
s->insn_read=atmio16d_ao_insn_read;
s->insn_write=atmio16d_ao_insn_write;
/* Digital I/O */
s++;
s->type=COMEDI_SUBD_DIO;
- s->subdev_flags=SDF_WRITEABLE|SDF_READABLE;
+ s->subdev_flags=SDF_WRITABLE|SDF_READABLE;
s->n_chan=8;
s->insn_bits = atmio16d_dio_insn_bits;
s->insn_config = atmio16d_dio_insn_config;
/* Could provide command support, except it only has a one sample
* hardware buffer for analog output and no underrun flag. */
s->type=COMEDI_SUBD_AO;
- s->subdev_flags = SDF_READABLE | SDF_WRITEABLE | SDF_GROUND;
+ s->subdev_flags = SDF_READABLE | SDF_WRITABLE | SDF_GROUND;
s->n_chan = NUM_AO_CHAN;
s->maxdata = (1 << 12) - 1; // 12 bit resolution
s->range_table = &range_labpc_ao;
if(thisboard->register_layout == labpc_1200_layout)
{
s->type=COMEDI_SUBD_CALIB;
- s->subdev_flags = SDF_READABLE | SDF_WRITEABLE | SDF_INTERNAL;
+ s->subdev_flags = SDF_READABLE | SDF_WRITABLE | SDF_INTERNAL;
if(thisboard->has_ao)
s->n_chan = 8;
else
if(thisboard->register_layout == labpc_1200_layout)
{
s->type = COMEDI_SUBD_MEMORY;
- s->subdev_flags = SDF_READABLE | SDF_WRITEABLE | SDF_INTERNAL;
+ s->subdev_flags = SDF_READABLE | SDF_WRITABLE | SDF_INTERNAL;
s->n_chan = EEPROM_SIZE;
s->maxdata = 0xff;
s->insn_read = labpc_eeprom_read_insn;
dev->read_subdev = s;
s->type=COMEDI_SUBD_DIO;
- s->subdev_flags=SDF_READABLE|SDF_WRITEABLE|SDF_RT;
+ s->subdev_flags=SDF_READABLE|SDF_WRITABLE|SDF_RT;
s->n_chan=32;
s->range_table=&range_digital;
s->maxdata=1;
s++;
/* AO subdevice */
s->type = COMEDI_SUBD_AO;
- s->subdev_flags = SDF_WRITEABLE;
+ s->subdev_flags = SDF_WRITABLE;
s->n_chan = this_board->n_aochan;
s->maxdata = 0xfff;
s->len_chanlist = 1;
s++;
/* 16-bit digital out */
s->type = COMEDI_SUBD_DO;
- s->subdev_flags = SDF_WRITEABLE;
+ s->subdev_flags = SDF_WRITABLE;
s->n_chan = 16;
s->maxdata = 1;
s->len_chanlist = 16;
s=dev->subdevices+0;
/* do */
s->type=COMEDI_SUBD_DO;
- s->subdev_flags=SDF_WRITEABLE;
+ s->subdev_flags=SDF_WRITABLE;
s->maxdata=1;
s->n_chan=8;
s->insn_bits = pcl725_do_insn;
s=dev->subdevices+0;
/* ao */
s->type=COMEDI_SUBD_AO;
- s->subdev_flags=SDF_WRITEABLE|SDF_GROUND;
+ s->subdev_flags=SDF_WRITABLE|SDF_GROUND;
s->n_chan=this_board->n_aochan;
s->maxdata=0xfff;
s->len_chanlist=1;
s->type = COMEDI_SUBD_UNUSED;
}else{
s->type=COMEDI_SUBD_DO;
- s->subdev_flags=SDF_WRITEABLE|SDF_GROUND;
+ s->subdev_flags=SDF_WRITABLE|SDF_GROUND;
s->n_chan=16;
s->maxdata=1;
s->len_chanlist=1;
if (this_board->n_aochan>0) {
s = dev->subdevices + subdev;
s->type = COMEDI_SUBD_AO;
- s->subdev_flags = SDF_WRITEABLE|SDF_GROUND;
+ s->subdev_flags = SDF_WRITABLE|SDF_GROUND;
s->n_chan = this_board->n_aochan;
s->maxdata = 0xfff;
s->len_chanlist = 1;
if (this_board->n_dochan>0) {
s = dev->subdevices + subdev;
s->type = COMEDI_SUBD_DO;
- s->subdev_flags = SDF_WRITEABLE;
+ s->subdev_flags = SDF_WRITABLE;
s->n_chan = this_board->n_dochan;
s->maxdata = 1;
s->len_chanlist = this_board->n_dochan;
#if 0
case COMEDI_SUBD_AO:
- s->subdev_flags = SDF_WRITEABLE | SDF_GROUND | SDF_RT;
+ s->subdev_flags = SDF_WRITABLE | SDF_GROUND | SDF_RT;
s->n_chan = this_board->n_aochan;
s->maxdata = this_board->ao_maxdata;
s->len_chanlist = this_board->ao_chanlist;
break;
case COMEDI_SUBD_DO:
- s->subdev_flags = SDF_WRITEABLE | SDF_RT;
+ s->subdev_flags = SDF_WRITABLE | SDF_RT;
s->n_chan = this_board->n_dochan;
s->maxdata = 1;
s->len_chanlist = this_board->n_dochan;
}else{
dev->write_subdev = s;
s->type = COMEDI_SUBD_AO;
- s->subdev_flags = SDF_WRITEABLE|SDF_GROUND|SDF_RT;
+ s->subdev_flags = SDF_WRITABLE|SDF_GROUND|SDF_RT;
s->n_chan = this_board->n_aochan;
s->maxdata = this_board->ao_maxdata;
s->len_chanlist = this_board->ao_chanlist;
s->type = COMEDI_SUBD_UNUSED;
}else{
s->type = COMEDI_SUBD_DO;
- s->subdev_flags = SDF_WRITEABLE|SDF_RT;
+ s->subdev_flags = SDF_WRITABLE|SDF_RT;
s->n_chan = this_board->n_dochan;
s->maxdata = 1;
s->len_chanlist = this_board->n_dochan;
s=dev->subdevices+0;
s->type=COMEDI_SUBD_DO;
- s->subdev_flags=SDF_WRITEABLE;
+ s->subdev_flags=SDF_WRITABLE;
s->maxdata=1;
s->n_chan=8;
s->insn_bits = pcm3730_do_insn_bits;
s=dev->subdevices+1;
s->type=COMEDI_SUBD_DO;
- s->subdev_flags=SDF_WRITEABLE;
+ s->subdev_flags=SDF_WRITABLE;
s->maxdata=1;
s->n_chan=8;
s->insn_bits = pcm3730_do_insn_bits;
s=dev->subdevices+2;
s->type=COMEDI_SUBD_DO;
- s->subdev_flags=SDF_WRITEABLE;
+ s->subdev_flags=SDF_WRITABLE;
s->maxdata=1;
s->n_chan=8;
s->insn_bits = pcm3730_do_insn_bits;
s->insn_read = this_board->rinsn;
s->insn_bits = this_board->insnbits;
if(s->type==COMEDI_SUBD_AO || s->type==COMEDI_SUBD_DO){
- s->subdev_flags = SDF_WRITEABLE;
+ s->subdev_flags = SDF_WRITABLE;
}
return 0;
s=dev->subdevices+1;
/* analog output subdevice */
s->type=COMEDI_SUBD_AO;
- s->subdev_flags=SDF_WRITEABLE;
+ s->subdev_flags=SDF_WRITABLE;
s->n_chan = 2;
s->maxdata =(1<<thisboard->aiBits)-1;
s->range_table = &rtd_ao_range;
s=dev->subdevices+2;
/* digital i/o subdevice */
s->type=COMEDI_SUBD_DIO;
- s->subdev_flags=SDF_READABLE|SDF_WRITEABLE;
+ s->subdev_flags=SDF_READABLE|SDF_WRITABLE;
/* we only support port 0 right now. Ignoring port 1 and user IO */
s->n_chan=8;
s->maxdata=1;
/* timer/counter subdevices (not currently supported) */
s=dev->subdevices+3;
s->type = COMEDI_SUBD_COUNTER;
- s->subdev_flags=SDF_READABLE|SDF_WRITEABLE;
+ s->subdev_flags=SDF_READABLE|SDF_WRITABLE;
s->n_chan=3;
s->maxdata=0xffff;
if (this_board->has_ao){
/* ao subdevice (only on rti815) */
s->type=COMEDI_SUBD_AO;
- s->subdev_flags=SDF_WRITEABLE;
+ s->subdev_flags=SDF_WRITABLE;
s->n_chan=2;
s->insn_read=rti800_ao_insn_read;
s->insn_write=rti800_ao_insn_write;
s++;
/* do */
s->type=COMEDI_SUBD_DO;
- s->subdev_flags=SDF_WRITEABLE;
+ s->subdev_flags=SDF_WRITABLE;
s->n_chan=8;
s->insn_bits=rti800_do_insn_bits;
s->maxdata=1;
s=dev->subdevices;
/* ao subdevice */
s->type=COMEDI_SUBD_AO;
- s->subdev_flags=SDF_WRITEABLE;
+ s->subdev_flags=SDF_WRITABLE;
s->maxdata=0xfff;
s->n_chan=8;
s->insn_read = rti802_ao_insn_read;
s=dev->subdevices+1;
/* analog output subdevice */
s->type=COMEDI_SUBD_AO;
- s->subdev_flags=SDF_WRITEABLE;
+ s->subdev_flags=SDF_WRITABLE;
s->n_chan=1;
s->maxdata=0xffff;
s->range_table=&range_bipolar5;
/* digital i/o subdevice */
if(thisboard->have_dio){
s->type=COMEDI_SUBD_DIO;
- s->subdev_flags=SDF_READABLE|SDF_WRITEABLE;
+ s->subdev_flags=SDF_READABLE|SDF_WRITABLE;
s->n_chan=16;
s->maxdata=1;
s->range_table=&range_digital;
s=dev->subdevices+0;
/* digital i/o subdevice */
s->type = COMEDI_SUBD_DIO;
- s->subdev_flags = SDF_READABLE|SDF_WRITEABLE;
+ s->subdev_flags = SDF_READABLE|SDF_WRITABLE;
s->n_chan = 20;
s->maxdata = 1;
s->range_table =& range_digital;