NVIDIA DriveOS Linux NSR SDK API Reference

7.0.3.0 Release
SensorStats.h
Go to the documentation of this file.
1 /*
2  * SPDX-FileCopyrightText: Copyright (c) 2023-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 #ifndef DW_SENSORS_COMMON_SENSORSTATS_H_
13 #define DW_SENSORS_COMMON_SENSORSTATS_H_
14 // Generated by dwProto from sensor_stats.proto DO NOT EDIT BY HAND!
15 // See //3rdparty/shared/dwproto/README.md for more information
16 
17 #include <dw/pbwire/BasicTypes.h>
18 
19 #ifdef __cplusplus
20 extern "C" {
21 #endif
22 
24 // coverity[misra_c_2012_rule_2_4_violation] Deviation Record: AV-NDAS-DWPROTO-SWSADR-006
25 // coverity[misra_c_2012_rule_2_3_violation] Deviation Record: AV-NDAS-DWPROTO-SWSADR-006
29 
32 
35 
38 
41 
45 
46 // Hold the sensor ID and it's statistics
47 // coverity[misra_c_2012_rule_2_4_violation] Deviation Record: AV-NDAS-SWSADR-003
48 // coverity[misra_c_2012_rule_2_3_violation] Deviation Record: AV-NDAS-DWPROTO-SWSADR-006
49 typedef struct dwSensorStats
50 {
52  uint64_t sensorId;
53 
55  uint64_t events;
56 
58  uint64_t errors;
59 
61  uint64_t drops;
62 
66 
70 
74 
78 
82 
86 
90 
94 
98 
102 
104  uint64_t crcErrors;
105 
108  // coverity[misra_c_2012_rule_2_3_violation] Deviation Record: AV-NDAS-DWPROTO-SWSADR-006
109 } dwSensorStats;
110 
111 #ifdef __cplusplus
112 }
113 #endif
114 
115 #endif // DW_SENSORS_COMMON_SENSORSTATS_H_
DW_SENSOR_STATE_SENSOR_STAT_COUNT
@ DW_SENSOR_STATE_SENSOR_STAT_COUNT
Count which the type value is less than.
Definition: SensorStats.h:43
DW_SENSOR_STATE_DELTA_HOST_AND_SENSOR_TIME
@ DW_SENSOR_STATE_DELTA_HOST_AND_SENSOR_TIME
Difference between host timestamp and sensor timestamp.
Definition: SensorStats.h:34
dwSensorStats::errors
uint64_t errors
Number of encountered errors.
Definition: SensorStats.h:58
dwSensorStats::timeDeltaMean
float64_t timeDeltaMean
Mean of all the deltas between consecutive host timestamps.
Definition: SensorStats.h:81
dwSensorStats::timeDeltaCur
dwTime_t timeDeltaCur
Current host timestamp difference between two consecutive packets.
Definition: SensorStats.h:65
dwSensorStats
Definition: SensorStats.h:49
DW_SENSOR_STATE_DELTA_HOST_AND_HOST_TIME
@ DW_SENSOR_STATE_DELTA_HOST_AND_HOST_TIME
Difference between two consecutive host timestamp.
Definition: SensorStats.h:28
DW_SENSOR_STATE_DELTA_CURRENT_AND_HOST_TIME
@ DW_SENSOR_STATE_DELTA_CURRENT_AND_HOST_TIME
Difference between current time and the last host timestamp when sensor data was received.
Definition: SensorStats.h:37
dwSensorStats::maxDelta
dwTime_t maxDelta[DW_SENSOR_STATE_SENSOR_STAT_COUNT]
Array of Maximum observed time difference between two consecutive packets as per the dwSensorStatTime...
Definition: SensorStats.h:93
dwSensorStats::nonMonotonicErrors
uint64_t nonMonotonicErrors
Number of non-monotonic timestamp events.
Definition: SensorStats.h:107
dwSensorStats::drops
uint64_t drops
Number of events dropped.
Definition: SensorStats.h:61
dwSensorStats::events
uint64_t events
Number of normal events (excluding errors and drops).
Definition: SensorStats.h:55
dwSensorStats::currentDelta
dwTime_t currentDelta[DW_SENSOR_STATE_SENSOR_STAT_COUNT]
Array of Current time difference between two consecutive packets as per the dwSensorStatTimeDifferenc...
Definition: SensorStats.h:85
dwSensorStats::timeDeltaStandardDeviation
float64_t timeDeltaStandardDeviation
Variance of all the deltas between consecutive host timestamps.
Definition: SensorStats.h:77
dwSensorStatTimeDifference
dwSensorStatTimeDifference
Enum used for time delta statistics.
Definition: SensorStats.h:26
dwTime_t
int64_t dwTime_t
Specifies a timestamp unit, in microseconds.
Definition: BasicTypes.h:54
dwSensorStats::sensorId
uint64_t sensorId
Sensor ID.
Definition: SensorStats.h:52
dwSensorStats::crcErrors
uint64_t crcErrors
Number of CRC errors.
Definition: SensorStats.h:104
DW_SENSOR_STATE_DELTA_SENSOR_AND_SENSOR_TIME
@ DW_SENSOR_STATE_DELTA_SENSOR_AND_SENSOR_TIME
Difference between two consecutive sensor timestamp.
Definition: SensorStats.h:31
dwSensorStats::timeDeltaMax
dwTime_t timeDeltaMax
Maximum observed host timestamp difference between two consecutive packets.
Definition: SensorStats.h:73
dwSensorStats::standardDeviationDelta
float64_t standardDeviationDelta[DW_SENSOR_STATE_SENSOR_STAT_COUNT]
Array of Variance of all the deltas between consecutive timestamps as per the dwSensorStatTimeDiffere...
Definition: SensorStats.h:97
dwSensorStats::minDelta
dwTime_t minDelta[DW_SENSOR_STATE_SENSOR_STAT_COUNT]
Array of Minimum observed time difference between two consecutive packets as per the dwSensorStatTime...
Definition: SensorStats.h:89
DW_SENSOR_STATE_DELTA_READ_AND_RETURN_FRAME_TIME
@ DW_SENSOR_STATE_DELTA_READ_AND_RETURN_FRAME_TIME
Difference between readFrame and returnFrame time.
Definition: SensorStats.h:40
float64_t
double float64_t
Definition: BasicTypes.h:42
dwSensorStats
struct dwSensorStats dwSensorStats
dwSensorStats::timeDeltaMin
dwTime_t timeDeltaMin
Minimum observed host timestamp difference between two consecutive packets.
Definition: SensorStats.h:69
dwSensorStats::meanDelta
float64_t meanDelta[DW_SENSOR_STATE_SENSOR_STAT_COUNT]
Array of Mean of all the deltas between consecutive timestamps as per the dwSensorStatTimeDifference.
Definition: SensorStats.h:101