Zephyr API Documentation 4.3.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
smp_udp.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2019, Prevas A/S
3 * Copyright (c) 2023 Nordic Semiconductor ASA
4 *
5 * SPDX-License-Identifier: Apache-2.0
6 */
7
13
14#ifndef ZEPHYR_INCLUDE_MGMT_SMP_UDP_H_
15#define ZEPHYR_INCLUDE_MGMT_SMP_UDP_H_
16
18#include <zephyr/net/net_ip.h>
19
26
27#ifdef __cplusplus
28extern "C" {
29#endif
30
40int smp_udp_open(void);
41
50int smp_udp_close(void);
51
52#if defined(CONFIG_SMP_CLIENT) || defined(__DOXYGEN__)
61int smp_client_udp_set_host_addr(struct smp_client_object *obj, struct sockaddr *addr);
62#endif
63
64#ifdef __cplusplus
65}
66#endif
67
71
72#endif
int smp_client_udp_set_host_addr(struct smp_client_object *obj, struct sockaddr *addr)
Set host address for smp_client_object.
int smp_udp_open(void)
Enables the UDP SMP MCUmgr transport thread(s) which will open a socket and listen to requests.
int smp_udp_close(void)
Disables the UDP SMP MCUmgr transport thread(s) which will close open sockets.
IPv6 and IPv4 definitions.
SMP client object.
Definition smp_client.h:26