IPC_SERVICE
Typedefs
-
typedef int (*ipc_cb_t)(uint16_t msg_id, void *data, uint32_t data_len)
Functions
-
ipc_ds_handle_t *ipc_server_register(const char *ds_name, void *filter_cb, void *est_cb, void *sleep_cb, void *comm_cb)
The server registration of data service.
- 参数:
ds_name -- The name of data servie
filter_cb -- The server's filter callback funtion of data service
est_cb -- The server's establish callback funtion of data service
sleep_cb -- The server's sleep callback funtion of data service
comm_cb -- The server's common callback funtion of data service
- 返回值:
server_handle -- The server's handle of data service
-
void ipc_send_msg_to_client(ipc_ds_handle_t *ds, uint16_t type, void *data, uint32_t size)
Send message from ds server to ds client, it will use the function which provided by data_service.h @ds The server's handle of data service.
- 参数:
filter_cb -- The server's filter callback funtion of data service
type -- The IPC interface type, ds_type_t and the definition based on this enumeration value
data -- The Pointer of data content
size -- The length of data content
-
void ipc_client_register(ipc_ds_handle_t **dst_ds, ipc_ds_handle_t *src_ds, const char *ds_name, void *filter_cb, void *est_cb, void *comm_cb)
The client registration of data service.
- 参数:
dst_ds -- The client's handle of data service, which return from ipc_client_register.
src_ds -- The client's handle of data service. used for one core case, such as 52x. Other cases, it will be set to NULL.
ds_name -- The name of data servie.
filter_cb -- The client's filter callback funtion of data service
est_cb -- The client's establish callback funtion of data service
comm_cb -- The client's common callback funtion of data service
-
void ipc_client_close(ipc_ds_handle_t *ds)
Close a client of data service. @ds The client's handle of data service.
-
void ipc_send_msg_to_server(ipc_ds_handle_t *ds, uint16_t type, void *data, uint32_t data_len)
Send message from ds client to ds server, it will use the function which provided by data_service.h @ds The client's handle of data service.
- 参数:
filter_cb -- The client's filter callback funtion of data service
type -- The IPC interface type, ds_type_t and the definition based on this enumeration value
data -- The Pointer of data content
size -- The length of data content
-
struct ipc_ds_handle_t
- #include <ipc_service.h>
The handle of data service. it will store relative of server or / and client.
Public Members
-
const char *ds_name
The name of data servie
-
uint8_t server_ready
The server of data service is ready?
-
uint8_t client_ready
The client of data service is ready?
-
datas_handle_t server_handle
The server's handle of data service
-
datac_handle_t client_handle
The client's handle of data service
-
const char *ds_name