DriveWorks SDK Reference
5.4.5418 Release
For Test and Development only

Data.h
Go to the documentation of this file.
1 //
3 // Notice
4 // ALL NVIDIA DESIGN SPECIFICATIONS AND CODE ("MATERIALS") ARE PROVIDED "AS IS" NVIDIA MAKES
5 // NO REPRESENTATIONS, WARRANTIES, EXPRESSED, IMPLIED, STATUTORY, OR OTHERWISE WITH RESPECT TO
6 // THE MATERIALS, AND EXPRESSLY DISCLAIMS ANY IMPLIED WARRANTIES OF NONINFRINGEMENT,
7 // MERCHANTABILITY, OR FITNESS FOR A PARTICULAR PURPOSE.
8 //
9 // NVIDIA CORPORATION & AFFILIATES assumes no responsibility for the consequences of use of such
10 // information or for any infringement of patents or other rights of third parties that may
11 // result from its use. No license is granted by implication or otherwise under any patent
12 // or patent rights of NVIDIA CORPORATION & AFFILIATES. No third party distribution is allowed unless
13 // expressly authorized by NVIDIA. Details are subject to change without notice.
14 // This code supersedes and replaces all information previously supplied.
15 // NVIDIA CORPORATION & AFFILIATES products are not authorized for use as critical
16 // components in life support devices or systems without express written approval of
17 // NVIDIA CORPORATION & AFFILIATES.
18 //
19 // SPDX-FileCopyrightText: Copyright (c) 2020-2021 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
20 // SPDX-License-Identifier: LicenseRef-NvidiaProprietary
21 //
22 // NVIDIA CORPORATION, its affiliates and licensors retain all intellectual
23 // property and proprietary rights in and to this material, related
24 // documentation and any modifications thereto. Any use, reproduction,
25 // disclosure or distribution of this material and related documentation
26 // without an express license agreement from NVIDIA CORPORATION or
27 // its affiliates is strictly prohibited.
28 //
30 
46 #ifndef DW_SENSORS_DATA_H_
47 #define DW_SENSORS_DATA_H_
48 
49 #include <dw/core/Config.h>
50 #include <dw/core/base/Exports.h>
51 #include <dw/core/base/Types.h>
52 
53 #include <dw/sensors/Sensors.h>
54 
55 #ifdef __cplusplus
56 extern "C" {
57 #endif
58 
60 typedef struct dwDataPacket
61 {
63  size_t size;
64 
67 
69  uint8_t* raw;
70 } dwDataPacket;
71 
90 dwStatus dwSensorData_readPacket(const dwDataPacket** const packet, dwTime_t const timeoutUs, dwSensorHandle_t const sensor);
91 
105 dwStatus dwSensorData_returnPacket(dwDataPacket const* const scan, dwSensorHandle_t const sensor);
106 
107 #ifdef __cplusplus
108 }
109 #endif
110 
111 #endif // DW_SENSORS_DATA_H_
NVIDIA DriveWorks API: Core Types
dwTime_t hostTimestamp
Timestamp of the message in microseconds (using clock of the context).
Definition: Data.h:66
struct dwSensorObject * dwSensorHandle_t
Handle representing a sensor.
Definition: Sensors.h:85
dwStatus
Status definition.
Definition: Status.h:180
NVIDIA DriveWorks API: Sensors
int64_t dwTime_t
Specifies a timestamp unit, in microseconds.
Definition: Types.h:82
DW_API_PUBLIC dwStatus dwSensorData_returnPacket(dwDataPacket const *const scan, dwSensorHandle_t const sensor)
Returns the data read to the internal pool.
Holds a data packet.
Definition: Data.h:60
size_t size
Number of bytes of the payload.
Definition: Data.h:63
uint8_t * raw
Payload.
Definition: Data.h:69
#define DW_API_PUBLIC
Definition: Exports.h:54
DW_API_PUBLIC dwStatus dwSensorData_readPacket(const dwDataPacket **const packet, dwTime_t const timeoutUs, dwSensorHandle_t const sensor)
Reads the next packet.
NVIDIA DriveWorks API: Core Exports