NVIDIA DriveOS Linux SDK API Reference

7.2.5.0 Early Access Release
Data.h
Go to the documentation of this file.
1 /*
2  * SPDX-FileCopyrightText: Copyright (c) 2020-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 
28 #ifndef DW_SENSORS_DATA_H_
29 #define DW_SENSORS_DATA_H_
30 
31 #include <dw/core/base/Config.h>
32 #include <dw/core/base/Exports.h>
33 #include <dw/core/base/Types.h>
35 
36 #ifdef __cplusplus
37 extern "C" {
38 #endif
39 
41 // coverity[misra_c_2012_rule_2_4_violation] Deviation Record: AV-NDAS-DWPROTO-SWSADR-006
42 typedef struct dwDataPacket
43 {
45  size_t size;
46 
49 
51  uint8_t* raw;
52 } dwDataPacket;
53 
78 dwStatus dwSensorData_readPacket(const dwDataPacket** const packet, dwTime_t const timeoutUs, dwSensorHandle_t const sensor);
79 
105 
106 #ifdef __cplusplus
107 }
108 #endif
109 
110 #endif // DW_SENSORS_DATA_H_
dwSensorHandle_t
struct dwSensorObject * dwSensorHandle_t
Handle representing a sensor.
Definition: SensorTypes.h:44
Types.h
dwDataPacket
struct dwDataPacket dwDataPacket
Holds a data packet.
sensor
const dwSensorHandle_t sensor
Definition: Camera.h:848
Exports.h
dwDataPacket::size
size_t size
Number of bytes of the payload.
Definition: Data.h:45
dwTime_t
int64_t dwTime_t
Definition: core/base/BasicTypes.h:65
dwDataPacket::raw
uint8_t * raw
Payload.
Definition: Data.h:51
dwSensorData_returnPacket
DW_API_PUBLIC dwStatus dwSensorData_returnPacket(dwDataPacket const *const scan, dwSensorHandle_t const sensor)
Returns the data previously read to the internal pool.
dwStatus
dwStatus
Status definition.
Definition: ErrorDefs.h:32
dwDataPacket::hostTimestamp
dwTime_t hostTimestamp
Timestamp of the message in microseconds (using clock of the context).
Definition: Data.h:48
dwSensorData_readPacket
DW_API_PUBLIC dwStatus dwSensorData_readPacket(const dwDataPacket **const packet, dwTime_t const timeoutUs, dwSensorHandle_t const sensor)
Reads the next data packet.
Config.h
SensorTypes.h
DW_API_PUBLIC
#define DW_API_PUBLIC
Definition: core/base/Exports.h:57
dwDataPacket
Holds a data packet.
Definition: Data.h:42