NVIDIA DriveOS Linux NSR SDK API Reference

7.0.3.0 Release
Data.h
Go to the documentation of this file.
1 /*
2  * SPDX-FileCopyrightText: Copyright (c) 2020-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 
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>
34 #include <dw/sensors/common/SensorTypes.h>
35 
36 #ifdef __cplusplus
37 extern "C" {
38 #endif
39 
41 typedef struct dwDataPacket
42 {
44  size_t size;
45 
48 
50  uint8_t* raw;
51 } dwDataPacket;
52 
76 dwStatus dwSensorData_readPacket(const dwDataPacket** const packet, dwTime_t const timeoutUs, dwSensorHandle_t const sensor);
77 
102 
103 #ifdef __cplusplus
104 }
105 #endif
106 
107 #endif // DW_SENSORS_DATA_H_
dwSensorHandle_t
struct dwSensorObject * dwSensorHandle_t
Handle representing a sensor.
Definition: SensorTypes.h:42
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.
sensor
DW_API_PUBLIC const dwSensorHandle_t sensor
Definition: Camera.h:714
dwDataPacket::size
size_t size
Number of bytes of the payload.
Definition: Data.h:44
dwTime_t
int64_t dwTime_t
Specifies a timestamp unit, in microseconds.
Definition: BasicTypes.h:54
dwDataPacket::raw
uint8_t * raw
Payload.
Definition: Data.h:50
dwDataPacket::hostTimestamp
dwTime_t hostTimestamp
Timestamp of the message in microseconds (using clock of the context).
Definition: Data.h:47
dwDataPacket
struct dwDataPacket dwDataPacket
Holds a data packet.
dwStatus
dwStatus
Status definition.
Definition: ErrorDefs.h:27
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.
DW_API_PUBLIC
#define DW_API_PUBLIC
Definition: Exports.h:38
dwDataPacket
Holds a data packet.
Definition: Data.h:41