Unable to render {include} The included page could not be found.
Unable to render {include} The included page could not be found.
Clk_SetTS()
Set Clock timestamp.
Files
clk.h/clk.c
Prototype
CPU_BOOLEAN Clk_SetTS (CLK_TS_SEC ts_sec); |
Arguments
ts_sec Current timestamp to set (in seconds, UTC+00).
Returned Values
DEF_OK, if timestamp is successfully set.
DEF_FAIL, otherwise.
Required Configuration
None
Notes / Warnings
Clock timestamp should be set for UTC+00 (i.e., no local time zone offset included).
Example Usage
CLK_TS_SEC ts_sec; CPU_BOOLEAN valid;
ts_sec = 15052; valid = Clk_SetTS(ts_sec); if (valid == DEF_OK) { printf("Clock Set TS successful\n\r"); } else { printf("Clock Set TS error\n\r"); } |