| eRPC API Reference Rev. 1.8.1 NXP Semiconductors

- Main Page
- API Reference
- Classes
- Files

- File List
- File Members

erpc_common.h
1 /*
2 * Copyright (c) 2015-2016, Freescale Semiconductor, Inc.
3 * Copyright 2016-2017 NXP
4 * Copyright 2021 ACRIOS Systems s.r.o.
5 * All rights reserved.
6 *
7 *
8 * SPDX-License-Identifier: BSD-3-Clause
9 */
10
11 #ifndef _EMBEDDED_RPC__ERPC_COMMON_H_
12 #define _EMBEDDED_RPC__ERPC_COMMON_H_
13
14 #include <stdint.h>
15
21 // Definitions
24
26 enum _erpc_status
27 {
29 kErpcStatus_Success = 0,
30
32 kErpcStatus_Fail = 1,
33
35 kErpcStatus_InvalidArgument = 4,
36
38 kErpcStatus_Timeout = 5,
39
41 kErpcStatus_InvalidMessageVersion = 6,
42
44 kErpcStatus_ExpectedReply,
45
47 kErpcStatus_CrcCheckFailed,
48
50 kErpcStatus_BufferOverrun,
51
53 kErpcStatus_UnknownName,
54
56 kErpcStatus_ConnectionFailure,
57
59 kErpcStatus_ConnectionClosed,
60
62 kErpcStatus_MemoryError,
63
65 kErpcStatus_ServerIsDown,
66
68 kErpcStatus_InitFailed,
69
71 kErpcStatus_ReceiveFailed,
72
74 kErpcStatus_SendFailed,
75
77 kErpcStatus_UnknownCallback,
78
80 kErpcStatus_NestedCallFailure,
81
83 kErpcStatus_BadAddressScale
84 };
85
87 typedef enum _erpc_status erpc_status_t;
88
91 #endif /* _EMBEDDED_RPC__ERPC_COMMON_H_ */
kErpcStatus_SendFailed
Failed to send data.
Definition: erpc_common.h:74
kErpcStatus_ReceiveFailed
Failed to receive data.
Definition: erpc_common.h:71
kErpcStatus_Success
No error occurred.
Definition: erpc_common.h:29
erpc_status_t
enum _erpc_status erpc_status_t
Type used for all status and error return values.
Definition: erpc_common.h:87
kErpcStatus_UnknownName
Could not find host with given name.
Definition: erpc_common.h:53
kErpcStatus_Timeout
Operated timed out.
Definition: erpc_common.h:38
kErpcStatus_ServerIsDown
Server is stopped.
Definition: erpc_common.h:65
kErpcStatus_InitFailed
Transport layer initialization failed.
Definition: erpc_common.h:68
_erpc_status
_erpc_status
eRPC status return codes.
Definition: erpc_common.h:26
kErpcStatus_CrcCheckFailed
Message is corrupted.
Definition: erpc_common.h:47
kErpcStatus_MemoryError
Memory allocation error.
Definition: erpc_common.h:62
kErpcStatus_BadAddressScale
When sending address from bigger architecture to smaller.
Definition: erpc_common.h:83
kErpcStatus_ConnectionClosed
Connected closed by peer.
Definition: erpc_common.h:59
kErpcStatus_UnknownCallback
Sending/Receiving callback function which is not defined in IDL.
Definition: erpc_common.h:77
kErpcStatus_InvalidArgument
Argument is an invalid value.
Definition: erpc_common.h:35
kErpcStatus_InvalidMessageVersion
Message header contains an unknown version.
Definition: erpc_common.h:41
kErpcStatus_BufferOverrun
Attempt to read or write past the end of a buffer.
Definition: erpc_common.h:50
kErpcStatus_ConnectionFailure
Failed to connect to host.
Definition: erpc_common.h:56
kErpcStatus_Fail
Generic failure.
Definition: erpc_common.h:32
kErpcStatus_NestedCallFailure
Calling eRPC function from another eRPC function. For more information see erpc_common.h.
Definition: erpc_common.h:80
kErpcStatus_ExpectedReply
Expected a reply message but got another message type.
Definition: erpc_common.h:44