| typedef struct _CPhidgetStepper* CPhidgetStepperHandle |
A Phidget Stepper handle
| int CPhidgetStepper_create | ( | CPhidgetStepperHandle * | phid | ) |
Creates a Phidget Stepper handle.
| phid | A pointer to an unallocated Phidget Stepper handle. |
| int CPhidgetStepper_getInputCount | ( | CPhidgetStepperHandle | phid, | |
| int * | count | |||
| ) |
Gets the number of digital inputs supported by this board.
| phid | An attached phidget stepper handle. | |
| count | The ditial input count. |
| int CPhidgetStepper_getInputState | ( | CPhidgetStepperHandle | phid, | |
| int | index, | |||
| int * | inputState | |||
| ) |
| int CPhidgetStepper_set_OnInputChange_Handler | ( | CPhidgetStepperHandle | phid, | |
| int(*)(CPhidgetStepperHandle phid, void *userPtr, int index, int inputState) | fptr, | |||
| void * | userPtr | |||
| ) |
Set a digital input change handler. This is called when a digital input changes.
| phid | An attached phidget stepper handle. | |
| fptr | Callback function pointer. | |
| userPtr | A pointer for use by the user - this value is passed back into the callback function. |
| int CPhidgetStepper_getMotorCount | ( | CPhidgetStepperHandle | phid, | |
| int * | count | |||
| ) |
Gets the number of motors supported by this controller
| phid | An attached phidget stepper handle. | |
| count | The motor count. |
| int CPhidgetStepper_getAcceleration | ( | CPhidgetStepperHandle | phid, | |
| int | index, | |||
| double * | acceleration | |||
| ) |
Gets the last set acceleration for a motor.
| phid | An attached phidget stepper handle | |
| index | The motor index. | |
| acceleration | The acceleration |
| int CPhidgetStepper_setAcceleration | ( | CPhidgetStepperHandle | phid, | |
| int | index, | |||
| double | acceleration | |||
| ) |
Sets the acceleration for a motor.
| phid | An attached phidget stepper handle | |
| index | The motor index. | |
| acceleration | The acceleration |
| int CPhidgetStepper_getAccelerationMax | ( | CPhidgetStepperHandle | phid, | |
| int | index, | |||
| double * | max | |||
| ) |
Gets the maximum acceleration supported by a motor
| phid | An attached phidget stepper handle | |
| index | The motor index. | |
| max | The maximum acceleration. |
| int CPhidgetStepper_getAccelerationMin | ( | CPhidgetStepperHandle | phid, | |
| int | index, | |||
| double * | min | |||
| ) |
Gets the minimum acceleration supported by a motor.
| phid | An attached phidget stepper handle | |
| index | The motor index. | |
| min | The minimum acceleration |
| int CPhidgetStepper_getVelocityLimit | ( | CPhidgetStepperHandle | phid, | |
| int | index, | |||
| double * | limit | |||
| ) |
Gets the last set velocity limit for a motor.
| phid | An attached phidget stepper handle | |
| index | The motor index. | |
| limit | The velocity limit. |
| int CPhidgetStepper_setVelocityLimit | ( | CPhidgetStepperHandle | phid, | |
| int | index, | |||
| double | limit | |||
| ) |
Sets the velocity limit for a motor.
| phid | An attached phidget stepper handle | |
| index | The motor index. | |
| limit | The velocity limit. |
| int CPhidgetStepper_getVelocity | ( | CPhidgetStepperHandle | phid, | |
| int | index, | |||
| double * | velocity | |||
| ) |
Gets the current velocity of a motor.
| phid | An attached phidget stepper handle | |
| index | The motor index. | |
| velocity | The current velocity. |
| int CPhidgetStepper_getVelocityMax | ( | CPhidgetStepperHandle | phid, | |
| int | index, | |||
| double * | max | |||
| ) |
Gets the maximum velocity that can be set for a motor.
| phid | An attached phidget stepper handle | |
| index | The motor index. | |
| max | The maximum velocity |
| int CPhidgetStepper_getVelocityMin | ( | CPhidgetStepperHandle | phid, | |
| int | index, | |||
| double * | min | |||
| ) |
Gets the minimum velocity that can be set for a motor.
| phid | An attached phidget stepper handle | |
| index | The motor index. | |
| min | The minimum velocity. |
| int CPhidgetStepper_set_OnVelocityChange_Handler | ( | CPhidgetStepperHandle | phid, | |
| int(*)(CPhidgetStepperHandle phid, void *userPtr, int index, double velocity) | fptr, | |||
| void * | userPtr | |||
| ) |
Sets a velocity change event handler. This is called when the velocity changes.
| phid | An attached phidget stepper handle | |
| fptr | Callback function pointer. | |
| userPtr | A pointer for use by the user - this value is passed back into the callback function. |
| int CPhidgetStepper_getTargetPosition | ( | CPhidgetStepperHandle | phid, | |
| int | index, | |||
| __int64 * | position | |||
| ) |
Gets the last set target position of a motor.
| phid | An attached phidget stepper handle | |
| index | The motor index. | |
| position | The position. |
| int CPhidgetStepper_setTargetPosition | ( | CPhidgetStepperHandle | phid, | |
| int | index, | |||
| __int64 | position | |||
| ) |
Sets the target position of a motor.
| phid | An attached phidget stepper handle | |
| index | The motor index. | |
| position | The position. |
| int CPhidgetStepper_getCurrentPosition | ( | CPhidgetStepperHandle | phid, | |
| int | index, | |||
| __int64 * | position | |||
| ) |
Gets the current position of a motor.
| phid | An attached phidget stepper handle | |
| index | The motor index. | |
| position | The position. |
| int CPhidgetStepper_setCurrentPosition | ( | CPhidgetStepperHandle | phid, | |
| int | index, | |||
| __int64 | position | |||
| ) |
Sets the current position of a motor. This will not move the motor, just update the position value.
| phid | An attached phidget stepper handle | |
| index | The motor index. | |
| position | The position. |
| int CPhidgetStepper_getPositionMax | ( | CPhidgetStepperHandle | phid, | |
| int | index, | |||
| __int64 * | max | |||
| ) |
Gets the maximum position that a motor can go to.
| phid | An attached phidget stepper handle | |
| index | The motor index. | |
| max | The maximum position. |
| int CPhidgetStepper_getPositionMin | ( | CPhidgetStepperHandle | phid, | |
| int | index, | |||
| __int64 * | min | |||
| ) |
Gets the minimum position that a motor can go to.
| phid | An attached phidget stepper handle | |
| index | The motor index. | |
| min | The minimum position |
| int CPhidgetStepper_set_OnPositionChange_Handler | ( | CPhidgetStepperHandle | phid, | |
| int(*)(CPhidgetStepperHandle phid, void *userPtr, int index, __int64 position) | fptr, | |||
| void * | userPtr | |||
| ) |
Sets a position change event handler. This is called when the position changes.
| phid | An attached phidget stepper handle | |
| fptr | Callback function pointer. | |
| userPtr | A pointer for use by the user - this value is passed back into the callback function. |
| int CPhidgetStepper_getCurrentLimit | ( | CPhidgetStepperHandle | phid, | |
| int | index, | |||
| double * | limit | |||
| ) |
Gets the current limit for a motor.
| phid | An attached phidget stepper handle. | |
| index | The motor index. | |
| limit | The current limit. |
| int CPhidgetStepper_setCurrentLimit | ( | CPhidgetStepperHandle | phid, | |
| int | index, | |||
| double | limit | |||
| ) |
Sets the current limit for a motor.
| phid | An attached phidget stepper handle. | |
| index | The motor index. | |
| limit | The current limit. |
| int CPhidgetStepper_getCurrent | ( | CPhidgetStepperHandle | phid, | |
| int | index, | |||
| double * | current | |||
| ) |
Gets the current current draw for a motor.
| phid | An attached phidget stepper handle | |
| index | The motor index. | |
| current | The current. |
| int CPhidgetStepper_getCurrentMax | ( | CPhidgetStepperHandle | phid, | |
| int | index, | |||
| double * | max | |||
| ) |
Gets the maximum current limit.
| phid | An attached phidget stepper handle | |
| index | The motor index. | |
| max | The maximum current limit. |
| int CPhidgetStepper_getCurrentMin | ( | CPhidgetStepperHandle | phid, | |
| int | index, | |||
| double * | min | |||
| ) |
Gets the minimum current limit.
| phid | An attached phidget stepper handle | |
| index | The motor index. | |
| min | The minimum current limit. |
| int CPhidgetStepper_set_OnCurrentChange_Handler | ( | CPhidgetStepperHandle | phid, | |
| int(*)(CPhidgetStepperHandle phid, void *userPtr, int index, double current) | fptr, | |||
| void * | userPtr | |||
| ) |
Sets a current change event handler. This is called when the current draw changes.
| phid | An attached phidget stepper handle | |
| fptr | Callback function pointer. | |
| userPtr | A pointer for use by the user - this value is passed back into the callback function. |
| int CPhidgetStepper_getEngaged | ( | CPhidgetStepperHandle | phid, | |
| int | index, | |||
| int * | engagedState | |||
| ) |
| int CPhidgetStepper_setEngaged | ( | CPhidgetStepperHandle | phid, | |
| int | index, | |||
| int | engagedState | |||
| ) |
| int CPhidgetStepper_getStopped | ( | CPhidgetStepperHandle | phid, | |
| int | index, | |||
| int * | stoppedState | |||
| ) |
1.5.9