nRF Connect SDK API 3.4.99
Loading...
Searching...
No Matches
dect_net_l2_rpc.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2026 Nordic Semiconductor ASA
3 *
4 * SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5 */
6
11
12#ifndef DECT_NET_L2_RPC_H_
13#define DECT_NET_L2_RPC_H_
14
15#include <zephyr/net/net_if.h>
16#include <zephyr/net/net_pkt.h>
17
18#ifdef __cplusplus
19extern "C" {
20#endif
21
22#if defined(CONFIG_DECT_NR_RPC_SERVER) || defined(__DOXYGEN__)
23
29
39typedef void (*dect_net_l2_rpc_forward_cb_t)(struct net_if *iface, struct net_pkt *pkt);
40
47
53typedef void (*dect_net_l2_link_state_cb_t)(struct net_if *iface);
54
61
68
70
71#endif /* CONFIG_DECT_NR_RPC_SERVER || __DOXYGEN__ */
72
73#ifdef __cplusplus
74}
75#endif
76
77#endif /* DECT_NET_L2_RPC_H_ */
void dect_net_l2_rpc_client_set_connected(bool connected)
Enable or disable RPC forwarding of received IPv6 in dect_net_l2_recv().
void dect_net_l2_rpc_forward_register(dect_net_l2_rpc_forward_cb_t cb)
Register the RPC forward callback.
void dect_net_l2_link_state_register(dect_net_l2_link_state_cb_t cb)
Register the link-state callback.
void(* dect_net_l2_link_state_cb_t)(struct net_if *iface)
Notify that DECT iface link state may have changed.
Definition dect_net_l2_rpc.h:53
void(* dect_net_l2_rpc_forward_cb_t)(struct net_if *iface, struct net_pkt *pkt)
Handle an IPv6 packet received on the DECT iface for RPC forwarding.
Definition dect_net_l2_rpc.h:39