NVIDIA DriveOS Linux SDK API Reference

7.2.5.0 Early Access Release
HealthSignals.h
Go to the documentation of this file.
1 /*
2  * SPDX-FileCopyrightText: Copyright (c) 2016-2026 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 #ifndef DW_CORE_HEALTH_HEALTHSIGNALS_H_
13 #define DW_CORE_HEALTH_HEALTHSIGNALS_H_
14 // Generated by dwProto from health_signals.proto DO NOT EDIT BY HAND!
15 // See //3rdparty/shared/dwproto/README.md for more information
16 
41 #include <dw/pbwire/BasicTypes.h>
42 
43 #ifdef __cplusplus
44 extern "C" {
45 #endif
46 
47 // coverity[misra_c_2012_rule_2_5_violation] Deviation Record: AV-NDAS-DWPROTO-SWSADR-006
48 #define DW_MAX_ERROR_SIGNAL_ERRORS_COUNT 32U
49 // coverity[misra_c_2012_rule_2_5_violation] Deviation Record: AV-NDAS-DWPROTO-SWSADR-006
51 #define DW_MAX_HEALTH_BYTEARRAY_SIZE 862U
52 // coverity[misra_c_2012_rule_2_5_violation] Deviation Record: AV-NDAS-DWPROTO-SWSADR-006
54 #define DW_MAX_HEALTH_SIGNAL_ARRAY_SIZE 64
55 
59 // coverity[misra_c_2012_rule_2_4_violation] Deviation Record: AV-NDAS-SWSADR-003
60 // coverity[misra_c_2012_rule_2_3_violation] Deviation Record: AV-NDAS-DWPROTO-SWSADR-006
61 typedef struct dwErrorSignal
62 {
65 
67  uint16_t sourceID;
68 
70  size_t count;
71 
74 
77  // coverity[misra_c_2012_rule_2_3_violation] Deviation Record: AV-NDAS-DWPROTO-SWSADR-006
79 
84 // coverity[misra_c_2012_rule_2_4_violation] Deviation Record: AV-NDAS-SWSADR-003
85 // coverity[misra_c_2012_rule_2_3_violation] Deviation Record: AV-NDAS-DWPROTO-SWSADR-006
86 typedef struct dwHealthSignal
87 {
90 
92  uint16_t sourceID;
93 
95  size_t count;
96 
99 
101  size_t dataSize;
102 
105  // coverity[misra_c_2012_rule_2_3_violation] Deviation Record: AV-NDAS-DWPROTO-SWSADR-006
107 
111 // coverity[misra_c_2012_rule_2_4_violation] Deviation Record: AV-NDAS-SWSADR-003
112 // coverity[misra_c_2012_rule_2_3_violation] Deviation Record: AV-NDAS-DWPROTO-SWSADR-006
113 typedef struct dwHealthSignalArray
114 {
117  uint32_t count;
118  // coverity[misra_c_2012_rule_2_3_violation] Deviation Record: AV-NDAS-DWPROTO-SWSADR-006
120 
121 #ifdef __cplusplus
122 }
123 #endif
124 
128 #endif // DW_CORE_HEALTH_HEALTHSIGNALS_H_
dwHealthSignalArray
struct dwHealthSignalArray dwHealthSignalArray
Represents an array of health signals.
dwErrorSignal::sourceID
uint16_t sourceID
module id, automatically filled
Definition: HealthSignals.h:67
dwHealthSignalArray::count
uint32_t count
Stores the occupied/valid length of healthSignals.
Definition: HealthSignals.h:117
dwErrorSignal::count
size_t count
the number of errors in errorIds
Definition: HealthSignals.h:70
dwErrorSignal::timestamp
dwTime_t timestamp
timestamp at which the error occured, filled by module
Definition: HealthSignals.h:64
dwHealthSignalArray::healthSignals
dwHealthSignal healthSignals[DW_MAX_HEALTH_SIGNAL_ARRAY_SIZE]
The individual signals.
Definition: HealthSignals.h:116
DW_MAX_HEALTH_SIGNAL_ARRAY_SIZE
#define DW_MAX_HEALTH_SIGNAL_ARRAY_SIZE
The maximum number of individual dwHealthSignal that can be stored in a dwHealthSignalArray.
Definition: HealthSignals.h:54
dwHealthSignal
struct dwHealthSignal dwHealthSignal
Basic health signal that describes the health status of a particular software element.
dwHealthSignal::data
uint8_t data[DW_MAX_HEALTH_BYTEARRAY_SIZE]
optional byte array for additional information
Definition: HealthSignals.h:104
dwTime_t
int64_t dwTime_t
Definition: core/base/BasicTypes.h:65
BasicTypes.h
dwHealthSignal::count
size_t count
the number of errors in errorIds
Definition: HealthSignals.h:95
dwHealthSignal
Basic health signal that describes the health status of a particular software element.
Definition: HealthSignals.h:86
dwHealthSignal::timestamp
dwTime_t timestamp
timestamp at which the health status was last updated, filled by module
Definition: HealthSignals.h:89
dwHealthSignal::errorIDs
uint32_t errorIDs[DW_MAX_ERROR_SIGNAL_ERRORS_COUNT]
module defined error
Definition: HealthSignals.h:98
DW_MAX_HEALTH_BYTEARRAY_SIZE
#define DW_MAX_HEALTH_BYTEARRAY_SIZE
The size of the data field in dwHealthSignal.
Definition: HealthSignals.h:51
DW_MAX_ERROR_SIGNAL_ERRORS_COUNT
#define DW_MAX_ERROR_SIGNAL_ERRORS_COUNT
Definition: HealthSignals.h:48
dwHealthSignalArray
Represents an array of health signals.
Definition: HealthSignals.h:113
dwErrorSignal::errorIDs
uint32_t errorIDs[DW_MAX_ERROR_SIGNAL_ERRORS_COUNT]
module defined error
Definition: HealthSignals.h:73
dwErrorSignal
struct dwErrorSignal dwErrorSignal
Basic error signal that gets reported only when there is an error.
dwHealthSignal::sourceID
uint16_t sourceID
module id, automatically filled
Definition: HealthSignals.h:92
dwErrorSignal::consecutiveCounts
uint32_t consecutiveCounts[DW_MAX_ERROR_SIGNAL_ERRORS_COUNT]
consecutive count of each error in errorIDs
Definition: HealthSignals.h:76
dwHealthSignal::dataSize
size_t dataSize
bytes used in the optional byte array
Definition: HealthSignals.h:101
dwErrorSignal
Basic error signal that gets reported only when there is an error.
Definition: HealthSignals.h:61