PES 4 - Smart Medication Dispenser / PES4_ProgrammeforDesignReview2

Dependencies:   SDFileSystem mbed

Fork of PES4_Programme by PES 4 - Smart Medication Dispenser

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?

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