DriveWorks SDK Reference
3.5.78 Release
For Test and Development only

Status.h
Go to the documentation of this file.
1 // This code contains NVIDIA Confidential Information and is disclosed
3 // under the Mutual Non-Disclosure Agreement.
4 //
5 // Notice
6 // ALL NVIDIA DESIGN SPECIFICATIONS AND CODE ("MATERIALS") ARE PROVIDED "AS IS" NVIDIA MAKES
7 // NO REPRESENTATIONS, WARRANTIES, EXPRESSED, IMPLIED, STATUTORY, OR OTHERWISE WITH RESPECT TO
8 // THE MATERIALS, AND EXPRESSLY DISCLAIMS ANY IMPLIED WARRANTIES OF NONINFRINGEMENT,
9 // MERCHANTABILITY, OR FITNESS FOR A PARTICULAR PURPOSE.
10 //
11 // NVIDIA Corporation assumes no responsibility for the consequences of use of such
12 // information or for any infringement of patents or other rights of third parties that may
13 // result from its use. No license is granted by implication or otherwise under any patent
14 // or patent rights of NVIDIA Corporation. No third party distribution is allowed unless
15 // expressly authorized by NVIDIA. Details are subject to change without notice.
16 // This code supersedes and replaces all information previously supplied.
17 // NVIDIA Corporation products are not authorized for use as critical
18 // components in life support devices or systems without express written approval of
19 // NVIDIA Corporation.
20 //
21 // Copyright (c) 2016-2019 NVIDIA Corporation. All rights reserved.
22 //
23 // NVIDIA Corporation and its licensors retain all intellectual property and proprietary
24 // rights in and to this software and related documentation and any modifications thereto.
25 // Any use, reproduction, disclosure or distribution of this software and related
26 // documentation without an express license agreement from NVIDIA Corporation is
27 // strictly prohibited.
28 //
30 
48 #ifndef DW_CORE_STATUS_H_
49 #define DW_CORE_STATUS_H_
50 
51 #include <dw/core/Exports.h>
52 
53 #ifdef __cplusplus
54 extern "C" {
55 #endif
56 
57 #define __GENERATE_ENUM(e) e,
58 // clang-format off
59 #define __DW_ERROR_LIST(s) \
60  s(DW_SUCCESS) \
61  s(DW_INVALID_VERSION) \
62  s(DW_INVALID_ARGUMENT) \
64  s(DW_BAD_ALLOC) \
65  s(DW_BAD_ALIGNMENT) \
66  s(DW_BAD_CAST) \
67  s(DW_NOT_IMPLEMENTED) \
68  s(DW_END_OF_STREAM) \
69  \
70  s(DW_INVALID_HANDLE) \
71  \
72  s(DW_CALL_NOT_ALLOWED) \
73  s(DW_NOT_AVAILABLE) \
74  s(DW_NOT_RELEASED) \
75  s(DW_NOT_SUPPORTED) \
76  s(DW_NOT_INITIALIZED) \
77  s(DW_INTERNAL_ERROR) \
78  s(DW_FILE_NOT_FOUND) \
79  s(DW_FILE_INVALID) \
80  s(DW_CANNOT_CREATE_OBJECT) \
81  s(DW_BUFFER_FULL) \
82  s(DW_NOT_READY) \
83  \
84  s(DW_TIME_OUT) \
85  s(DW_BUSY_WAITING) \
86  \
87  s(DW_LOG_CANNOT_WRITE) \
88  s(DW_LOG_CANNOT_FLUSH) \
89  \
90  s(DW_SAL_CANNOT_INITIALIZE) \
92  s(DW_SAL_CANNOT_CREATE_SENSOR) \
94  s(DW_SAL_NO_DRIVER_FOUND) \
95  s(DW_SAL_SENSOR_UNSUPPORTED) \
96  s(DW_SAL_SENSOR_ERROR) \
97  \
98  s(DW_CUDA_ERROR) \
99  s(DW_GL_ERROR) \
100  s(DW_NVMEDIA_ERROR) \
101  \
102  s(DW_DNN_INVALID_MODEL) \
103  \
104  s(DW_FAILURE) \
105  s(DW_DNN_INVALID_TYPE) \
106  \
107  s(DW_HAL_CANNOT_OPEN_CHANNEL) \
108  \
109  s(DW_OUT_OF_BOUNDS) \
110  \
111  s(DW_UNEXPECTED_IPC_EVENT) \
112  \
113  s(DW_UNEXPECTED_EVENT) \
114  \
115  s(DW_NUM_ERROR_CODES)
117 // clang-format on
118 
122 typedef enum dwStatus {
124 } dwStatus;
125 
130 DW_API_PUBLIC const char* dwGetStatusName(dwStatus s);
131 
132 #ifdef __cplusplus
133 }
134 #endif
135 
136 #endif // DW_CORE_STATUS_H_
#define __GENERATE_ENUM(e)
Definition: Status.h:57
#define __DW_ERROR_LIST(s)
Definition: Status.h:59
dwStatus
Status definition.
Definition: Status.h:178
NVIDIA DriveWorks API: Core Exports
DW_API_PUBLIC const char * dwGetStatusName(dwStatus s)
Returns a NULL terminated character string of the status value.
#define DW_API_PUBLIC
Definition: Exports.h:56