Allegro A3930 BLDC driver

Revision:
1:464cd2cb852e
Parent:
0:a6123d12f08b
--- a/a3930.h	Mon Nov 04 17:04:34 2013 +0000
+++ b/a3930.h	Sun Nov 10 15:36:47 2013 +0000
@@ -3,6 +3,7 @@
 
 #include "mbed.h"
 #include "PCA9555.h"
+#include "PinDetect.h"
 
  /** Class for controlling motors trough PCA9555 */
 class A3930 {
@@ -43,6 +44,8 @@
      */
     void setPWM(float newPWM);
     
+    void setRawPWM(float newPWM);
+    
     int getStallLevel();
     
     void stallChange(void (*function)(void));
@@ -81,7 +84,10 @@
     unsigned int coastPinNumber;
     
     InterruptIn interruptTacho;
-    InterruptIn interruptDiro;
+    //InterruptIn interruptDiro;
+    
+    //PinDetect interruptTacho;
+    PinDetect interruptDiro;
     
     volatile int diro;
     volatile int pulses;