PES 4 - Smart Medication Dispenser / PES4_ProgrammeforDesignReview2

Dependencies:   SDFileSystem mbed

Fork of PES4_Programme by PES 4 - Smart Medication Dispenser

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?

UserRevisionLine numberNew 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);