baseline build

Dependencies:   FastPWM mbed-os mbed

Revision:
0:8a420ac6394e
diff -r 000000000000 -r 8a420ac6394e FullBridgeDriver.h
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/FullBridgeDriver.h	Mon Jun 19 15:55:51 2017 +0000
@@ -0,0 +1,25 @@
+
+#ifndef __FULL_BRIDGE_DRIVER_H__
+#define __FULL_BRIDGE_DRIVER_H__
+
+const double MIN_PWM_FREQUENCY = 50;
+const double MAX_PWM_FREQUENCY = 1000;
+const double DEFAULT_PWM_FREQUENCY = 400;
+
+class FullBridgeDriver
+{
+public:
+    FullBridgeDriver(void);
+    double GetActualFrequency(void);
+    void SetState(double kHzFrequency);
+    void Enable(bool enabled);
+    
+private:
+    void ChangeFrequency(double kHzFrequency);
+
+private:
+    double currentFrequency;
+    bool   isEnabled;
+};
+
+#endif