Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: TestBenchSerenity-proto_F429ZI TestBenchFlow HSPFLOW1 TestBenchFlow1 ... more
Diff: coil-driver.h
- 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();
};