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.
Diff: Latch_FET_Driver.cpp
- Revision:
- 0:87f2d094bea3
- Child:
- 1:a0209f182a64
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Latch_FET_Driver.cpp Thu Feb 04 13:18:36 2016 +0000 @@ -0,0 +1,17 @@ +#include "mbed.h" +#include "Latch_FET_Driver.h" + +Latch_FET_Driver::Latch_FET_Driver(DigitalOut *Set, DigitalOut *Reset) +{ + SetPin = Set; + ResetPin = Reset; +} + +int Latch_FET_Driver::setOutput() +{ + SetPin -> write(LOW); + ResetPin = LOW; + + return 0; +} +