13#ifndef ZEPHYR_INCLUDE_DRIVERS_IPM_H_
14#define ZEPHYR_INCLUDE_DRIVERS_IPM_H_
55 const void *
data,
int size);
134 const void *
data,
int size);
136static inline int z_impl_ipm_send(
const struct device *ipmdev,
int wait,
138 const void *
data,
int size)
143 return api->
send(ipmdev, wait,
id,
data, size);
175static inline int z_impl_ipm_max_data_size_get(
const struct device *ipmdev)
196static inline uint32_t z_impl_ipm_max_id_val_get(
const struct device *ipmdev)
215static inline int z_impl_ipm_set_enabled(
const struct device *ipmdev,
232#include <syscalls/ipm.h>
void
Definition: eswifi_shell.c:15
int ipm_max_data_size_get(const struct device *ipmdev)
Return the maximum number of bytes possible in an outbound message.
uint32_t ipm_max_id_val_get(const struct device *ipmdev)
Return the maximum id value possible in an outbound message.
void(* ipm_register_callback_t)(const struct device *port, ipm_callback_t cb, void *user_data)
Callback API upon registration.
Definition: ipm.h:78
int(* ipm_set_enabled_t)(const struct device *ipmdev, int enable)
Callback API upon enablement of interrupts.
Definition: ipm.h:88
static void ipm_register_callback(const struct device *ipmdev, ipm_callback_t cb, void *user_data)
Register a callback function for incoming messages.
Definition: ipm.h:154
int ipm_set_enabled(const struct device *ipmdev, int enable)
Enable interrupts and callbacks for inbound channels.
int(* ipm_max_data_size_get_t)(const struct device *ipmdev)
Callback API to get maximum data size.
Definition: ipm.h:62
int(* ipm_send_t)(const struct device *ipmdev, int wait, uint32_t id, const void *data, int size)
Callback API to send IPM messages.
Definition: ipm.h:54
int ipm_send(const struct device *ipmdev, int wait, uint32_t id, const void *data, int size)
Try to send a message over the IPM device.
uint32_t(* ipm_max_id_val_get_t)(const struct device *ipmdev)
Callback API to get the ID's maximum value.
Definition: ipm.h:70
void(* ipm_callback_t)(const struct device *ipmdev, void *user_data, uint32_t id, volatile void *data)
Callback API for incoming IPM messages.
Definition: ipm.h:45
__UINT32_TYPE__ uint32_t
Definition: stdint.h:60
Runtime device structure (in ROM) per driver instance.
Definition: device.h:367
const void * api
Definition: device.h:373
ipm_register_callback_t register_callback
Definition: ipm.h:92
ipm_max_data_size_get_t max_data_size_get
Definition: ipm.h:93
ipm_max_id_val_get_t max_id_val_get
Definition: ipm.h:94
ipm_set_enabled_t set_enabled
Definition: ipm.h:95
ipm_send_t send
Definition: ipm.h:91
static fdata_t data[2]
Definition: test_fifo_contexts.c:15
static const intptr_t user_data[5]
Definition: main.c:590