Allegro A3930 BLDC driver
Diff: a3930.h
- Revision:
- 1:464cd2cb852e
- Parent:
- 0:a6123d12f08b
diff -r a6123d12f08b -r 464cd2cb852e a3930.h --- 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;