DriveWorks SDK Reference
5.20.37 Release
For Test and Development only
SensorExtras.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) 2022-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_SENSOREXTRAS_H_
32
#define DW_SENSORS_COMMON_SENSOREXTRAS_H_
33
// Generated by dwProto from sensor_extras.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
39
extern
"C"
{
40
#endif
41
43
typedef
enum
dwSensorTsAndIDSource
{
45
DW_SENSOR_TS_AND_ID_SOURCE_UNSPECIFIED
= 0,
46
48
DW_SENSOR_TS_AND_ID_SOURCE_SENSOR
= 1,
49
51
DW_SENSOR_TS_AND_ID_SOURCE_SVS
= 2,
52
54
DW_SENSOR_TS_AND_ID_SOURCE_SENSORSERVICE
= 3,
// More defines to add...
55
}
dwSensorTsAndIDSource
;
56
57
// This amounts to max(SensorTsAndIDSource) + 1, i.e. the required size of
58
// an array if these enum values are interpreted as array offsets.
59
#define DW_SENSOR_TS_AND_ID_SOURCE_COUNT 4
60
62
typedef
struct
dwSensorTsAndID
63
{
65
dwSensorTsAndIDSource
source
;
66
68
uint64_t
sensorId
;
69
71
dwTime_t
timestamp
;
72
74
dwTime_t
publishedTimestamp
;
75
77
uint64_t
seqNum
;
78
80
bool
isDropped
;
81
83
uint32_t
iterationCount
;
84
86
dwTime_t
rtcTime
;
87
89
dwTime_t
tscTime
;
90
}
dwSensorTsAndID
;
91
92
#ifdef __cplusplus
93
}
94
#endif
95
96
#endif
// DW_SENSORS_COMMON_SENSOREXTRAS_H_
dwSensorTsAndID::sensorId
uint64_t sensorId
Sensor id.
Definition:
SensorExtras.h:68
dwSensorTsAndID::rtcTime
dwTime_t rtcTime
RTC timestamp at data consumption.
Definition:
SensorExtras.h:86
dwSensorTsAndID::seqNum
uint64_t seqNum
Sensor/SAL sequence number for published message.
Definition:
SensorExtras.h:77
dwSensorTsAndID::iterationCount
uint32_t iterationCount
The node iteration counter at data consumption.
Definition:
SensorExtras.h:83
dwSensorTsAndID::isDropped
bool isDropped
Was the frame corresponding to the timestamp dropped?
Definition:
SensorExtras.h:80
dwSensorTsAndID::tscTime
dwTime_t tscTime
TSC timestamp at data consumption.
Definition:
SensorExtras.h:89
dwSensorTsAndID::source
dwSensorTsAndIDSource source
Source of the message.
Definition:
SensorExtras.h:65
dwSensorTsAndIDSource
dwSensorTsAndIDSource
Source of the message.
Definition:
SensorExtras.h:43
DW_SENSOR_TS_AND_ID_SOURCE_UNSPECIFIED
@ DW_SENSOR_TS_AND_ID_SOURCE_UNSPECIFIED
Unspecified source.
Definition:
SensorExtras.h:45
DW_SENSOR_TS_AND_ID_SOURCE_SVS
@ DW_SENSOR_TS_AND_ID_SOURCE_SVS
SVS node.
Definition:
SensorExtras.h:51
DW_SENSOR_TS_AND_ID_SOURCE_SENSOR
@ DW_SENSOR_TS_AND_ID_SOURCE_SENSOR
Regular sensor.
Definition:
SensorExtras.h:48
DW_SENSOR_TS_AND_ID_SOURCE_SENSORSERVICE
@ DW_SENSOR_TS_AND_ID_SOURCE_SENSORSERVICE
Sensor services nodes.
Definition:
SensorExtras.h:54
dwSensorTsAndID::publishedTimestamp
dwTime_t publishedTimestamp
Timestamp when the processed sensor data has been published by the sensor node in [us].
Definition:
SensorExtras.h:74
dwSensorTsAndID::timestamp
dwTime_t timestamp
Timestamp of the sensor.
Definition:
SensorExtras.h:71
dwSensorTsAndID
Hold the timestamp, ID, publishedTimestamp, seqNum and isDropped info of a frame.
Definition:
SensorExtras.h:63
Types.h
NVIDIA DriveWorks API: Core Types
dwTime_t
int64_t dwTime_t
Specifies a timestamp unit, in microseconds.
Definition:
BasicTypes.h:65
Advance Information | Subject to Change | Prepared and Provided under NDA | Generated by NVIDIA | PR-08397-V5.0