David Wahl / PWM-Coil-driver

Dependents:   TestBenchSerenity-proto_F429ZI TestBenchFlow HSPFLOW1 TestBenchFlow1 ... more

Revision:
6:e8395448fc8b
Parent:
5:3dab9e2441e3
Child:
7:3f1d2cdcf49b
--- a/coil-driver.h	Tue Jun 20 19:51:40 2017 +0000
+++ b/coil-driver.h	Thu Jul 20 20:33:16 2017 +0000
@@ -14,7 +14,8 @@
     //InterruptIn controlIn; // Input for external coil "ON" signal
     PwmOut controlOut; // PWM output pin driving coil
     uint16_t spikeus, holdperiod_us, holdpulse_us, pwmFrequency;
-
+    
+    char status(); // Return 1 if coil is energized, 0 if not
     void on();
     void off();
 };