#include "phidgets_api/motor.h"
#include <cassert>
Go to the source code of this file.
|
#define | GAR(type, name) |
|
#define | GAR_I(type, name, i) |
|
#define | SET(name, x) |
|
#define | SET_I(name, x, i) |
|
#define GAR |
( |
|
type, |
|
|
|
name |
|
) |
| |
Value:type x; \
int ret = CPhidgetMotorControl_get##name(motor_handle_, &x); \
assert(ret == EPHIDGET_OK); \
return x;
Definition at line 6 of file motor.cpp.
#define GAR_I |
( |
|
type, |
|
|
|
name, |
|
|
|
i |
|
) |
| |
Value:type x; \
int ret = CPhidgetMotorControl_get##name(motor_handle_, i, &x); \
assert(ret == EPHIDGET_OK); \
return x;
Definition at line 11 of file motor.cpp.
Value:int ret = CPhidgetMotorControl_set##name(motor_handle_, x); \
assert(ret == EPHIDGET_OK);
Definition at line 18 of file motor.cpp.
#define SET_I |
( |
|
name, |
|
|
|
x, |
|
|
|
i |
|
) |
| |
Value:int ret = CPhidgetMotorControl_set##name(motor_handle_, i, x); \
assert(ret == EPHIDGET_OK);
Definition at line 21 of file motor.cpp.