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@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 | #include "Latch_FET_Driver.h" |
sk398 | 0:87f2d094bea3 | 3 | |
sk398 | 1:a0209f182a64 | 4 | Latch_FET_Driver::Latch_FET_Driver(PinName set,PinName reset) |
sk398 | 0:87f2d094bea3 | 5 | { |
sk398 | 1:a0209f182a64 | 6 | SetPin = new DigitalOut(set); |
sk398 | 1:a0209f182a64 | 7 | ResetPin = new DigitalOut(reset); |
sk398 | 0:87f2d094bea3 | 8 | } |
sk398 | 0:87f2d094bea3 | 9 | |
sk398 | 0:87f2d094bea3 | 10 | int Latch_FET_Driver::setOutput() |
sk398 | 0:87f2d094bea3 | 11 | { |
sk398 | 0:87f2d094bea3 | 12 | ResetPin = LOW; |
sk398 | 0:87f2d094bea3 | 13 | |
sk398 | 0:87f2d094bea3 | 14 | return 0; |
sk398 | 0:87f2d094bea3 | 15 | } |
sk398 | 0:87f2d094bea3 | 16 |