DriveWorks SDK Reference
5.4.5418 Release
For Test and Development only

Status.h
Go to the documentation of this file.
1 //
3 // Notice
4 // ALL NVIDIA DESIGN SPECIFICATIONS AND CODE ("MATERIALS") ARE PROVIDED "AS IS" NVIDIA MAKES
5 // NO REPRESENTATIONS, WARRANTIES, EXPRESSED, IMPLIED, STATUTORY, OR OTHERWISE WITH RESPECT TO
6 // THE MATERIALS, AND EXPRESSLY DISCLAIMS ANY IMPLIED WARRANTIES OF NONINFRINGEMENT,
7 // MERCHANTABILITY, OR FITNESS FOR A PARTICULAR PURPOSE.
8 //
9 // NVIDIA CORPORATION & AFFILIATES assumes no responsibility for the consequences of use of such
10 // information or for any infringement of patents or other rights of third parties that may
11 // result from its use. No license is granted by implication or otherwise under any patent
12 // or patent rights of NVIDIA CORPORATION & AFFILIATES. No third party distribution is allowed unless
13 // expressly authorized by NVIDIA. Details are subject to change without notice.
14 // This code supersedes and replaces all information previously supplied.
15 // NVIDIA CORPORATION & AFFILIATES products are not authorized for use as critical
16 // components in life support devices or systems without express written approval of
17 // NVIDIA CORPORATION & AFFILIATES.
18 //
19 // SPDX-FileCopyrightText: Copyright (c) 2016-2021 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
20 // SPDX-License-Identifier: LicenseRef-NvidiaProprietary
21 //
22 // NVIDIA CORPORATION, its affiliates and licensors retain all intellectual
23 // property and proprietary rights in and to this material, related
24 // documentation and any modifications thereto. Any use, reproduction,
25 // disclosure or distribution of this material and related documentation
26 // without an express license agreement from NVIDIA CORPORATION or
27 // its affiliates is 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 const s);
131 
132 #ifdef __cplusplus
133 }
134 #endif
135 
136 #endif // DW_CORE_STATUS_H_
DW_API_PUBLIC const char * dwGetStatusName(dwStatus const s)
Returns a NULL terminated character string of the status value.
#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
#define DW_API_PUBLIC
Definition: Exports.h:54
NVIDIA DriveWorks API: Core Exports