[1] - clock source
[2] - clock period (nanoseconds)
+ID=INSN_CONFIG_SET_GATE_SRC: Select gate source.
+ [0] - ID
+ [1] - index identifying which gate we are configuring (0 if there is only one gate)
+ [2] - gate source
+
+ID=INSN_CONFIG_GET_GATE_SRC: Query gate
+ chanspec - the gate whose source is being queried (if the subdevice has multiple gates)
+ [0] - ID
+ [1] - index identifying which gate we are querying (0 if there is only one gate)
+ [2] - gate source
clock source in data[1].
INSN_CONFIG_SET_GATE_SRC. Sets the counter channel's gate source as
- specified in data[1] (this is a hardware-specific value). Not
+ specified in data[2] (this is a hardware-specific value). Not
supported on PC214E. For the other boards, valid gate sources are 0
to 7 as follows:
7. Reserved.
INSN_CONFIG_GET_GATE_SRC. Returns the counter channel's current gate
- source in data[1].
+ source in data[2].
Clock and gate interconnection notes:
data[1] = i8254_status(subpriv->iobase, chan);
break;
case INSN_CONFIG_SET_GATE_SRC:
- ret = dio200_set_gate_src(subpriv, chan, data[1]);
+ ret = dio200_set_gate_src(subpriv, chan, data[2]);
if (ret < 0) return -EINVAL;
break;
case INSN_CONFIG_GET_GATE_SRC:
ret = dio200_get_gate_src(subpriv, chan);
if (ret < 0) return -EINVAL;
- data[1] = ret;
+ data[2] = ret;
break;
case INSN_CONFIG_SET_CLOCK_SRC:
ret = dio200_set_clock_src(subpriv, chan, data[1]);