- 151 -
set_tim Set system time iset_tim Set system time (handler only)
[
[[
[
C
C
L
La
an
ng
gu
ua
ag
ge
e
A
AP
PI
I
]
]]
]
ER ercd = set_tim( SYSTIM *p_systim );
ER ercd = iset_tim( SYSTIM *p_systim );
z
z
P
Pa
ar
ra
am
me
et
te
er
rs
s
SYSTIM *p_systim Poin ter to the packet that indicates the system time to be set
Contents of p_systim
typedef struct t_systim {
UH utime 0 2 (16 high-order bits)
UW ltime +4 4 (32 low-order bits)
} SYSTIM;
z
z
R
Re
et
tu
ur
rn
n
P
Pa
ar
ra
am
me
et
te
er
rs
s
ER ercd Terminated normally (E_OK)
[
[[
[
A
As
ss
se
em
mb
bl
ly
y
l
la
an
ng
gu
ua
ag
ge
e
A
AP
PI
I
]
]]
]
.include mr100.inc
set_tim PK_TIM
iset_tim PK_TIM
z
z
P
Pa
ar
ra
am
me
et
te
er
rs
s
PK_TIM Pointer to the packet that indicates the system time to be set
z
z
R
Re
eg
gi
is
st
te
er
r
c
co
on
nt
te
en
nt
ts
s
a
af
ft
te
er
r
s
se
er
rv
vi
ic
ce
e
c
ca
al
ll
l
i
is
s
i
is
ss
su
ue
ed
d
Register name Content after service call is issued
R0 Error code
A1 Pointer to the packet that indicates the system time to be set
[
[[
[
E
Er
rr
ro
or
r
c
co
od
de
e
]
]]
]
None
[
[[
[
F
Fu
un
nc
ct
ti
io
on
na
al
l
d
de
es
sc
cr
ri
ip
pt
ti
io
on
n
]
]]
]
This service call updates the current value of the system time to the value indicated by p_systim. The time specified in
p_systim is expressed in ms units, and not by the number of time ticks.
The values specified for p_systim must be within 0x7FFF: FFFFFFFF. If any value exceeding this limit is specified, the
service call may not operate correctly.
If this service call is to be issued from task context, use set_tim; if issued from non-task context, use iset_tim.