33 #ifndef _RPMSG_QUEUE_H 34 #define _RPMSG_QUEUE_H 36 #include "rpmsg_lite.h" 47 #if defined(RL_API_HAS_ZEROCOPY) && (RL_API_HAS_ZEROCOPY == 1) 55 #if defined(__cplusplus) 70 int rpmsg_queue_rx_cb(
void *payload,
int payload_len,
unsigned long src,
void *priv);
127 unsigned long timeout);
159 unsigned long timeout);
188 #if defined(__cplusplus) int rpmsg_queue_destroy(struct rpmsg_lite_instance *rpmsg_lite_dev, rpmsg_queue_handle q)
Destroy a queue and clean up. Do not destroy a queue which is registered with an active endpoint! ...
int rpmsg_queue_recv(struct rpmsg_lite_instance *rpmsg_lite_dev, rpmsg_queue_handle q, unsigned long *src, char *data, int maxlen, int *len, unsigned long timeout)
blocking receive function - blocking version of the received function that can be called from an RTOS...
Definition: rpmsg_lite.h:124
int rpmsg_queue_nocopy_free(struct rpmsg_lite_instance *rpmsg_lite_dev, void *data)
This function frees a buffer previously returned by rpmsg_queue_recv_nocopy().
rpmsg_queue_handle rpmsg_queue_create(struct rpmsg_lite_instance *rpmsg_lite_dev)
Create a RPMsg queue which can be used for blocking reception.
int rpmsg_queue_recv_nocopy(struct rpmsg_lite_instance *rpmsg_lite_dev, rpmsg_queue_handle q, unsigned long *src, char **data, int *len, unsigned long timeout)
blocking receive function - blocking version of the received function that can be called from an RTOS...
int rpmsg_queue_get_current_size(rpmsg_queue_handle q)
This function returns the number of pending messages in the queue.
int rpmsg_queue_rx_cb(void *payload, int payload_len, unsigned long src, void *priv)
This callback needs to be registered with an endpoint.
void * rpmsg_queue_handle
Rpmsg queue handle type.
Definition: rpmsg_queue.h:44