Versions Compared

Key

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

...

Anchor10489891048989 Clk_SetTS() Anchor10489901048990Set Clock timestamp. Anchor10489911048991

Files

...

clk.h/clk.c

...

Prototype

tr
HTML Tablecode
classCode_Listing
Table Row (tr)
Table Cell (td)
rowspan5
Anchor
10489951048995
languagecpp
CPU_BOOLEAN  Clk_SetTS (CLK_TS_SEC  ts_sec);
Table Row (tr)
Table Row (tr)
Table Row (tr)

...


...

Arguments

Anchor10490061049006ts_sec

Current timestamp to set (in seconds, UTC+00).

...

Returned Values

...

10495661049566DEF_OK, if timestamp is successfully set. Anchor

10495871049587DEF_FAIL, otherwise.anchor10490091049009

Required Configuration

Anchor10490101049010None Anchor10490111049011

Notes / Warnings

...

1049595Clock timestamp should be set for UTC+00 (i.e., no local time zone offset included).

Example Usage

Anchor
10490301049030Listing - Clk_SetTS() Example Usage

...

classCode_Listing

...

rowspan8

...

Listing - Clk_SetTS() Example Usage


CPU_BOOLEAN
valid;  
  valid;
 
ts_sec = 15052;
valid =

valid  = Clk_SetTS(ts_sec);
if

if (valid == DEF_OK)
{
 {
    printf("Clock Set TS successful\n\r");
} else {

} else {
    printf("Clock Set TS error\n\r");
}tr

}
Code Block
languagecpp
titleListing - Clk_SetTS() Example Usage
linenumberstrue
CLK_TS_SEC   ts_sec;
Anchor
10496391049639
Anchor
10496111049611
Anchor
10496251049625
Anchor
10496321049632
Anchor
10496581049658
Anchor
10496941049694
Anchor
10496951049695
Anchor
10496791049679
Anchor
10496861049686
Table Row (tr)
Table Row (tr)
Table Row (tr)
Table Row (tr)
Table Row (tr)
Table Row (tr)