-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathclient.h
More file actions
46 lines (29 loc) · 692 Bytes
/
client.h
File metadata and controls
46 lines (29 loc) · 692 Bytes
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
/* CLIENT */
enum {
biceps, quads, calves, triceps, pectorals
};
typedef struct _rep {
unsigned int muscle_group;
unsigned int resistance;
unsigned int rotation;
unsigned int speed;
} Rep;
/*
TODO
typedef struct _heartrate {
unsigned int rate;
} Heartrate;
*/
/*
* Reader function that reads from the instrument stream and returns a Rep struct
* representing the rep done
*/
int reader(int, Rep*);
/* Calculates the energy requirements for a rep */
double energyOutput(Rep*);
/* Calculates the calories expended per rep */
double calorieOutput(Rep*);
/* Calculates the fatigue per rep */
double fatigueOutput(Rep*);
/* Output the rep */
void output(Rep*);