eRPC API Reference  Rev. 1.7.2
NXP Semiconductors
erpc_arbitrated_client_setup.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2016, Freescale Semiconductor, Inc.
3  * Copyright 2016-2017 NXP
4  * All rights reserved.
5  *
6  *
7  * SPDX-License-Identifier: BSD-3-Clause
8  */
9 
10 #ifndef _ERPC_ARBITRATED_CLIENT_SETUP_H_
11 #define _ERPC_ARBITRATED_CLIENT_SETUP_H_
12 
13 #include "erpc_common.h"
14 #include "erpc_config_internal.h"
15 #include "erpc_mbf_setup.h"
16 #if ERPC_NESTED_CALLS
17 #include "erpc_server_setup.h"
18 #endif
19 #include "erpc_client_manager.h"
20 #include "erpc_transport_setup.h"
21 
28 // API
31 
32 #ifdef __cplusplus
33 extern "C" {
34 #endif
35 
36 #include <stdint.h>
37 
39 
40 
60 
69 
79 void erpc_arbitrated_client_set_crc(uint32_t crcStart);
80 
81 #if ERPC_NESTED_CALLS
82 
87 void erpc_arbitrated_client_set_server(erpc_server_t server);
88 
94 void erpc_arbitrated_client_set_server_thread_id(void *serverThreadId);
95 #endif
96 
97 #if ERPC_MESSAGE_LOGGING
98 
106 bool erpc_arbitrated_client_add_message_logger(erpc_transport_t transport);
107 #endif
108 
115 
117 
118 #ifdef __cplusplus
119 }
120 #endif
121 
124 #endif // _ERPC_ARBITRATED_CLIENT_SETUP_H_
void erpc_arbitrated_client_deinit(void)
This function de-initializes client.
Definition: erpc_arbitrated_client_setup.cpp:110
struct ErpcTransport * erpc_transport_t
Opaque transport object type.
Definition: erpc_transport_setup.h:24
struct ErpcMessageBufferFactory * erpc_mbf_t
Opaque MessageBufferFactory object type.
Definition: erpc_mbf_setup.h:26
void erpc_arbitrated_client_set_error_handler(client_error_handler_t error_handler)
This function sets error handler function.
Definition: erpc_arbitrated_client_setup.cpp:68
void erpc_arbitrated_client_set_crc(uint32_t crcStart)
Can be used to set own crcStart number.
Definition: erpc_arbitrated_client_setup.cpp:76
void(* client_error_handler_t)(erpc_status_t err, uint32_t functionID)
Definition: erpc_client_manager.h:33
erpc_transport_t erpc_arbitrated_client_init(erpc_transport_t transport, erpc_mbf_t message_buffer_factory)
Initializes a client that shares its transport with the server.
Definition: erpc_arbitrated_client_setup.cpp:40
struct ServerType * erpc_server_t
Opaque server object type.
Definition: erpc_server_setup.h:36