Motor driver library for the AP1017.

/media/uploads/tkstreet/akm_name_logo.png

AKM Development Platform

AP1017 Motor Driver

Import libraryAP1017

Motor driver library for the AP1017.

Revision:
4:c36159701cde
Parent:
3:f8e70f639ed0
Child:
6:d4d3bc82d446
--- 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: