Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: UniGraphic mbed vt100
edge_utils/edge_time.h@1:6c54dc8acf96, 2018-04-24 (annotated)
- Committer:
- Rhyme
- Date:
- Tue Apr 24 12:18:10 2018 +0000
- Revision:
- 1:6c54dc8acf96
- Parent:
- 0:0b6732b53bf4
to adjust with 103AT-11 with 5.1k pull-up, the constructor of 502AT-11 is called with R0=10.0, R1=5.1, B=3435, T0=298.15
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
Rhyme | 0:0b6732b53bf4 | 1 | #ifndef _EDGE_TIME_H_ |
Rhyme | 0:0b6732b53bf4 | 2 | #define _EDGE_TIME_H_ |
Rhyme | 0:0b6732b53bf4 | 3 | #include "mbed.h" |
Rhyme | 0:0b6732b53bf4 | 4 | |
Rhyme | 0:0b6732b53bf4 | 5 | void init_timer(void) ; |
Rhyme | 0:0b6732b53bf4 | 6 | void set_time(const uint16_t valueLen, const uint8_t *value) ; |
Rhyme | 0:0b6732b53bf4 | 7 | void ts2time(uint32_t timestamp, struct tm *tm) ; /* light version */ |
Rhyme | 0:0b6732b53bf4 | 8 | void ts2tm(uint32_t timestamp, struct tm *date) ; /* full version */ |
Rhyme | 0:0b6732b53bf4 | 9 | void print_time(void) ; /* light version */ |
Rhyme | 0:0b6732b53bf4 | 10 | void print_time(uint32_t thetime) ; |
Rhyme | 0:0b6732b53bf4 | 11 | void print_time(struct tm *tm) ; /* light version */ |
Rhyme | 0:0b6732b53bf4 | 12 | void print_date(struct tm *date) ; /* full version */ |
Rhyme | 0:0b6732b53bf4 | 13 | void print_date_wd(struct tm *date) ; /* vull version with day of week */ |
Rhyme | 0:0b6732b53bf4 | 14 | void time2str(char *timestr) ; /* light version */ |
Rhyme | 0:0b6732b53bf4 | 15 | int32_t time2seq(uint32_t timestamp) ; /* hhmmss */ |
Rhyme | 0:0b6732b53bf4 | 16 | void time2seq(uint32_t timestamp, char *timestr) ; |
Rhyme | 0:0b6732b53bf4 | 17 | void time2str(struct tm *tm, char *timestr) ; /* hh:mm:ss */ |
Rhyme | 0:0b6732b53bf4 | 18 | void time2date(struct tm *tm, char *datestr) ; /* YYYY/MM/DD hh:mm:ss */ |
Rhyme | 0:0b6732b53bf4 | 19 | void time2date(struct tm *tm, char *datestr) ; /* full version with day of week */ |
Rhyme | 0:0b6732b53bf4 | 20 | |
Rhyme | 0:0b6732b53bf4 | 21 | extern const char *nameOfDay[] ; |
Rhyme | 0:0b6732b53bf4 | 22 | extern tm current_time ; |
Rhyme | 0:0b6732b53bf4 | 23 | extern uint32_t edge_time ; |
Rhyme | 0:0b6732b53bf4 | 24 | extern uint32_t utc_offset ; |
Rhyme | 0:0b6732b53bf4 | 25 | #endif /* _EDGE_TIME_H_ */ |