...
Clk_GetTS_NTP()
...
Get current Clock timestamp as an NTP timestamp. Anchor
Files
...
clk.h/clk.c
...
Prototype
...
class | Code_Listing |
---|
...
...
rowspan | 5 |
---|
...
Arguments
...
...
p_ts_ntp_sec
Pointer to variable that will receive the NTP timestamp:
Anchor
CLK_TS_SEC_NONE
, otherwise.Returned Values
...
...
DEF_OK
, if current timestamp is successfully converted.
...
...
DEF_FAIL
, otherwise.
...
Required Configuration
Anchor
CLK_CFG_NTP_EN
is DEF_ENABLED
in clk_cfg.h
(see section 3-1-1).Notes / Warnings
Anchor
Clk_GetTS_NTP()
.CLK_NTP_EPOCH_YR_END
.Example Usage
...
class | Code_Listing |
---|
...
rowspan | 8 |
---|
...