DriveWorks SDK Reference
5.20.37 Release
For Test and Development only

SensorStats.h
Go to the documentation of this file.
1
2// 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"
7// NVIDIA MAKES NO REPRESENTATIONS, WARRANTIES, EXPRESSED, IMPLIED, STATUTORY,
8// OR OTHERWISE WITH RESPECT TO THE MATERIALS, AND EXPRESSLY DISCLAIMS ANY
9// IMPLIED WARRANTIES OF NONINFRINGEMENT, MERCHANTABILITY, OR FITNESS FOR A
10// PARTICULAR PURPOSE.
11//
12// NVIDIA Corporation assumes no responsibility for the consequences of use of
13// such information or for any infringement of patents or other rights of third
14// parties that may result from its use. No license is granted by implication or
15// otherwise under any patent or patent rights of NVIDIA Corporation. No third
16// party distribution is allowed unless expressly authorized by NVIDIA. Details
17// are subject to change without notice. This code supersedes and replaces all
18// information previously supplied. NVIDIA Corporation products are not
19// authorized for use as critical components in life support devices or systems
20// without express written approval of NVIDIA Corporation.
21//
22// Copyright (c) 2023-2024 NVIDIA Corporation. All rights reserved.
23//
24// NVIDIA Corporation and its licensors retain all intellectual property and
25// proprietary rights in and to this software and related documentation and any
26// modifications thereto. Any use, reproduction, disclosure or distribution of
27// this software and related documentation without an express license agreement
28// from NVIDIA Corporation is strictly prohibited.
29//
31#ifndef DW_SENSORS_COMMON_SENSORSTATS_H_
32#define DW_SENSORS_COMMON_SENSORSTATS_H_
33// Generated by dwProto from sensor_stats.proto DO NOT EDIT BY HAND!
34// See //3rdparty/shared/dwproto/README.md for more information
35
36#include <dw/core/base/Types.h>
37
38#ifdef __cplusplus
39extern "C" {
40#endif
41
46
49
52
55
58
62
63// Hold the sensor ID and it's statistics
64typedef struct dwSensorStats
65{
67 uint64_t sensorId;
68
70 uint64_t events;
71
73 uint64_t errors;
74
76 uint64_t drops;
77
81
85
89
93
97
101
105
109
113
117
119 uint64_t crcErrors;
120
124
125#ifdef __cplusplus
126}
127#endif
128
129#endif // DW_SENSORS_COMMON_SENSORSTATS_H_
dwTime_t timeDeltaMax
Maximum observed host timestamp difference between two consecutive packets.
Definition: SensorStats.h:88
uint64_t sensorId
Sensor ID.
Definition: SensorStats.h:67
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:112
dwSensorStatTimeDifference
Enum used for time delta statistics.
Definition: SensorStats.h:43
@ DW_SENSOR_STATE_DELTA_HOST_AND_SENSOR_TIME
Difference between host timestamp and sensor timestamp.
Definition: SensorStats.h:51
@ DW_SENSOR_STATE_DELTA_READ_AND_RETURN_FRAME_TIME
Difference between readFrame and returnFrame time.
Definition: SensorStats.h:57
@ DW_SENSOR_STATE_DELTA_HOST_AND_HOST_TIME
Difference between two consecutive host timestamp.
Definition: SensorStats.h:45
@ DW_SENSOR_STATE_SENSOR_STAT_COUNT
Count which the type value is less than.
Definition: SensorStats.h:60
@ DW_SENSOR_STATE_DELTA_SENSOR_AND_SENSOR_TIME
Difference between two consecutive sensor timestamp.
Definition: SensorStats.h:48
@ 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:54
uint64_t nonMonotonicErrors
Number of non-monotonic timestamp events.
Definition: SensorStats.h:122
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:104
uint64_t crcErrors
Number of CRC errors.
Definition: SensorStats.h:119
uint64_t errors
Number of encountered errors.
Definition: SensorStats.h:73
uint64_t drops
Number of events dropped.
Definition: SensorStats.h:76
uint64_t events
Number of normal events (excluding errors and drops).
Definition: SensorStats.h:70
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:116
dwTime_t timeDeltaMin
Minimum observed host timestamp difference between two consecutive packets.
Definition: SensorStats.h:84
float64_t timeDeltaStandardDeviation
Variance of all the deltas between consecutive host timestamps.
Definition: SensorStats.h:92
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:100
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:108
float64_t timeDeltaMean
Mean of all the deltas between consecutive host timestamps.
Definition: SensorStats.h:96
dwTime_t timeDeltaCur
Current host timestamp difference between two consecutive packets.
Definition: SensorStats.h:80
NVIDIA DriveWorks API: Core Types
int64_t dwTime_t
Specifies a timestamp unit, in microseconds.
Definition: BasicTypes.h:65
double float64_t
Definition: BasicTypes.h:60