NVIDIA DriveOS Linux NSR SDK API Reference

7.0.3.0 Release
vicdiagnostics.h
Go to the documentation of this file.
1 /*
2  * SPDX-FileCopyrightText: Copyright (c) 2022-2024 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
3  * SPDX-License-Identifier: LicenseRef-NvidiaProprietary
4  *
5  * NVIDIA CORPORATION, its affiliates and licensors retain all intellectual
6  * property and proprietary rights in and to this material, related
7  * documentation and any modifications thereto. Any use, reproduction,
8  * disclosure or distribution of this material and related documentation
9  * without an express license agreement from NVIDIA CORPORATION or
10  * its affiliates is strictly prohibited.
11  */
12 
18 
19 #ifndef VICDIAGNOSTICS_H
20 #define VICDIAGNOSTICS_H
21 
22 #include "nvmedia_core.h"
23 #include <stdint.h>
24 
25 #ifdef __cplusplus
26 extern "C" {
27 #endif
28 
37 
46 #define VICDIAGNOSTICS_VERSION_MAJOR 1
47 
56 #define VICDIAGNOSTICS_VERSION_MINOR 0
57 
64 #define VICDIAGNOSTICS_VERSION_PATCH 1
65 
77 typedef struct
78 {
87 
95 
97  uint32_t flags;
98 
100 
118 typedef uint32_t VicDiagnosticsParameters;
119 
130 typedef struct
131 {
137  uint64_t operationId;
139 
182 
192 
245  VicDiagnosticsAttributes const * const attr);
246 
296 
350 
353 #define VICDIAGNOSTICS_TASK_STATUS_CHECKSUM_MISMATCH 41u
354 
463  VicDiagnosticsResult * const result);
464 
501  uint32_t * const numTests);
502 
546  uint32_t const testId);
547 
551 
552 //
553 // Version History
554 //
555 // Version 1.0 August 10, 2022
556 // - Initial release
557 //
558 // Version 1.0.1 September 2, 2022
559 // - Always treat parameters handle value 0 as invalid
560 //
561 
562 #ifdef __cplusplus
563 }
564 #endif
565 
566 #endif // VICDIAGNOSTICS_H
VicDiagnosticsDestroy
NvMediaStatus VicDiagnosticsDestroy(VicDiagnostics const *const handle)
Destroys the VicDiagnostics context.
VicDiagnosticsAttributes::flags
uint32_t flags
Internal use only.
Definition: vicdiagnostics.h:97
NvMediaStatus
NvMediaStatus
Defines all possible error codes.
Definition: nvmedia_core.h:108
VicDiagnosticsAttributes
Attributes structure for VicDiagnosticsCreate().
Definition: vicdiagnostics.h:77
handle
const WFDCommitType const WFDHandle handle
Definition: wfdext.h:124
NvMediaVersion
Holds NvMedia version information.
Definition: nvmedia_core.h:168
VicDiagnosticsAttributes::maxRegisteredSyncs
uint32_t maxRegisteredSyncs
Maximum number of sync objects that can be registered.
Definition: vicdiagnostics.h:94
VicDiagnosticsGetParameters
NvMediaStatus VicDiagnosticsGetParameters(VicDiagnostics const *const handle, VicDiagnosticsParameters *const params)
Returns an VicDiagnosticsParameters instance.
VicDiagnosticsAttributes::numDiagnosticsParameters
uint32_t numDiagnosticsParameters
Number of diagnostics parameters objects to allocate.
Definition: vicdiagnostics.h:86
VicDiagnosticsGetVersion
NvMediaStatus VicDiagnosticsGetVersion(NvMediaVersion *const version)
Returns the version number of the NvMedia Vic Diagnostics library.
nvmedia_core.h
NVIDIA Media Interface: Core
VicDiagnosticsParameters
uint32_t VicDiagnosticsParameters
Stores configuration for the VicDiagnosticsExecute() operation.
Definition: vicdiagnostics.h:118
VicDiagnosticsSetTest
NvMediaStatus VicDiagnosticsSetTest(VicDiagnostics const *const handle, VicDiagnosticsParameters const params, uint32_t const testId)
Sets the test ID for an VicDiagnosticsParameters instance.
VicDiagnosticsExecute
NvMediaStatus VicDiagnosticsExecute(VicDiagnostics const *const handle, VicDiagnosticsParameters const params, VicDiagnosticsResult *const result)
Performs a VIC HW diagnostic operation.
VicDiagnosticsGetNumTests
NvMediaStatus VicDiagnosticsGetNumTests(VicDiagnostics const *const handle, uint32_t *const numTests)
Gets the number of available diagnostics tests.
VicDiagnosticsResult
Stores information returned from VicDiagnosticsExecute().
Definition: vicdiagnostics.h:130
VicDiagnosticsResult::operationId
uint64_t operationId
ID number for operation that was submitted to VicDiagnosticsExecute().
Definition: vicdiagnostics.h:137
VicDiagnosticsCreate
NvMediaStatus VicDiagnosticsCreate(VicDiagnostics **const handle, VicDiagnosticsAttributes const *const attr)
Creates a new VicDiagnostics context.
params
DW_API_PUBLIC dwPointCloudRangeImageCreatorParams const *const params
Definition: PointCloudRangeImageCreator.h:292
VicDiagnostics
struct VicDiagnostics VicDiagnostics
VicDiagnostics Context.
Definition: vicdiagnostics.h:191