AP1017 library for the Rev.E hardware with expanded capabilities.
Fork of AP1017 by
Diff: AP1017.h
- Revision:
- 4:c36159701cde
- Parent:
- 3:f8e70f639ed0
- Child:
- 6:d4d3bc82d446
diff -r f8e70f639ed0 -r c36159701cde AP1017.h --- a/AP1017.h Wed Apr 19 23:13:04 2017 +0000 +++ b/AP1017.h Fri Apr 21 20:18:32 2017 +0000 @@ -45,8 +45,8 @@ typedef enum { DIRECTION_CW = 0x00, /**< Clockwise motor rotation */ DIRECTION_CCW = 0x01, /**< Counterclockwise motor rotation */ - DIRECTION_COAST = 0x03, /**< Release motor to coast */ - DIRECTION_BRAKE = 0x04 /**< Brake motor */ + DIRECTION_COAST = 0x02, /**< Release motor to coast */ + DIRECTION_BRAKE = 0x03 /**< Brake motor */ } Rotation; @@ -108,6 +108,13 @@ * @return Returns successful termination or pulse width error. */ Status coast(void); + + /** + * Checks if the motor is currently running. + * + * @return TRUE if motor is on, FALSE if not. + */ + bool isMotorOn(void); private: