Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Clk_SetTS_NTP()

...

Set Clock timestamp from an NTP timestamp. Anchor10512181051218

Files

...

clk.h/clk.c

...

Prototype

...

classCode_Listing

...

rowspan5

...

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). Anchor10615731061573

Notes / Warnings

...

1068473Only years supported by Clock and NTP can be set, thus the timestamp date must be between greater than or equal to CLK_EPOCH_YR_START and less than CLK_NTP_EPOCH_YR_END. Anchor10512571051257

Example Usage

...

classCode_Listing

...

rowspan8

...