Zephyr API Documentation  2.7.0-rc2
A Scalable Open Source RTOS
ipc_service_backend.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2021 Nordic Semiconductor ASA
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
7#ifndef ZEPHYR_INCLUDE_IPC_SERVICE_IPC_SERVICE_BACKEND_H_
8#define ZEPHYR_INCLUDE_IPC_SERVICE_IPC_SERVICE_BACKEND_H_
9
10#include <ipc/ipc_service.h>
11#include <stdio.h>
12
13#ifdef __cplusplus
14extern "C" {
15#endif
16
29 const char *name;
30
39 int (*send)(struct ipc_ept *ept, const void *data, size_t len);
40
48 int (*register_endpoint)(struct ipc_ept **ept, const struct ipc_ept_cfg *cfg);
49};
50
63
68#ifdef __cplusplus
69}
70#endif
71
72#endif /* ZEPHYR_INCLUDE_IPC_SERVICE_IPC_SERVICE_BACKEND_H_ */
int ipc_service_register_backend(const struct ipc_service_backend *backend)
IPC backend registration.
Endpoint configuration structure.
Definition: ipc_service.h:58
IPC Service backend.
Definition: ipc_service_backend.h:27
int(* register_endpoint)(struct ipc_ept **ept, const struct ipc_ept_cfg *cfg)
Pointer to the function that will be used to register endpoints.
Definition: ipc_service_backend.h:48
int(* send)(struct ipc_ept *ept, const void *data, size_t len)
Pointer to the function that will be used to send data to the endpoint.
Definition: ipc_service_backend.h:39
const char * name
Name of the IPC backend.
Definition: ipc_service_backend.h:29
static fdata_t data[2]
Definition: test_fifo_contexts.c:15