-
Notifications
You must be signed in to change notification settings - Fork 1
/
HeartBeat.h
48 lines (48 loc) · 1.12 KB
/
HeartBeat.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#ifndef __HEARTBEAT_H__
#define __HEARTBEAT_H__
#endif
#include<stdio.h>
#include<stdlib.h>
#include<stdint.h>
#include<stdbool.h>
#include <sys/time.h>
#define MALE 0
#define FEMALE 1
struct sMALE{
uint8_t Excellent;
uint8_t VerryGood;
uint8_t Good;
uint8_t AboveAverage;
uint8_t Average;
uint8_t BelowAverage;
uint8_t Bad;
};
struct sFEMALE{
uint8_t Excellent;
uint8_t VerryGood;
uint8_t Good;
uint8_t AboveAverage;
uint8_t Average;
uint8_t BelowAverage;
uint8_t Bad;
};
struct sGENERAL{
uint8_t Excellent;
uint8_t VerryGood;
uint8_t Good;
uint8_t AboveAverage;
uint8_t Average;
uint8_t BelowAverage;
uint8_t Bad;
char *Sex;
char Name[150];
unsigned int Age;
uint8_t AgeGroup;
};
bool healthProfile(struct sGENERAL *patient);
unsigned long getTime(void);
bool healthInit(uint8_t iSex,uint8_t iAgeGroup,struct sGENERAL *patient);
char* healthState(struct sGENERAL person,unsigned int pulse);
//void healthExit(); // Will ends the programm and extract to a file the currently patient's data
//void healthReset_data();//Will flush the file that saves the currently patient's data
bool importData(struct sGENERAL *patient);