PES 4 - Smart Medication Dispenser / PES4_ProgrammeforDesignReview2

Dependencies:   SDFileSystem mbed

Fork of PES4_Programme by PES 4 - Smart Medication Dispenser

header/measure.h

Committer:
aeschsim
Date:
2018-04-06
Revision:
76:53a25f1dc2b6
Parent:
75:4064a0f13083
Child:
79:c825bd2dea81

File content as of revision 76:53a25f1dc2b6:

#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
*/
float getDutyCycle(char container);

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