Document number
205065
Version
Rev. N
Issue date
2019-02-04
Sirius OBC and TCM User Manual
Page
83
of
174
Element
Type
Description
tc_sub_carrier
uint8_t
See RD8
tc_carrier
uint16_t
See RD8
5.9.5.9. int open
(…)
Opens the devices provided by the CCSDS RTEMS driver. Only one instance of every
device can be opened.
Argument name
Type
Direction Description
filename
char *
in
The absolute path to the file that is to be
opened. The name of the descriptor is
described in 5.9.5
oflags
int
in
A bitwise 'or' separated list of values that
determine the method in which the file is to be
opened (whether it should be read only,
read/write, whether it should be cleared when
opened, etc). See a list of legal values for this
field at the end.
mode
int
in
A bitwise 'or' separated list of values that
determine the mode of the opened device. If
the flag LIBIO_FLAGS_NO_DELAY is set, the
device is opened in non-blocking mode.
Otherwise it is opened in blocking mode. For
further info see 5.9.3. Applies only to devices
/dev/ccsds-
tm0,…, /dev/ccsds
-tm6.
Return value
Description
≥0
A file descriptor for the device
on success
- 1
see
errno
values
errno values
EBUSY
If device already opened
5.9.5.10. int close
(…)
Closes access to the device.
Argument name
Type
Direction Description
fd
int
in
File descriptor received at
open
Return value
Description
0
Device closed successfully