Document number
205065
Version
Rev. N
Issue date
2019-02-04
Sirius OBC and TCM User Manual
Page
50
of
174
UART_IOCTL_SET_TRIGGER_LEVEL
uint32_t
in
Set the RX FIFO trigger level. Possible
values:
UART_TRIGGER_LEVEL_1 = 1
character
UART_TRIGGER_LEVEL_4 = 1/4 full
UART_TRIGGER_LEVEL_8 = 1/2 full
UART_TRIGGER_LEVEL_14 =
buffer_depth - 2 (default)
UART_IOCTL_GET_TRIGGER_LEVEL
uint32_t*
out
Get the current trigger level
Return value
Description
0
Command executed successfully
-1
see
errno
values
errno values
EBADF
Bad file descriptor for intended operation
EINVAL
Invalid value supplied to IOCTL
5.5.3. Usage description
The following #define needs to be set by the user application to be able to use the UARTs:
CONFIGURE_APPLICATION_NEEDS_UART_DRIVER
5.5.3.1. RTEMS application example
In order to use the uart driver in the RTEMS environment, the following code structure is
suggested to be used: