...
Files
clk.h/clk.c
Prototype
Code Block |
---|
|
CPU_BOOLEAN Clk_SetTS (CLK_TS_SEC ts_sec); |
Arguments
ts_sec
Current timestamp to set (in seconds, UTC+00).
...
Clock timestamp should be set for UTC+00 (i.e., no local time zone offset included).
Example Usage
Anchor |
---|
| Listing - Clk_SetTS() Example Usage |
---|
| Listing - Clk_SetTS() Example Usage |
---|
|
Code Block |
---|
language | cpp |
---|
title | Listing - Clk_SetTS() Example Usage |
---|
linenumbers | true |
---|
|
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");
} |