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@78:56487bba3934, 2018-04-08 (annotated)
- Committer:
- EHess
- Date:
- Sun Apr 08 02:30:16 2018 +0000
- Revision:
- 78:56487bba3934
- Parent:
- 62:6e021f4d2fbb
- Child:
- 79:c825bd2dea81
added different functions to 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 | 78:56487bba3934 | 4 | /* Write Time for PWM |
| EHess | 78:56487bba3934 | 5 | * @ Write to global variable |
| EHess | 78:56487bba3934 | 6 | */ |
| EHess | 78:56487bba3934 | 7 | void writeTime(); |
| EHess | 62:6e021f4d2fbb | 8 | |
| EHess | 78:56487bba3934 | 9 | /* Write Period for PWM |
| EHess | 78:56487bba3934 | 10 | * @ Write to global variable |
| EHess | 78:56487bba3934 | 11 | */ |
| EHess | 78:56487bba3934 | 12 | void writePeriod(); |
| EHess | 78:56487bba3934 | 13 | |
| EHess | 78:56487bba3934 | 14 | /* Disable all Container |
| EHess | 62:6e021f4d2fbb | 15 | */ |
| EHess | 78:56487bba3934 | 16 | void disableContainer(); |
| EHess | 78:56487bba3934 | 17 | |
| EHess | 78:56487bba3934 | 18 | /* Enable Container |
| EHess | 78:56487bba3934 | 19 | * @param Container 1-6 |
| EHess | 78:56487bba3934 | 20 | */ |
| EHess | 78:56487bba3934 | 21 | void enableContainer(char container); |
| aeschsim | 48:2092e0a411b8 | 22 | |
| EHess | 62:6e021f4d2fbb | 23 | /* Get DutyCycle |
| EHess | 78:56487bba3934 | 24 | * @return DutyCycle in promille |
| EHess | 62:6e021f4d2fbb | 25 | */ |
| EHess | 78:56487bba3934 | 26 | int getDutyCycle(); |
| EHess | 78:56487bba3934 | 27 | |
| EHess | 78:56487bba3934 | 28 | /* Attach Interrupts |
| EHess | 78:56487bba3934 | 29 | */ |
| EHess | 78:56487bba3934 | 30 | void initInterrupt(); |
| aeschsim | 48:2092e0a411b8 | 31 | |
| EHess | 62:6e021f4d2fbb | 32 | /* Turn Container 90 degrees |
| EHess | 62:6e021f4d2fbb | 33 | * @param Container 1-6 |
| EHess | 62:6e021f4d2fbb | 34 | * @return true if next position reached |
| EHess | 62:6e021f4d2fbb | 35 | */ |
| EHess | 78:56487bba3934 | 36 | int nextPosition(char container); |
