Currently this wrapper does not support all functionality. It always uses X4 encoding (maximum resolution), you cannot choose when to take into account the indexpulse or reset the counter when the index pulse arrives. Also see the Comedi gpct_encoder.c demo program
subdevice locking