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)   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);
 

Macro Definition Documentation

#define GAR (   type,
  name 
)    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,
 
)    type x; int ret = CPhidgetMotorControl_get ## name (motor_handle_, i, &x); assert(ret == EPHIDGET_OK); return x;

Definition at line 7 of file motor.cpp.

#define SET (   name,
 
)    int ret = CPhidgetMotorControl_set ## name (motor_handle_, x); assert(ret == EPHIDGET_OK);

Definition at line 10 of file motor.cpp.

#define SET_I (   name,
  x,
 
)    int ret = CPhidgetMotorControl_set ## name (motor_handle_, i, x); assert(ret == EPHIDGET_OK);

Definition at line 11 of file motor.cpp.



phidgets_api
Author(s): Tully Foote, Ivan Dryanovski
autogenerated on Tue May 7 2019 03:19:24