1# Copyright (c) 2025 Titouan Christophe
2# SPDX-License-Identifier: Apache-2.0
3
4config NETMIDI2_HOST
5	bool "Network MIDI2 (UDP) host [EXPERIMENTAL]"
6	select EXPERIMENTAL
7	select NET_UDP
8	select NET_SOCKETS
9	select NET_SOCKETS_SERVICE
10	depends on NET_IPV4 || NET_IPV6
11	imply NET_IPV4_MAPPING_TO_IPV6 if NET_IPV4 && NET_IPV6
12	help
13	  Host library of User Datagram Protocol for Universal MIDI Packets.
14	  Provides the following features:
15	  - Exposing an UMP endpoint over UDP
16	  - Accepting inbound client invitations
17	  - Sending/Receiving Universal MIDI packets
18	  Following "Network MIDI 2.0 (UDP) Transport Specification" v1.0
19
20if NETMIDI2_HOST
21config NETMIDI2_HOST_MAX_CLIENTS
22	int "Maximum number of clients supported by the Network MIDI2 host"
23	default 5
24
25config NETMIDI2_HOST_AUTH
26	bool "Support for authentication (shared key or user/password)"
27	select CRYPTO
28	select CRYPTO_MBEDTLS_SHIM
29
30module=NET_MIDI2
31module-dep=NET_LOG
32module-str=Log level for network MIDI2
33module-help=Enables midi2 debug messages.
34source "subsys/net/Kconfig.template.log_config.net"
35endif
36