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-07
Revision:
2:9059b675917e
Parent:
1:a0209f182a64
Child:
5:7d1b124490ed

File content as of revision 2:9059b675917e:

#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(PinName set,PinName reset);
    void outputHigh();
    void outputLow();
//    int setOutput();
//    int resetOutput();
private:
    void initialState();

    
protected:
    DigitalOut *SetPin;
    DigitalOut *ResetPin;
};

#endif