Creating a project about PriSensor for TT_Mxx

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers PirSensor.h Source File

PirSensor.h

00001 #ifndef PIRSENSOR_H
00002 #define PIRSENSOR_H
00003 
00004 #include "mbed.h"
00005 
00006 
00007 
00008 class PirSensor {
00009 
00010 
00011 public:
00012     /**
00013      * @brief 
00014      */
00015     PirSensor(PinName pin);
00016 
00017     PirSensor();
00018 
00019     /**
00020      * @brief Handle the event about door status.
00021      * @param func handle of function.
00022      */
00023     void handleCallback(Callback<void()> func);
00024 private:
00025     InterruptIn *interruptPin;
00026 
00027 };
00028 
00029 
00030 
00031 
00032 
00033 
00034 #endif