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.
Fork of QEI by
Diff: QEI.h
- Revision:
- 1:0925301c3257
- Parent:
- 0:5c2ad81551aa
- Child:
- 3:ee47e451eb7c
--- a/QEI.h Thu Sep 02 16:48:55 2010 +0000 +++ b/QEI.h Wed Nov 14 09:57:55 2018 +0000 @@ -207,6 +207,10 @@ * @return Number of revolutions which have occured on the index channel. */ int getRevolutions(void); + + int getYay(void); + void ResetYay(void); + private: @@ -226,6 +230,8 @@ */ void index(void); + + Encoding encoding_; InterruptIn channelA_; @@ -235,9 +241,11 @@ int pulsesPerRev_; int prevState_; int currState_; + int PulseCount_; volatile int pulses_; volatile int revolutions_; + volatile int yay_; };