Solaris Software
Loading...
Searching...
No Matches
uart.h File Reference

UART telemetry consumer service. More...

Include dependency graph for uart.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define K_UART_CONSUMER_PRIO   (3)
#define K_UART_TIMEOUT_MS   (1000U)
#define K_UART_MAILBOX_SIZE   (8U)

Functions

const SPP_SERVICE_ConsumerContract_t * SPP_SERVICES_UART_getConsumerContract (void)
 Get the UART consumer contract.
SPP_RetVal_t SPP_SERVICES_UART_getInitStatus (void)
 Get the result of the last UART service init.

Detailed Description

UART telemetry consumer service.

Receives every SPP packet routed by the publisher/subscriber service and transmits it over the UART port exactly as it was produced (full SPP_Packet_t, no re-framing).

Definition in file uart.h.

Macro Definition Documentation

◆ K_UART_CONSUMER_PRIO

#define K_UART_CONSUMER_PRIO   (3)

Consumer priority

Definition at line 20 of file uart.h.

◆ K_UART_TIMEOUT_MS

#define K_UART_TIMEOUT_MS   (1000U)

Consumer timeout in ms.

Definition at line 21 of file uart.h.

◆ K_UART_MAILBOX_SIZE

#define K_UART_MAILBOX_SIZE   (8U)

Packets buffered before dropping the oldest.

Definition at line 22 of file uart.h.

Referenced by SPP_SERVICES_UART_consumeData(), and SPP_SERVICES_UART_deliverToMailbox().

Function Documentation

◆ SPP_SERVICES_UART_getConsumerContract()

const SPP_SERVICE_ConsumerContract_t * SPP_SERVICES_UART_getConsumerContract ( void )

Get the UART consumer contract.

Returns
Pointer to the static consumer contract.

Definition at line 46 of file uart.c.

References g_uartConsumerContract, and SPP_SERVICES_UART_getConsumerContract().

Referenced by SPP_SERVICES_UART_getConsumerContract().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ SPP_SERVICES_UART_getInitStatus()

SPP_RetVal_t SPP_SERVICES_UART_getInitStatus ( void )

Get the result of the last UART service init.

Returns
K_SPP_OK if the UART port was initialised, error code otherwise.

Definition at line 51 of file uart.c.

References s_initStatus, and SPP_SERVICES_UART_getInitStatus().

Referenced by SPP_SERVICES_UART_getInitStatus().

Here is the call graph for this function:
Here is the caller graph for this function: