b.liu | 5fa9e77 | 2023-11-23 18:00:55 +0800 | [diff] [blame] | 1 | /* |
| 2 | * qser_time.h |
| 3 | * |
| 4 | * QSER time header file. |
| 5 | * |
| 6 | * Author : lb |
| 7 | * Date : 2023/11/23 13:26:11 |
| 8 | */ |
| 9 | #ifndef _QSER_TIME_H |
| 10 | #define _QSER_TIME_H |
| 11 | #include "mbtk_type.h" |
| 12 | |
| 13 | typedef struct time_source_status |
| 14 | { |
| 15 | int ntp; |
| 16 | int nitz; |
| 17 | int gnss; |
| 18 | } time_src_status_s; |
| 19 | |
| 20 | int ntp_sync_time(int enable); |
| 21 | |
| 22 | int modem_time_enable(int enable); |
| 23 | |
| 24 | int gnss_time_enable(int enable); |
| 25 | |
| 26 | int user_set_time(char* date, char* time); |
| 27 | |
| 28 | int lynq_sync_time_from_rtc(void); |
| 29 | |
| 30 | int lynq_get_time_src_status (time_src_status_s * time_src); |
| 31 | |
| 32 | int lynq_set_rtc_time(void); |
| 33 | |
| 34 | int lynq_get_rtc_time(unsigned long *ulsec); |
| 35 | |
| 36 | #endif /* _QSER_TIME_H */ |