Zephyr API Documentation  2.7.0-rc2
A Scalable Open Source RTOS
rpmsg_service.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2020 Nordic Semiconductor ASA
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
7#ifndef ZEPHYR_INCLUDE_RPMSG_SERVICE_RPMSG_SERVICE_H_
8#define ZEPHYR_INCLUDE_RPMSG_SERVICE_RPMSG_SERVICE_H_
9
10#include <openamp/open_amp.h>
11
12#ifdef __cplusplus
13extern "C" {
14#endif
15
40int rpmsg_service_register_endpoint(const char *name, rpmsg_ept_cb cb);
41
53int rpmsg_service_send(int endpoint_id, const void *data, size_t len);
54
67bool rpmsg_service_endpoint_is_bound(int endpoint_id);
68
74#ifdef __cplusplus
75}
76#endif
77
78#endif /* ZEPHYR_INCLUDE_RPMSG_SERVICE_RPMSG_SERVICE_H_ */
int rpmsg_service_register_endpoint(const char *name, rpmsg_ept_cb cb)
Register IPC endpoint.
int rpmsg_service_send(int endpoint_id, const void *data, size_t len)
Send data using given IPC endpoint.
bool rpmsg_service_endpoint_is_bound(int endpoint_id)
Check if endpoint is bound.
static fdata_t data[2]
Definition: test_fifo_contexts.c:15