Document number
205065
Version
Rev. N
Issue date
2019-02-04
Sirius OBC and TCM User Manual
Page
47
of
174
O_RDWR
Open for reading and writing.
Return value
Description
fd
A file descriptor for the device
on success
-1
See
errno
values
errno values
ENODEV
Device does not exist
EALREADY
Device is already open
EIO
Failed to obtain internal
resource
Device name
Description
/dev/uart0
Ordinary UART, default mode RS422
/dev/uart1
Ordinary UART, default mode RS422
/dev/uart2
Ordinary UART, default mode RS422
/dev/uart3
Ordinary UART, default mode RS422
/dev/uart4
Ordinary UART, default mode RS422
/dev/uart5
Ordinary UART, default mode RS422
/dev/uart_psu_control
PSU Control, RS485 only
/dev/uart_safe_bus
Safe bus, RS485 only
5.5.2.2. Function int close(...)
Closes access to the device and disables the line drivers.
Argument name
Type
Direction Description
fd
int
in
File descriptor received at
open
Return value
Description
0
Device closed successfully