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@1:a0209f182a64, 2016-02-04 (annotated)
- Committer:
- sk398
- Date:
- Thu Feb 04 14:08:29 2016 +0000
- Revision:
- 1:a0209f182a64
- Parent:
- 0:87f2d094bea3
- Child:
- 2:9059b675917e
DigitalPin method added and works.; ; Still to include logic;
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
sk398 | 0:87f2d094bea3 | 1 | #include "mbed.h" |
sk398 | 0:87f2d094bea3 | 2 | |
sk398 | 0:87f2d094bea3 | 3 | #ifndef LATCH_FET_DRIVER |
sk398 | 0:87f2d094bea3 | 4 | #define LATCH_FET_DRIVER |
sk398 | 0:87f2d094bea3 | 5 | |
sk398 | 0:87f2d094bea3 | 6 | |
sk398 | 0:87f2d094bea3 | 7 | #define LOW 0 |
sk398 | 0:87f2d094bea3 | 8 | #define HIGH 1 |
sk398 | 0:87f2d094bea3 | 9 | |
sk398 | 0:87f2d094bea3 | 10 | |
sk398 | 0:87f2d094bea3 | 11 | class Latch_FET_Driver |
sk398 | 0:87f2d094bea3 | 12 | { |
sk398 | 0:87f2d094bea3 | 13 | |
sk398 | 0:87f2d094bea3 | 14 | public: |
sk398 | 1:a0209f182a64 | 15 | Latch_FET_Driver(PinName set,PinName reset); |
sk398 | 0:87f2d094bea3 | 16 | int setOutput(); |
sk398 | 0:87f2d094bea3 | 17 | |
sk398 | 0:87f2d094bea3 | 18 | private: |
sk398 | 0:87f2d094bea3 | 19 | |
sk398 | 0:87f2d094bea3 | 20 | |
sk398 | 0:87f2d094bea3 | 21 | protected: |
sk398 | 0:87f2d094bea3 | 22 | DigitalOut *SetPin; |
sk398 | 0:87f2d094bea3 | 23 | DigitalOut *ResetPin; |
sk398 | 0:87f2d094bea3 | 24 | |
sk398 | 0:87f2d094bea3 | 25 | }; |
sk398 | 0:87f2d094bea3 | 26 | |
sk398 | 0:87f2d094bea3 | 27 | #endif |