Solaris Software
Toggle main menu visibility
Loading...
Searching...
No Matches
uart.h
Go to the documentation of this file.
1
/**
2
* @file uart.h
3
* @brief UART telemetry consumer service.
4
*
5
* Receives every SPP packet routed by the publisher/subscriber service and
6
* transmits it over the UART port exactly as it was produced (full
7
* @ref SPP_Packet_t, no re-framing).
8
*
9
*/
10
11
#ifndef SPP_SERVICES_UART_H
12
#define SPP_SERVICES_UART_H
13
14
#include "
spp/core/returnTypes.h
"
15
#include "
spp/services/service.h
"
16
17
/* ----------------------------------------------------------------
18
* DEFINES
19
* ---------------------------------------------------------------- */
20
#define K_UART_CONSUMER_PRIO (3)
/**< Consumer priority */
21
#define K_UART_TIMEOUT_MS (1000U)
/**< Consumer timeout in ms. */
22
#define K_UART_MAILBOX_SIZE (8U)
/**< Packets buffered before dropping the oldest. */
23
24
/* ----------------------------------------------------------------
25
* PUBLIC FUNCTIONS
26
* ---------------------------------------------------------------- */
27
28
/**
29
* @brief Get the UART consumer contract.
30
* @return Pointer to the static consumer contract.
31
*/
32
const
SPP_SERVICE_ConsumerContract_t
*
SPP_SERVICES_UART_getConsumerContract
(
void
);
33
34
/**
35
* @brief Get the result of the last UART service init.
36
* @return K_SPP_OK if the UART port was initialised, error code otherwise.
37
*/
38
SPP_RetVal_t
SPP_SERVICES_UART_getInitStatus
(
void
);
39
40
#endif
/* SPP_SERVICES_UART_H */
returnTypes.h
Standard return-value type used across all SPP modules.
SPP_RetVal_t
SPP_RetVal_t
Unified return type for all SPP API functions.
Definition
returnTypes.h:24
service.h
SPP module descriptor and registry API.
SPP_SERVICES_UART_getConsumerContract
const SPP_SERVICE_ConsumerContract_t * SPP_SERVICES_UART_getConsumerContract(void)
Get the UART consumer contract.
Definition
uart.c:46
SPP_SERVICES_UART_getInitStatus
SPP_RetVal_t SPP_SERVICES_UART_getInitStatus(void)
Get the result of the last UART service init.
Definition
uart.c:51
SPP_SERVICE_ConsumerContract_t
Describes the contract of a consumer module. This module needs to have:
Definition
service.h:40
solaris-v2
spp
services
uart
uart.h
Generated by
1.18.0