Zephyr API 3.6.99
Loading...
Searching...
No Matches
ipc_service_cb Struct Reference

Event callback structure. More...

#include <ipc_service.h>

Data Fields

void(* bound )(void *priv)
 Bind was successful.
 
void(* received )(const void *data, size_t len, void *priv)
 New packet arrived.
 
void(* error )(const char *message, void *priv)
 An error occurred.
 

Detailed Description

Event callback structure.

It is registered during endpoint registration. This structure is part of the endpoint configuration.

Field Documentation

◆ bound

void(* ipc_service_cb::bound) (void *priv)

Bind was successful.

This callback is called when the endpoint binding is successful.

Parameters
[in]privPrivate user data.

◆ error

void(* ipc_service_cb::error) (const char *message, void *priv)

An error occurred.

Parameters
[in]messageError message.
[in]privPrivate user data.

◆ received

void(* ipc_service_cb::received) (const void *data, size_t len, void *priv)

New packet arrived.

This callback is called when new data is received.

Note
When ipc_service_hold_rx_buffer is not used, the data buffer is to be considered released and available again only when this callback returns.
Parameters
[in]dataPointer to data buffer.
[in]lenLength of data.
[in]privPrivate user data.

The documentation for this struct was generated from the following file: