Document number
204911
Version
Rev. K
Issue date
2016-10-11
Sirius Breadboard User Manual
www.aacmicrotec.com
Page
64
of
106
Return value
Description
≥0
number of bytes that were
written.
- 1
see
errno
values
errno values
EINVAL
Wrong arguments
EIO
A physical access on the
device failed
5.10.2.10.
size_t read(…)
To read a Telecommand Transfer frame a read-
operation on device “/dev/ccsds-tc” shall be
used. The read Telecommand Transfer frame is passed as a pointer to a variable of type
tc_frame_t.. This call is blocking until a Telecommand Transfer Frame is received.
Argument name
Type
Direction Description
Fd
int
in
File descriptor received at
open
Buf
void *
in
Character buffer where read data is returned
Nbytes
size_t
in
Number of bytes to write from the
Return value
Description
≥0
Number of bytes that were
read.
- 1
see
errno
values
errno values
EINVAL
Wrong arguments
EIO
A physical access on the
device failed
5.10.2.11.
int ioctl(…)
The devices provided by the CCSDS driver support different IOCTL’s.
Argument name
Type
Direction Description
Fd
int
in
File descriptor received at
open
Cmd
int
in
Command to send
Val
void *
in
The parameter to pass is depended on which
IOCTL is called. Is described in table below.