1 /* 2 * Copyright (c) 2024 Nordic Semiconductor ASA 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 */ 6 7 #ifndef NRFS_BACKEND_H 8 #define NRFS_BACKEND_H 9 10 #include <nrfs_common.h> 11 12 #ifdef __cplusplus 13 extern "C" { 14 #endif 15 16 /** 17 * @brief Function for sending a message over the chosen transport backend. 18 * 19 * This function is used by services to send requests to the System Controller. 20 * 21 * @param[in] message Pointer to the message payload. 22 * @param[in] size Message payload size. 23 * 24 * @retval NRFS_SUCCESS Message sent successfully. 25 * @retval NRFS_ERR_IPC Backend returned error during message sending. 26 */ 27 nrfs_err_t nrfs_backend_send(void *message, size_t size); 28 29 #ifdef __cplusplus 30 } 31 #endif 32 33 #endif /* NRFS_BACKEND_H */ 34