Classes | Defines
Phidget Encoder
Specific Phidgets
Collaboration diagram for Phidget Encoder:

Classes

struct  CPhidgetEncoderInfo

Defines

#define ENCODER_MAXENCODERS   4
#define ENCODER_MAXINPUTS   4

Detailed Description

These calls are specific to the Phidget Encoder object. See your device's User Guide for more specific API details, technical information, and revision details. The User Guide, along with other resources, can be found on the product page for your device.


Define Documentation

#define ENCODER_MAXENCODERS   4

Gets the number of digital inputs supported by this board.

Parameters:
phidAn attached phidget encoder handle
countThe input count. Gets the state of a digital input.
phidAn attached phidget encoder handle
indexThe input index.
inputStateThe input state. Possible values are PTRUE and PFALSE. Sets an input change handler. This is called when a digital input changes.
phidAn attached phidget encoder handle
fptrCallback function pointer.
userPtrA pointer for use by the user - this value is passed back into the callback function. Gets the number of encoder inputs supported by this board.
phidAn attached phidget encoder handle
countThe encoder input count. Gets the current position of an encoder.
phidAn attached phidget encoder handle
indexThe encoder input index.
positionThe current position Sets the current position of an encoder.
phidAn attached phidget encoder handle
indexThe encoder input index.
positionThe new position Sets an encoder position change handler. This is called when an encoder position changes.
phidAn attached phidget encoder handle
fptrCallback function pointer. Note that positionChange is a relative not absolute change and time is the time in ms since the last position change event.
userPtrA pointer for use by the user - this value is passed back into the callback function. Sets an encoder index handler. This is called when there is a pulse on the index pin.
phidAn attached phidget encoder handle
fptrCallback function pointer. This returns the encoder position at which the index pulse occured.
userPtrA pointer for use by the user - this value is passed back into the callback function. Gets the position of the last index pulse, as referenced to CPhidgetEncoder_getPosition. This will return EPHIDGET_UNKNOWN if there hasn't been an index event, or if the encoder doesn't support index.
phidAn attached phidget encoder handle
indexThe encoder index.
positionThe index position. Gets the enabled state of an encoder. This is whether the encoder is powered or not.
phidAn attached phidget encoder handle
indexThe encoder index.
enabledStateThe enabled state. Possible values are PTRUE and PFALSE. Sets the enabled state of an encoder. This is whether the encoder is powered or not.
phidAn attached phidget encoder handle
indexThe encoder index.
enabledStateThe enabled state. Possible values are PTRUE and PFALSE.

Definition at line 100 of file cphidgetencoder.h.

#define ENCODER_MAXINPUTS   4

Definition at line 101 of file cphidgetencoder.h.



pedal_monitor
Author(s): Pedro Mendes
autogenerated on Fri Jun 6 2014 18:37:22