Driver to control a peripheral circuit being controlled by the operation of a FET. Inbetween the mbed and FET is a single D type latch, used to latch a signal to the driver.

Revision:
6:073ee2fd1245
Parent:
5:7d1b124490ed
--- a/Latch_FET_Driver.cpp	Sat Feb 20 13:22:50 2016 +0000
+++ b/Latch_FET_Driver.cpp	Fri Mar 04 17:53:29 2016 +0000
@@ -29,6 +29,18 @@
     Latch_FET_Driver::outputLow();
 }
 
+void Latch_FET_Driver::changeOutputState(bool stateChange)
+{
+    if(stateChange == HIGH)
+    {
+        Latch_FET_Driver::outputHigh();
+    }
+    else
+    {
+        Latch_FET_Driver::outputLow();
+    }
+}
+
 /*  ================================================================
     outputHigh is a public method to set a HIGH output on the given
     D Latch.