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.
Dependencies: SDFileSystem mbed
Fork of PES4_Programme by
header/measure.h@75:4064a0f13083, 2018-04-06 (annotated)
- Committer:
- EHess
- Date:
- Fri Apr 06 11:59:29 2018 +0000
- Revision:
- 75:4064a0f13083
- Parent:
- 62:6e021f4d2fbb
- Child:
- 76:53a25f1dc2b6
added interruptfunctions in measure.cpp
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| aeschsim | 48:2092e0a411b8 | 1 | #pragma once |
| aeschsim | 48:2092e0a411b8 | 2 | #include "mbed.h" |
| aeschsim | 48:2092e0a411b8 | 3 | |
| EHess | 75:4064a0f13083 | 4 | /* Attach Interrupts |
| EHess | 75:4064a0f13083 | 5 | */ |
| EHess | 75:4064a0f13083 | 6 | void initInterrupt(); |
| EHess | 75:4064a0f13083 | 7 | |
| EHess | 75:4064a0f13083 | 8 | /* Write Time for PWM |
| EHess | 75:4064a0f13083 | 9 | * @ Write to global variable |
| EHess | 75:4064a0f13083 | 10 | */ |
| EHess | 75:4064a0f13083 | 11 | void writeTime(); |
| EHess | 75:4064a0f13083 | 12 | |
| EHess | 75:4064a0f13083 | 13 | /* Write Period for PWM |
| EHess | 75:4064a0f13083 | 14 | * @ Write to global variable |
| EHess | 75:4064a0f13083 | 15 | */ |
| EHess | 75:4064a0f13083 | 16 | void writePeriod(); |
| EHess | 62:6e021f4d2fbb | 17 | |
| EHess | 62:6e021f4d2fbb | 18 | /* Read Timer |
| EHess | 62:6e021f4d2fbb | 19 | */ |
| EHess | 62:6e021f4d2fbb | 20 | void readTimer(int pos); |
| aeschsim | 48:2092e0a411b8 | 21 | |
| EHess | 62:6e021f4d2fbb | 22 | /* Get DutyCycle |
| EHess | 62:6e021f4d2fbb | 23 | * @param Container 1-6 |
| EHess | 62:6e021f4d2fbb | 24 | * @return DutyCycle |
| EHess | 62:6e021f4d2fbb | 25 | */ |
| EHess | 62:6e021f4d2fbb | 26 | int getDutyCycle(char container); |
| aeschsim | 48:2092e0a411b8 | 27 | |
| EHess | 62:6e021f4d2fbb | 28 | /* Turn Container 90 degrees |
| EHess | 62:6e021f4d2fbb | 29 | * @param Container 1-6 |
| EHess | 62:6e021f4d2fbb | 30 | * @return true if next position reached |
| EHess | 62:6e021f4d2fbb | 31 | */ |
| EHess | 62:6e021f4d2fbb | 32 | int nextPosition(char container); |
