positive or negative pulse width counter
PulseWidthCounter.h
- Committer:
- komaida424
- Date:
- 2013-07-11
- Revision:
- 1:d37d6388c179
- Parent:
- PulseCounter.h@ 0:89bd4ad6027d
File content as of revision 1:d37d6388c179:
#ifndef PULSEWIDTHCOUNTER_H #define PULSEWIDTHCOUNTER_H #define POSITIVE true #define NEGATIVE false #include "mbed.h" class PulseWidthCounter { private: Timer _time; void start(); void stop(); InterruptIn interrupt; public: // Timer time; PulseWidthCounter(PinName,bool); int count; }; #endif