My Version of the Crealab MotorLib.
Fork of MotorLib by
Revision 20:492140a08f05, committed 2018-12-30
- Comitter:
- sepp_nepp
- Date:
- Sun Dec 30 23:40:01 2018 +0000
- Parent:
- 19:2ac158fe414e
- Child:
- 21:588c5254437d
- Commit message:
- Release for Doxy Debug;
Changed in this revision
motor.h | Show annotated file Show diff for this revision Revisions of this file |
--- a/motor.h Sun Dec 30 23:10:47 2018 +0000 +++ b/motor.h Sun Dec 30 23:40:01 2018 +0000 @@ -55,10 +55,10 @@ /** \enum motorDir * \brief Gives Motor direction to be Clockwise or Anticlockwise */ -typedef enum motorDir { +typedef enum { CLOCKWISE = 0, /**< Turn Motor in clockwise direction. */ COUNTERCLOCKWISE /**< Turn Motor in anti-clockwise direction. */ -}; +} motorDir; /** \struct MotStatus * \brief Structure of Motor Status registers. @@ -201,7 +201,7 @@ { endMove=true; } @endcode */ - template<typename T>; + template<typename T> void callbackSet(T *object, void (T::*CBmember)(void)) { _callback = callback(object,CBmember); }