| /* |
| * qser_time.h |
| * |
| * QSER time header file. |
| * |
| * Author : lb |
| * Date : 2023/11/23 13:26:11 |
| */ |
| #ifndef _QSER_TIME_H |
| #define _QSER_TIME_H |
| #include "mbtk_type.h" |
| |
| typedef struct time_source_status |
| { |
| int ntp; |
| int nitz; |
| int gnss; |
| } time_src_status_s; |
| |
| int ntp_sync_time(int enable); |
| |
| int modem_time_enable(int enable); |
| |
| int gnss_time_enable(int enable); |
| |
| int user_set_time(char* date, char* time); |
| |
| int lynq_sync_time_from_rtc(void); |
| |
| int lynq_get_time_src_status (time_src_status_s * time_src); |
| |
| int lynq_set_rtc_time(void); |
| |
| int lynq_get_rtc_time(unsigned long *ulsec); |
| |
| #endif /* _QSER_TIME_H */ |