Orefatoi
/
afero_poc15_171201
POC1.5 prototype 2 x color sensor 2 x LM75B 3 x AnalogIn 1 x accel
edge_utils/edge_time.h@8:5590f55bdf41, 2017-12-07 (annotated)
- Committer:
- Rhyme
- Date:
- Thu Dec 07 10:13:13 2017 +0000
- Revision:
- 8:5590f55bdf41
- Parent:
- 0:f0de320e23ac
commit at the end of 7-Dec-2017
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
Rhyme | 0:f0de320e23ac | 1 | #ifndef _EDGE_TIME_H_ |
Rhyme | 0:f0de320e23ac | 2 | #define _EDGE_TIME_H_ |
Rhyme | 0:f0de320e23ac | 3 | #include "mbed.h" |
Rhyme | 0:f0de320e23ac | 4 | |
Rhyme | 0:f0de320e23ac | 5 | void init_timer(void) ; |
Rhyme | 0:f0de320e23ac | 6 | void set_time(const uint16_t valueLen, const uint8_t *value) ; |
Rhyme | 0:f0de320e23ac | 7 | void ts2time(uint32_t timestamp, struct tm *tm) ; /* light version */ |
Rhyme | 0:f0de320e23ac | 8 | void ts2tm(uint32_t timestamp, struct tm *date) ; /* full version */ |
Rhyme | 0:f0de320e23ac | 9 | void print_time(void) ; /* light version */ |
Rhyme | 0:f0de320e23ac | 10 | void print_time(uint32_t thetime) ; |
Rhyme | 0:f0de320e23ac | 11 | void print_time(struct tm *tm) ; /* light version */ |
Rhyme | 0:f0de320e23ac | 12 | void print_date(struct tm *date) ; /* full version */ |
Rhyme | 8:5590f55bdf41 | 13 | void print_date_wd(struct tm *date) ; /* vull version with day of week */ |
Rhyme | 0:f0de320e23ac | 14 | void time2str(char *timestr) ; /* light version */ |
Rhyme | 0:f0de320e23ac | 15 | int32_t time2seq(uint32_t timestamp) ; /* hhmmss */ |
Rhyme | 8:5590f55bdf41 | 16 | void time2seq(uint32_t timestamp, char *timestr) ; |
Rhyme | 8:5590f55bdf41 | 17 | void time2str(struct tm *tm, char *timestr) ; /* hh:mm:ss */ |
Rhyme | 8:5590f55bdf41 | 18 | void time2date(struct tm *tm, char *datestr) ; /* YYYY/MM/DD hh:mm:ss */ |
Rhyme | 8:5590f55bdf41 | 19 | void time2date(struct tm *tm, char *datestr) ; /* full version with day of week */ |
Rhyme | 0:f0de320e23ac | 20 | |
Rhyme | 0:f0de320e23ac | 21 | extern const char *nameOfDay[] ; |
Rhyme | 0:f0de320e23ac | 22 | extern tm current_time ; |
Rhyme | 0:f0de320e23ac | 23 | extern uint32_t edge_time ; |
Rhyme | 0:f0de320e23ac | 24 | extern uint32_t utc_offset ; |
Rhyme | 0:f0de320e23ac | 25 | #endif /* _EDGE_TIME_H_ */ |