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.
Latch_FET_Driver.cpp
- Committer:
- sk398
- Date:
- 2016-02-04
- Revision:
- 0:87f2d094bea3
- Child:
- 1:a0209f182a64
File content as of revision 0:87f2d094bea3:
#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; }