Creating a project for TT_Mxx

DoorStatus/DoorStatus.h

Committer:
ThunderSoft
Date:
2019-04-26
Revision:
1:c55bc0872920
Parent:
0:a0f5041497e4

File content as of revision 1:c55bc0872920:

#ifndef DOORSTATUS_H
#define DOORSTATUS_H

#include "mbed.h"



class DoorStatus {


public:
    /**
     * @brief 
     */
    DoorStatus(PinName pin);

    DoorStatus();

    /**
     * @brief Handle the event about door status.
     * @param func handle of function.
     */
    void handleCallback(Callback<void()> func);
private:
    InterruptIn *interruptPin;

};






#endif