Document number
205065
Version
Rev. N
Issue date
2019-02-04
Sirius OBC and TCM User Manual
Page
39
of
174
count
size_t
in
Number of bytes to read, must be set to 6.
Return value
Description
>=0
Number of bytes that were
read.
-1
See
errno
values
errno values
EBADF
File descriptor not opened for
reading
EINVAL
Number of bytes to read,
count, is not 6
5.4.4.4.
Function ssize_t write(…)
Adjusts the SCET value's second and subsecond counters using two's complement
difference values.
Argument name
Type
Direction Description
fd
int
in
File descriptor received at open.
buf
const void *
in
Pointer to a 6-byte buffer where the adjustment
difference values are stored. The first four
bytes are the difference value for the seconds
and the last two bytes are the difference value
for the subseconds.
count
size_t
in
Number of bytes to write, must be set to 6.
Return value
Description
>=0
Number of bytes that were
written.
-1
See
errno
values
errno values
EBADF
File descriptor not opened for
writing
EINVAL
Number of bytes to write,
count, is not 6
5.4.4.5.
Function int ioctl(…)
Ioctl allows for any other SCET-related operation which isn't specifically aimed at reading
and/or writing the SCET time value.