DriveWorks SDK Reference

| 0.6.67 Release

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 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 <dw/core/Config.h>
50 #include <dw/core/Exports.h>
51 
52 #ifdef __cplusplus
53 extern "C" {
54 #endif
55 
56 #define __GENERATE_ENUM(e) e,
57 // clang-format off
58 #define __DW_ERROR_LIST(s) \
59  s(DW_SUCCESS) \
60  s(DW_INVALID_VERSION) \
61  s(DW_INVALID_ARGUMENT) \
63  s(DW_BAD_ALLOC) \
64  s(DW_BAD_ALIGNMENT) \
65  s(DW_BAD_CAST) \
66  s(DW_NOT_IMPLEMENTED) \
67  s(DW_END_OF_STREAM) \
68  \
69  s(DW_INVALID_HANDLE) \
70  \
71  s(DW_CALL_NOT_ALLOWED) \
72  s(DW_NOT_AVAILABLE) \
73  s(DW_NOT_RELEASED) \
74  s(DW_NOT_SUPPORTED) \
75  s(DW_NOT_INITIALIZED) \
76  s(DW_INTERNAL_ERROR) \
77  s(DW_FILE_NOT_FOUND) \
78  s(DW_FILE_INVALID) \
79  s(DW_CANNOT_CREATE_OBJECT) \
80  s(DW_BUFFER_FULL) \
81  s(DW_NOT_READY) \
82  \
83  s(DW_TIME_OUT) \
84  s(DW_BUSY_WAITING) \
85  \
86  s(DW_LOG_CANNOT_WRITE) \
87  s(DW_LOG_CANNOT_FLUSH) \
88  \
89  s(DW_SAL_CANNOT_INITIALIZE) \
91  s(DW_SAL_CANNOT_CREATE_SENSOR) \
93  s(DW_SAL_NO_DRIVER_FOUND) \
94  s(DW_SAL_SENSOR_UNSUPPORTED) \
95  s(DW_SAL_SENSOR_ERROR) \
96  \
97  s(DW_CUDA_ERROR) \
98  s(DW_GL_ERROR) \
99  s(DW_NVMEDIA_ERROR) \
100  \
101  s(DW_DNN_INVALID_MODEL) \
102  \
103  s(DW_FAILURE) \
104  s(DW_DNN_INVALID_TYPE) \
105  \
106  s(DW_HAL_CANNOT_OPEN_CHANNEL) \
107  \
108  s(DW_SAFETY_CLAMPED) \
109  s(DW_SAFETY_ERROR)
111 // clang-format on
112 
116 typedef enum dwStatus {
118 } dwStatus;
119 
124 DW_API_PUBLIC const char *dwGetStatusName(dwStatus s);
125 
126 #ifdef __cplusplus
127 }
128 #endif
129 
130 #endif // DW_CORE_STATUS_H__
#define __GENERATE_ENUM(e)
Definition: Status.h:56
NVIDIA DriveWorks API: Core Exports
#define __DW_ERROR_LIST(s)
Definition: Status.h:58
dwStatus
Status definition.
Definition: Status.h:167
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:76