Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
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 pulsein; 00015 00016 public: 00017 // Timer time; 00018 PulseWidthCounter(PinName,bool positive=true); 00019 PulseWidthCounter(const PulseWidthCounter& pwc); 00020 int count; 00021 }; 00022 #endif
Generated on Wed Jul 13 2022 09:20:34 by
1.7.2