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:
1:a0209f182a64
Parent:
0:87f2d094bea3
Child:
2:9059b675917e

File content as of revision 1:a0209f182a64:

#include "mbed.h"
#include "Latch_FET_Driver.h"

Latch_FET_Driver::Latch_FET_Driver(PinName set,PinName reset)
{
    SetPin = new DigitalOut(set);
    ResetPin = new DigitalOut(reset);
}

int Latch_FET_Driver::setOutput()
{
    ResetPin = LOW;
    
    return 0;
}