PES 4 - Smart Medication Dispenser / PES4_ProgrammeforDesignReview2

Dependencies:   SDFileSystem mbed

Fork of PES4_Programme by PES 4 - Smart Medication Dispenser

header/measure.h

Committer:
EHess
Date:
2018-04-06
Revision:
75:4064a0f13083
Parent:
62:6e021f4d2fbb
Child:
76:53a25f1dc2b6

File content as of revision 75:4064a0f13083:

#pragma once
#include "mbed.h"

/*  Attach Interrupts
*/
void initInterrupt();

/*  Write Time for PWM
*   @ Write to global variable
*/
void writeTime();

/*  Write Period for PWM
*   @ Write to global variable
*/
void writePeriod();

/*  Read Timer
*/
void readTimer(int pos);

/*  Get DutyCycle
*   @param  Container 1-6
*   @return DutyCycle
*/
int getDutyCycle(char container);

/*  Turn Container 90 degrees
*   @param  Container 1-6
*   @return true if next position reached
*/
int nextPosition(char container);