NVIDIA DriveOS Linux NSR SDK API Reference

7.0.3.0 Release
SensorExtras.h
Go to the documentation of this file.
1 /*
2  * SPDX-FileCopyrightText: Copyright (c) 2022-2025 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 
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
26 typedef enum dwSensorTsAndIDSource {
29 
32 
35 
38 
40  DW_SENSOR_TS_AND_ID_SOURCE_ACTIVE_SAFETY = 4, // More defines to add...
42 
43 // This amounts to max(SensorTsAndIDSource) + 1, i.e. the required size of
44 // an array if these enum values are interpreted as array offsets.
45 // coverity[misra_c_2012_rule_2_5_violation] Deviation Record: AV-NDAS-DWPROTO-SWSADR-006
46 #define DW_SENSOR_TS_AND_ID_SOURCE_COUNT 5
47 
49 // coverity[misra_c_2012_rule_2_4_violation] Deviation Record: AV-NDAS-SWSADR-003
50 // coverity[misra_c_2012_rule_2_3_violation] Deviation Record: AV-NDAS-DWPROTO-SWSADR-006
51 typedef struct dwSensorTsAndID
52 {
55 
57  uint64_t sensorId;
58 
61 
64 
66  uint64_t seqNum;
67 
69  bool isDropped;
70 
72  uint32_t iterationCount;
73 
76 
79  // coverity[misra_c_2012_rule_2_3_violation] Deviation Record: AV-NDAS-DWPROTO-SWSADR-006
81 
82 #ifdef __cplusplus
83 }
84 #endif
85 
86 #endif // DW_SENSORS_COMMON_SENSOREXTRAS_H_
DW_SENSOR_TS_AND_ID_SOURCE_SENSOR
@ DW_SENSOR_TS_AND_ID_SOURCE_SENSOR
Regular sensor.
Definition: SensorExtras.h:31
DW_SENSOR_TS_AND_ID_SOURCE_SENSORSERVICE
@ DW_SENSOR_TS_AND_ID_SOURCE_SENSORSERVICE
Sensor services nodes.
Definition: SensorExtras.h:37
dwSensorTsAndID::rtcTime
dwTime_t rtcTime
RTC timestamp at data consumption.
Definition: SensorExtras.h:75
dwSensorTsAndID
Hold the timestamp, ID, publishedTimestamp, seqNum and isDropped info of a frame.
Definition: SensorExtras.h:51
DW_SENSOR_TS_AND_ID_SOURCE_SVS
@ DW_SENSOR_TS_AND_ID_SOURCE_SVS
SVS node.
Definition: SensorExtras.h:34
dwSensorTsAndID::iterationCount
uint32_t iterationCount
The node iteration counter at data consumption.
Definition: SensorExtras.h:72
dwSensorTsAndIDSource
dwSensorTsAndIDSource
Source of the message.
Definition: SensorExtras.h:26
dwSensorTsAndID::seqNum
uint64_t seqNum
Sensor/SAL sequence number for published message.
Definition: SensorExtras.h:66
dwTime_t
int64_t dwTime_t
Specifies a timestamp unit, in microseconds.
Definition: BasicTypes.h:54
dwSensorTsAndID::timestamp
dwTime_t timestamp
Timestamp of the sensor.
Definition: SensorExtras.h:60
dwSensorTsAndID::tscTime
dwTime_t tscTime
TSC timestamp at data consumption.
Definition: SensorExtras.h:78
DW_SENSOR_TS_AND_ID_SOURCE_UNSPECIFIED
@ DW_SENSOR_TS_AND_ID_SOURCE_UNSPECIFIED
Unspecified source.
Definition: SensorExtras.h:28
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:40
dwSensorTsAndID::publishedTimestamp
dwTime_t publishedTimestamp
Timestamp when the processed sensor data has been published by the sensor node in [us].
Definition: SensorExtras.h:63
dwSensorTsAndID
struct dwSensorTsAndID dwSensorTsAndID
Hold the timestamp, ID, publishedTimestamp, seqNum and isDropped info of a frame.
dwSensorTsAndID::source
dwSensorTsAndIDSource source
Source of the message.
Definition: SensorExtras.h:54
dwSensorTsAndID::sensorId
uint64_t sensorId
Sensor id.
Definition: SensorExtras.h:57
dwSensorTsAndID::isDropped
bool isDropped
Was the frame corresponding to the timestamp dropped?
Definition: SensorExtras.h:69