syouichi imamori / PulseWidthCounter

Dependents:   test_hw_biniou

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers PulseWidthCounter.h Source File

PulseWidthCounter.h

00001 #ifndef PULSEWIDTHCOUNTER_H
00002 #define PULSEWIDTHCOUNTER_H
00003 #define POSITIVE true
00004 #define NEGATIVE false
00005 
00006 #include "mbed.h"
00007 
00008 class PulseWidthCounter  
00009 {
00010 private:
00011     Timer _time;
00012     void start();
00013     void stop();
00014     InterruptIn interrupt;
00015 
00016 public:
00017  //   Timer time;
00018     PulseWidthCounter(PinName,bool); 
00019 
00020     int count;
00021 };
00022 #endif