nRF Connect SDK API 3.3.99
Loading...
Searching...
No Matches
nrf_rpc_uart.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2024 Nordic Semiconductor ASA
3 *
4 * SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5 */
6
7#ifndef NRF_RPC_UART_H_
8#define NRF_RPC_UART_H_
9
10#include <nrf_rpc.h>
11#include <nrf_rpc_tr.h>
12#include <zephyr/kernel.h>
13#include <zephyr/device.h>
14#include <zephyr/sys/ring_buffer.h>
15
16#ifdef __cplusplus
17extern "C" {
18#endif
19
32#define NRF_RPC_UART_TRANSPORT(node_id) _CONCAT(nrf_rpc_tr_, DT_DEP_ORD(node_id))
33
45extern void nrf_rpc_uart_initialized_hook(const struct device *uart_dev);
46
51#define _NRF_RPC_UART_TRANSPORT_DECLARE(node_id) \
52 extern const struct nrf_rpc_tr NRF_RPC_UART_TRANSPORT(node_id);
53
54DT_FOREACH_STATUS_OKAY(nordic_nrf_uarte, _NRF_RPC_UART_TRANSPORT_DECLARE);
55
56#ifdef __cplusplus
57}
58#endif
59
60#endif /* NRF_RPC_UART_H_ */
void nrf_rpc_uart_initialized_hook(const struct device *uart_dev)
Notifies that nRF RPC UART transport is ready to receive packets.
DT_FOREACH_STATUS_OKAY(nordic_nrf_uarte, _NRF_RPC_UART_TRANSPORT_DECLARE)