POC1.5 prototype 2 x color sensor 2 x LM75B 3 x AnalogIn 1 x accel

Dependencies:   mbed vt100

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers edge_time.h Source File

edge_time.h

00001 #ifndef _EDGE_TIME_H_
00002 #define _EDGE_TIME_H_
00003 #include "mbed.h"
00004 
00005 void init_timer(void) ;
00006 void set_time(const uint16_t  valueLen, const uint8_t *value) ;
00007 void ts2time(uint32_t timestamp, struct tm *tm) ; /* light version */
00008 void ts2tm(uint32_t timestamp, struct tm *date) ; /* full version */
00009 void print_time(void) ; /* light version */
00010 void print_time(uint32_t thetime) ;
00011 void print_time(struct tm *tm) ; /* light version */
00012 void print_date(struct tm *date) ; /* full version */
00013 void print_date_wd(struct tm *date) ; /* vull version with day of week */
00014 void time2str(char *timestr) ; /* light version */
00015 int32_t time2seq(uint32_t timestamp) ; /* hhmmss */
00016 void time2seq(uint32_t timestamp, char *timestr) ;
00017 void time2str(struct tm *tm, char *timestr) ; /* hh:mm:ss */
00018 void time2date(struct tm *tm, char *datestr) ; /* YYYY/MM/DD hh:mm:ss */
00019 void time2date(struct tm *tm, char *datestr) ; /* full version with day of week */
00020 
00021 extern const char *nameOfDay[] ;
00022 extern tm current_time ;
00023 extern uint32_t edge_time ;
00024 extern uint32_t utc_offset ;
00025 #endif /* _EDGE_TIME_H_ */