#
# Copyright (c) 2022 Nordic Semiconductor ASA
#
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
#

config DM_MODULE_RPC
	bool "Distance Measurement over RPC [EXPERIMENTAL]"
	select NRF_RPC
	select NRF_RPC_CBOR
	select EXPERIMENTAL
	depends on DM_MODULE
	help
	  Enables Distance Measurement serialization over RPC.

if DM_MODULE_RPC

choice DM_MODULE_RPC_ROLE_CHOICE
	prompt "Distance Measurement over RPC role selection"
	default DM_MODULE_RPC_CLIENT
	help
	  Select the device role for Distance Measurement over RPC.

config DM_MODULE_RPC_HOST
	bool "Distance Measurement over RPC Host"
	help
	  The Distance Measurement API uses the nRF RPC library to provide API for the client.
	  It is supposed to run on the same core as the Nordic Distance Measurement library.

config DM_MODULE_RPC_CLIENT
	bool "Distance Measurement over RPC Client"
	help
	  The Distance Measurement API uses the nRF RPC library to access host on a remote core.
	  It is supposed to run on the application core.

endchoice

config DM_MODULE_RPC_INITIALIZE_NRF_RPC
	bool "Automatically initialize nRF RPC library"
	default y
	help
	  Initialize nRF RPC library during the system startup. Disabling this
	  option allow user to initialize it in a different way.

config DM_MODULE_RPC_IPC_SERVICE_INIT_PRIORITY
	int "Initialization priority of IPC Service"
	default 90
	help
	  Initialization priority for the IPC Service and endpoint register.

endif #DM_MODULE_RPC
