Zephyr API Documentation  2.7.0-rc2
A Scalable Open Source RTOS
ipc_service.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_H_
8#define ZEPHYR_INCLUDE_IPC_SERVICE_IPC_SERVICE_H_
9
10#include <stdio.h>
11
12#ifdef __cplusplus
13extern "C" {
14#endif
15
32 void (*bound)(void *priv);
33
40 void (*received)(const void *data, size_t len, void *priv);
41
47 void (*error)(const char *message, void *priv);
48};
49
55struct ipc_ept;
56
59
61 const char *name;
62
64 int prio;
65
68
70 void *priv;
71};
72
86int ipc_service_register_endpoint(struct ipc_ept **ept, const struct ipc_ept_cfg *cfg);
87
97int ipc_service_send(struct ipc_ept *ept, const void *data, size_t len);
98
103#ifdef __cplusplus
104}
105#endif
106
107#endif /* ZEPHYR_INCLUDE_IPC_SERVICE_IPC_SERVICE_H_ */
void
Definition: eswifi_shell.c:15
int ipc_service_register_endpoint(struct ipc_ept **ept, const struct ipc_ept_cfg *cfg)
Register IPC endpoint.
int ipc_service_send(struct ipc_ept *ept, const void *data, size_t len)
Send data using given IPC endpoint.
Endpoint configuration structure.
Definition: ipc_service.h:58
struct ipc_service_cb cb
Definition: ipc_service.h:67
void * priv
Definition: ipc_service.h:70
const char * name
Definition: ipc_service.h:61
int prio
Definition: ipc_service.h:64
Event callback structure.
Definition: ipc_service.h:27
void(* bound)(void *priv)
Bind was successful.
Definition: ipc_service.h:32
void(* received)(const void *data, size_t len, void *priv)
New packet arrived.
Definition: ipc_service.h:40
void(* error)(const char *message, void *priv)
An error occurred.
Definition: ipc_service.h:47
static fdata_t data[2]
Definition: test_fifo_contexts.c:15