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