eRPC API Reference  Rev. 1.7.0
NXP Semiconductors
erpc_common.h
1 /*
2  * The Clear BSD License
3  * Copyright (c) 2015-2016, Freescale Semiconductor, Inc.
4  * Copyright 2016-2017 NXP
5  * All rights reserved.
6  *
7  *
8  * Redistribution and use in source and binary forms, with or without modification,
9  * are permitted (subject to the limitations in the disclaimer below) provided
10  * that the following conditions are met:
11  *
12  * o Redistributions of source code must retain the above copyright notice, this list
13  * of conditions and the following disclaimer.
14  *
15  * o Redistributions in binary form must reproduce the above copyright notice, this
16  * list of conditions and the following disclaimer in the documentation and/or
17  * other materials provided with the distribution.
18  *
19  * o Neither the name of the copyright holder nor the names of its
20  * contributors may be used to endorse or promote products derived from this
21  * software without specific prior written permission.
22  *
23  * NO EXPRESS OR IMPLIED LICENSES TO ANY PARTY'S PATENT RIGHTS ARE GRANTED BY THIS LICENSE.
24  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
25  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
26  * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
27  * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
28  * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
29  * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
30  * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
31  * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
32  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
33  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
34  */
35 
36 #ifndef _EMBEDDED_RPC__ERPC_COMMON_H_
37 #define _EMBEDDED_RPC__ERPC_COMMON_H_
38 
39 #include <stdint.h>
40 
46 // Definitions
49 
52 {
55 
58 
61 
64 
67 
70 
73 
76 
79 
82 
85 
88 
91 
94 
97 
100 
103 
106 
109 };
110 
112 typedef int32_t erpc_status_t;
113 
116 #endif /* _EMBEDDED_RPC__ERPC_COMMON_H_ */
int32_t erpc_status_t
Type used for all status and error return values.
Definition: erpc_common.h:112
Failed to send data.
Definition: erpc_common.h:99
Failed to receive data.
Definition: erpc_common.h:96
No error occurred.
Definition: erpc_common.h:54
Could not find host with given name.
Definition: erpc_common.h:78
Operated timed out.
Definition: erpc_common.h:63
Server is stopped.
Definition: erpc_common.h:90
Transport layer initialization failed.
Definition: erpc_common.h:93
_erpc_status
eRPC status return codes.
Definition: erpc_common.h:51
Message is corrupted.
Definition: erpc_common.h:72
Memory allocation error.
Definition: erpc_common.h:87
When sending address from bigger architecture to smaller.
Definition: erpc_common.h:108
Connected closed by peer.
Definition: erpc_common.h:84
Sending/Receiving callback function which is not defined in IDL.
Definition: erpc_common.h:102
Argument is an invalid value.
Definition: erpc_common.h:60
Message header contains an unknown version.
Definition: erpc_common.h:66
Attempt to read or write past the end of a buffer.
Definition: erpc_common.h:75
Failed to connect to host.
Definition: erpc_common.h:81
Generic failure.
Definition: erpc_common.h:57
Calling eRPC function from another eRPC function. For more information see erpc_common.h.
Definition: erpc_common.h:105
Expected a reply message but got another message type.
Definition: erpc_common.h:69