-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtime.h
41 lines (34 loc) · 944 Bytes
/
time.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
/*
* time.h
*
* Author: Micha³ Witas
*/
#ifndef TIME_H_
#define TIME_H_
typedef struct TTime
{
unsigned char t00_0x;
unsigned char t00_x0;
unsigned char t0x_00;
unsigned char tx0_00;
unsigned char ticks;
unsigned char stoped:1;
unsigned char timeToChange:1;
unsigned char halfTick:1;
unsigned char end:1;
unsigned char foo:4;
} TTime;
void initTime(TTime *time);
void timeReset(TTime *time);
void timeProcess(TTime *time);
void timeIncrement(TTime *time);
void timeDecrement(TTime *time);
void timeToString(TTime *time, unsigned char *res);
void timeFromString(TTime *time, unsigned char *res);
void timeStart(TTime *time);
void timeStop(TTime *time);
void timePlus(TTime *time, unsigned char position);
void timeResetControl(TTime *time);
/*void Str2TTime(unsigned char *str, volatile TTime *time);
void TTime2Str(volatile TTime *time, unsigned char *str);*/
#endif /* TIME_H_ */