NVIDIA DriveOS Linux SDK API Reference

7.2.5.0 Early Access Release
SensorExtras.h
Go to the documentation of this file.
1 /*
2  * SPDX-FileCopyrightText: Copyright (c) 2022-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_SENSORS_COMMON_SENSOREXTRAS_H_
13 #define DW_SENSORS_COMMON_SENSOREXTRAS_H_
14 // Generated by dwProto from sensor_extras.proto DO NOT EDIT BY HAND!
15 // See //3rdparty/shared/dwproto/README.md for more information
16 
22 #include <dw/pbwire/BasicTypes.h>
23 
24 #ifdef __cplusplus
25 extern "C" {
26 #endif
27 
29 // coverity[misra_c_2012_rule_2_4_violation] Deviation Record: AV-NDAS-DWPROTO-SWSADR-006
30 // coverity[misra_c_2012_rule_2_3_violation] Deviation Record: AV-NDAS-DWPROTO-SWSADR-006
31 typedef enum dwSensorTsAndIDSource {
34 
37 
40 
43 
46 
48  DW_SENSOR_TS_AND_ID_SOURCE_INFERENCE = 5, // More defines to add...
49  // coverity[misra_c_2012_rule_2_3_violation] Deviation Record: AV-NDAS-DWPROTO-SWSADR-006
51 
54 // coverity[misra_c_2012_rule_2_5_violation] Deviation Record: AV-NDAS-DWPROTO-SWSADR-006
55 #define DW_SENSOR_TS_AND_ID_SOURCE_COUNT 6
56 
58 // coverity[misra_c_2012_rule_2_4_violation] Deviation Record: AV-NDAS-SWSADR-003
59 // coverity[misra_c_2012_rule_2_3_violation] Deviation Record: AV-NDAS-DWPROTO-SWSADR-006
60 typedef struct dwSensorTsAndID
61 {
64 
66  uint64_t sensorId;
67 
70 
73 
75  uint64_t seqNum;
76 
78  bool isDropped;
79 
81  uint32_t iterationCount;
82 
85 
88  // coverity[misra_c_2012_rule_2_3_violation] Deviation Record: AV-NDAS-DWPROTO-SWSADR-006
90 
91 #ifdef __cplusplus
92 }
93 #endif
94 
98 #endif // DW_SENSORS_COMMON_SENSOREXTRAS_H_
dwSensorTsAndIDSource
dwSensorTsAndIDSource
Source of the message.
Definition: SensorExtras.h:31
dwSensorTsAndID::rtcTime
dwTime_t rtcTime
RTC timestamp at data consumption.
Definition: SensorExtras.h:84
dwSensorTsAndID
Hold the timestamp, ID, publishedTimestamp, seqNum and isDropped info of a frame.
Definition: SensorExtras.h:60
DW_SENSOR_TS_AND_ID_SOURCE_INFERENCE
@ DW_SENSOR_TS_AND_ID_SOURCE_INFERENCE
Sensor nodes in inference machine.
Definition: SensorExtras.h:48
dwSensorTsAndID::iterationCount
uint32_t iterationCount
The node iteration counter at data consumption.
Definition: SensorExtras.h:81
dwSensorTsAndID
struct dwSensorTsAndID dwSensorTsAndID
Hold the timestamp, ID, publishedTimestamp, seqNum and isDropped info of a frame.
dwSensorTsAndID::seqNum
uint64_t seqNum
Sensor/SAL sequence number for published message.
Definition: SensorExtras.h:75
DW_SENSOR_TS_AND_ID_SOURCE_SENSOR
@ DW_SENSOR_TS_AND_ID_SOURCE_SENSOR
Regular sensor.
Definition: SensorExtras.h:36
dwTime_t
int64_t dwTime_t
Definition: core/base/BasicTypes.h:65
dwSensorTsAndID::timestamp
dwTime_t timestamp
Timestamp of the sensor.
Definition: SensorExtras.h:69
dwSensorTsAndID::tscTime
dwTime_t tscTime
TSC timestamp at data consumption.
Definition: SensorExtras.h:87
DW_SENSOR_TS_AND_ID_SOURCE_UNSPECIFIED
@ DW_SENSOR_TS_AND_ID_SOURCE_UNSPECIFIED
Unspecified source.
Definition: SensorExtras.h:33
BasicTypes.h
DW_SENSOR_TS_AND_ID_SOURCE_ACTIVE_SAFETY
@ DW_SENSOR_TS_AND_ID_SOURCE_ACTIVE_SAFETY
Sensor nodes in active safety epoch.
Definition: SensorExtras.h:45
DW_SENSOR_TS_AND_ID_SOURCE_SENSORSERVICE
@ DW_SENSOR_TS_AND_ID_SOURCE_SENSORSERVICE
Sensor services nodes.
Definition: SensorExtras.h:42
dwSensorTsAndID::publishedTimestamp
dwTime_t publishedTimestamp
Timestamp when the processed sensor data has been published by the sensor node in [us].
Definition: SensorExtras.h:72
dwSensorTsAndID::source
dwSensorTsAndIDSource source
Source of the message.
Definition: SensorExtras.h:63
dwSensorTsAndID::sensorId
uint64_t sensorId
Sensor id.
Definition: SensorExtras.h:66
dwSensorTsAndID::isDropped
bool isDropped
Was the frame corresponding to the timestamp dropped?
Definition: SensorExtras.h:78
DW_SENSOR_TS_AND_ID_SOURCE_SVS
@ DW_SENSOR_TS_AND_ID_SOURCE_SVS
SVS node.
Definition: SensorExtras.h:39