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
13
extern
"C"
{
14
#endif
15
27
struct
ipc_service_cb
{
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
55
struct
ipc_ept;
56
58
struct
ipc_ept_cfg
{
59
61
const
char
*
name
;
62
64
int
prio
;
65
67
struct
ipc_service_cb
cb
;
68
70
void
*
priv
;
71
};
72
86
int
ipc_service_register_endpoint
(
struct
ipc_ept **ept,
const
struct
ipc_ept_cfg
*cfg);
87
97
int
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
void
Definition:
eswifi_shell.c:15
ipc_service_register_endpoint
int ipc_service_register_endpoint(struct ipc_ept **ept, const struct ipc_ept_cfg *cfg)
Register IPC endpoint.
ipc_service_send
int ipc_service_send(struct ipc_ept *ept, const void *data, size_t len)
Send data using given IPC endpoint.
stdio.h
ipc_ept_cfg
Endpoint configuration structure.
Definition:
ipc_service.h:58
ipc_ept_cfg::cb
struct ipc_service_cb cb
Definition:
ipc_service.h:67
ipc_ept_cfg::priv
void * priv
Definition:
ipc_service.h:70
ipc_ept_cfg::name
const char * name
Definition:
ipc_service.h:61
ipc_ept_cfg::prio
int prio
Definition:
ipc_service.h:64
ipc_service_cb
Event callback structure.
Definition:
ipc_service.h:27
ipc_service_cb::bound
void(* bound)(void *priv)
Bind was successful.
Definition:
ipc_service.h:32
ipc_service_cb::received
void(* received)(const void *data, size_t len, void *priv)
New packet arrived.
Definition:
ipc_service.h:40
ipc_service_cb::error
void(* error)(const char *message, void *priv)
An error occurred.
Definition:
ipc_service.h:47
data
static fdata_t data[2]
Definition:
test_fifo_contexts.c:15
include
ipc
ipc_service.h
Generated on Sun Oct 9 2022 09:21:56 for Zephyr API Documentation by
1.9.4