Select one of the symbols to view example projects that use it.
 
Outline
#define __SNTP_GET_SET_TIME_H__
#include <stdint.h>
sntp_get_sync_interval();
sntp_set_system_time(uint32_t, uint32_t);
sntp_get_system_time(uint32_t *, uint32_t *);
Files
loading...
SourceVuESP-IDF Framework and ExampleslwIPport/include/sntp/sntp_get_set_time.h
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
/* * SPDX-FileCopyrightText: 2021-2022 Espressif Systems (Shanghai) CO LTD * * SPDX-License-Identifier: Apache-2.0 *//* ... */ #ifndef __SNTP_GET_SET_TIME_H__ #define __SNTP_GET_SET_TIME_H__ #include <stdint.h> #ifdef __cplusplus extern "C" { #endif /* * Declarations of functions used in lwipopts.h to redefine * default sntp macros, such as: * - SNTP_UPDATE_DELAY() * - SNTP_SET_SYSTEM_TIME_US() * - SNTP_GET_SYSTEM_TIME() *//* ... */ /* * @brief Get the sync interval of SNTP operation * Full definition is provided in IDF's layer in esp_sntp.c *//* ... */ uint32_t sntp_get_sync_interval(void); /** * @brief system time setter used in the sntp module * @note The lwip sntp uses u32_t types for sec and us arguments *//* ... */ void sntp_set_system_time(uint32_t sec, uint32_t us); /** * @brief system time getter used in the sntp module * @note The lwip sntp uses u32_t types for sec and us arguments *//* ... */ void sntp_get_system_time(uint32_t* sec, uint32_t* us); #ifdef __cplusplus }{...} #endif /* ... */ #endif //__SNTP_GET_SET_TIME_H__
Details
Show:
from
Types: Columns: