Namespaces | Macros
motor.cpp File Reference
#include "phidgets_api/motor.h"
#include <cassert>
Include dependency graph for motor.cpp:

Go to the source code of this file.

Namespaces

 phidgets
 

Macros

#define GAR(type, name)
 
#define GAR_I(type, name, i)
 
#define SET(name, x)
 
#define SET_I(name, x, i)
 

Macro Definition Documentation

#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,
 
)
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.

#define SET (   name,
 
)
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,
 
)
Value:
int ret = CPhidgetMotorControl_set##name(motor_handle_, i, x); \
assert(ret == EPHIDGET_OK);

Definition at line 21 of file motor.cpp.



phidgets_api
Author(s): Tully Foote, Ivan Dryanovski
autogenerated on Fri Apr 9 2021 02:56:02