unsigned short reserved:1;
} counter_mode_register_t;
-union {
+union cmReg {
counter_mode_register_t reg;
unsigned short value;
-} cmReg;
+};
#define MAX_GPCT_CONFIG_DATA 6
int i, n;
// sampl_t value;
// int subdev_channel = 0;
+ union cmReg cmReg;
printk("comedi%d: s526: ", dev->minor);
int subdev_channel = CR_CHAN(insn->chanspec); // Unpack chanspec
int i;
sampl_t value;
+ union cmReg cmReg;
// printk("s526: GPCT_INSN_CONFIG: Configuring Channel %d\n", subdev_channel);
{
int subdev_channel = CR_CHAN(insn->chanspec); // Unpack chanspec
sampl_t value;
+ union cmReg cmReg;
printk("s526: GPCT_INSN_WRITE on channel %d\n", subdev_channel);
cmReg.value = inw(ADDR_CHAN_REG(REG_C0M, subdev_channel));