#include "phidgets_api/motor.h"
#include <cassert>
Go to the source code of this file.
|
#define | GAR(type, name) type x; int ret = CPhidgetMotorControl_get ## name (motor_handle_, &x); assert(ret == EPHIDGET_OK); return x; |
|
#define | GAR_I(type, name, i) type x; int ret = CPhidgetMotorControl_get ## name (motor_handle_, i, &x); assert(ret == EPHIDGET_OK); return x; |
|
#define | SET(name, x) int ret = CPhidgetMotorControl_set ## name (motor_handle_, x); assert(ret == EPHIDGET_OK); |
|
#define | SET_I(name, x, i) int ret = CPhidgetMotorControl_set ## name (motor_handle_, i, x); assert(ret == EPHIDGET_OK); |
|
#define GAR |
( |
|
type, |
|
|
|
name |
|
) |
| type x; int ret = CPhidgetMotorControl_get ## name (motor_handle_, &x); assert(ret == EPHIDGET_OK); return x; |
#define GAR_I |
( |
|
type, |
|
|
|
name, |
|
|
|
i |
|
) |
| type x; int ret = CPhidgetMotorControl_get ## name (motor_handle_, i, &x); assert(ret == EPHIDGET_OK); return x; |
#define SET |
( |
|
name, |
|
|
|
x |
|
) |
| int ret = CPhidgetMotorControl_set ## name (motor_handle_, x); assert(ret == EPHIDGET_OK); |
#define SET_I |
( |
|
name, |
|
|
|
x, |
|
|
|
i |
|
) |
| int ret = CPhidgetMotorControl_set ## name (motor_handle_, i, x); assert(ret == EPHIDGET_OK); |