|
Typedefs |
typedef struct
_CPhidgetAccelerometer * | CPhidgetAccelerometerHandle |
Functions |
| int | CPhidgetAccelerometer_create (CPhidgetAccelerometerHandle *phid) |
| int | CPhidgetAccelerometer_getAxisCount (CPhidgetAccelerometerHandle phid, int *count) |
| int | CPhidgetAccelerometer_getAcceleration (CPhidgetAccelerometerHandle phid, int index, double *acceleration) |
| int | CPhidgetAccelerometer_getAccelerationMax (CPhidgetAccelerometerHandle phid, int index, double *max) |
| int | CPhidgetAccelerometer_getAccelerationMin (CPhidgetAccelerometerHandle phid, int index, double *min) |
| int | CPhidgetAccelerometer_set_OnAccelerationChange_Handler (CPhidgetAccelerometerHandle phid, int(*fptr)(CPhidgetAccelerometerHandle phid, void *userPtr, int index, double acceleration), void *userPtr) |
| int | CPhidgetAccelerometer_getAccelerationChangeTrigger (CPhidgetAccelerometerHandle phid, int index, double *trigger) |
| int | CPhidgetAccelerometer_setAccelerationChangeTrigger (CPhidgetAccelerometerHandle phid, int index, double trigger) |
Detailed Description
Calls specific to the Phidget Accelerometer. See the product manual for more specific API details, supported functionality, units, etc.
Typedef Documentation
A Phidget Accelerometer handle
Function Documentation
Creates a Phidget Accelerometer handle.
- Parameters:
-
| phid | A pointer to an unallocated Phidget Accelerometer handle. |
Gets the number of acceleration axes supported by this accelerometer.
- Parameters:
-
| phid | An attached phidget accelerometer handle. |
| count | The axis count. |
Gets the current acceleration of an axis.
- Parameters:
-
| phid | An attached phidget accelerometer handle. |
| index | The acceleration index. |
| acceleration | The acceleration. |
Gets the maximum accleration supported by an axis.
- Parameters:
-
| phid | An attached phidget accelerometer handle. |
| index | The acceleration index |
| max | The maximum acceleration |
Gets the minimum acceleraiton supported by an axis.
- Parameters:
-
| phid | An attached phidget accelerometer handle. |
| index | The acceleration index |
| min | The minimum acceleraion |
Sets an acceleration change event handler. This is called when the acceleration changes by more then the change trigger.
- Parameters:
-
| phid | A phidget accelerometer handle. |
| fptr | Callback function pointer. |
| userPtr | A pointer for use by the user - this value is passed back into the callback function. |
Gets the change trigger for an axis.
- Parameters:
-
| phid | An attached phidget accelerometer handle. |
| index | The acceleration index |
| trigger | The change trigger. |
Sets the change trigger for an axis.
- Parameters:
-
| phid | An attached phidget accelerometer handle. |
| index | The acceleration index |
| trigger | The change trigger. |