DriveWorks SDK Reference
4.0.0 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 
46 #ifndef DW_CORE_STATUS_H_
47 #define DW_CORE_STATUS_H_
48 
49 #include "Exports.h"
50 
51 #ifdef __cplusplus
52 extern "C" {
53 #endif
54 
55 #define DW_CORE_GENERATE_ENUM(e) e,
56 // clang-format off
57 #define DW_CORE_ERROR_LIST(s) \
58  s(DW_SUCCESS) \
59  s(DW_INVALID_VERSION) \
60  s(DW_INVALID_ARGUMENT) \
62  s(DW_BAD_ALLOC) \
63  s(DW_BAD_ALIGNMENT) \
64  s(DW_BAD_CAST) \
65  s(DW_NOT_IMPLEMENTED) \
66  s(DW_END_OF_STREAM) \
67  \
68  s(DW_INVALID_HANDLE) \
69  \
70  s(DW_CALL_NOT_ALLOWED) \
71  s(DW_NOT_AVAILABLE) \
72  s(DW_NOT_RELEASED) \
73  s(DW_NOT_SUPPORTED) \
74  s(DW_NOT_INITIALIZED) \
75  s(DW_INTERNAL_ERROR) \
76  s(DW_FILE_NOT_FOUND) \
77  s(DW_FILE_INVALID) \
78  s(DW_CANNOT_CREATE_OBJECT) \
79  s(DW_BUFFER_FULL) \
80  s(DW_NOT_READY) \
81  \
82  s(DW_TIME_OUT) \
83  s(DW_BUSY_WAITING) \
84  \
85  s(DW_LOG_CANNOT_WRITE) \
86  s(DW_LOG_CANNOT_FLUSH) \
87  \
88  s(DW_SAL_CANNOT_INITIALIZE) \
90  s(DW_SAL_CANNOT_CREATE_SENSOR) \
92  s(DW_SAL_NO_DRIVER_FOUND) \
93  s(DW_SAL_SENSOR_UNSUPPORTED) \
94  s(DW_SAL_SENSOR_ERROR) \
95  \
96  s(DW_CUDA_ERROR) \
97  s(DW_GL_ERROR) \
98  s(DW_NVMEDIA_ERROR) \
99  \
100  s(DW_DNN_INVALID_MODEL) \
101  \
102  s(DW_FAILURE) \
103  s(DW_DNN_INVALID_TYPE) \
104  \
105  s(DW_HAL_CANNOT_OPEN_CHANNEL) \
106  \
107  s(DW_OUT_OF_BOUNDS) \
108  \
109  s(DW_UNEXPECTED_IPC_EVENT) \
110  \
111  s(DW_UNEXPECTED_EVENT) \
112  s(DW_CUDA_CONTEXT_ERROR) \
113  s(DW_CUDA_DEVICE_ERROR) \
114  s(DW_CANNOT_SYNCHRONIZE) \
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 DW_CORE_GENERATE_ENUM(e)
Definition: Status.h:55
#define DW_CORE_ERROR_LIST(s)
Definition: Status.h:57
dwStatus
Status definition.
Definition: Status.h:180
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:54
NVIDIA DriveWorks API: Core Exports