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.h
- Revision:
- 0:87f2d094bea3
- Child:
- 1:a0209f182a64
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Latch_FET_Driver.h Thu Feb 04 13:18:36 2016 +0000 @@ -0,0 +1,27 @@ +#include "mbed.h" + +#ifndef LATCH_FET_DRIVER +#define LATCH_FET_DRIVER + + +#define LOW 0 +#define HIGH 1 + + +class Latch_FET_Driver +{ + +public: + Latch_FET_Driver(DigitalOut *Set,DigitalOut *Reset); + int setOutput(); + +private: + + +protected: + DigitalOut *SetPin; + DigitalOut *ResetPin; + +}; + +#endif \ No newline at end of file