#include <ComediEncoder.hpp>
Based on the comedi API of the home written driver for the NI660X card.
Public Member Functions | |
| ComediEncoder (ComediDevice *cd, unsigned int subd, unsigned int encNr, const std::string &name) | |
| Create a nameserved encoder. | |
| ComediEncoder (ComediDevice *cd, unsigned int subd, unsigned int encNr) | |
| Create an encoder. | |
| virtual int | positionGet () const |
| virtual int | turnGet () const |
| virtual void | positionSet (int p) |
| virtual void | turnSet (int t) |
| virtual int | resolution () const |
| virtual bool | upcounting () const |
Protected Member Functions | |
| void | init () |
Protected Attributes | |
| ComediDevice * | _myCard |
| unsigned int | _subDevice |
| unsigned int | _channel |
| int | _turn |
| int | _resolution |
| bool | _upcounting |
| ComediEncoder | ( | ComediDevice * | cd, | |
| unsigned int | subd, | |||
| unsigned int | encNr, | |||
| const std::string & | name | |||
| ) |
Create a nameserved encoder.
| cd | The comedi device your are using | |
| subd | The comedi subdevice where the COUNTER is situated. | |
| encNr | The number of the encoder on the comedi subdevice (aka channel) | |
| name | The name of the encoder. |
| ComediEncoder | ( | ComediDevice * | cd, | |
| unsigned int | subd, | |||
| unsigned int | encNr | |||
| ) |
Create an encoder.
| cd | The comedi device your are using | |
| subd | The comedi subdevice where the COUNTER is situated. | |
| encNr | The number of the encoder on the comedi subdevice (aka channel) |
1.5.3