...
Clk_SetTS_NTP()
...
Set Clock timestamp from an NTP timestamp. Anchor
Files
...
clk.h/clk.c
...
Prototype
...
class | Code_Listing |
---|
...
rowspan | 5 |
---|
...
Arguments
...
...
ts_ntp_sec
Current NTP timestamp to set (in seconds, UTC+00).
...
Returned Values
...
...
DEF_OK
, if timestamp is successfully set.
...
DEF_FAIL
, otherwise.
...
Required Configuration
...
Available only if CLK_CFG_NTP_EN
is DEF_ENABLED
in clk_cfg.h
(see section 3-1-1). Anchor
Notes / Warnings
...
CLK_EPOCH_YR_START
and less than CLK_NTP_EPOCH_YR_END
.Example Usage
...
class | Code_Listing |
---|
...
rowspan | 8 |
---|
...