DriveWorks SDK Reference
4.0.0 Release
For Test and Development only

Data.h
Go to the documentation of this file.
1 // This code contains NVIDIA Confidential Information and is disclosed under the
3 // Mutual Non-Disclosure Agreement.
4 //
5 // Notice ALL NVIDIA DESIGN SPECIFICATIONS AND CODE ("MATERIALS") ARE PROVIDED
6 // "AS IS" NVIDIA MAKES NO REPRESENTATIONS, WARRANTIES, EXPRESSED, IMPLIED,
7 // STATUTORY, OR OTHERWISE WITH RESPECT TO THE MATERIALS, AND EXPRESSLY
8 // DISCLAIMS ANY IMPLIED WARRANTIES OF NONINFRINGEMENT, MERCHANTABILITY, OR
9 // FITNESS FOR A PARTICULAR PURPOSE.
10 //
11 // NVIDIA Corporation assumes no responsibility for the consequences of use of
12 // such information or for any infringement of patents or other rights of third
13 // parties that may result from its use. No license is granted by implication or
14 // otherwise under any patent or patent rights of NVIDIA Corporation. No third
15 // party distribution is allowed unless expressly authorized by NVIDIA. Details
16 // are subject to change without notice. This code supersedes and replaces all
17 // information previously supplied. NVIDIA Corporation products are not
18 // authorized for use as critical components in life support devices or systems
19 // without express written approval of NVIDIA Corporation.
20 //
21 // Copyright (c) 2020-2021 NVIDIA Corporation. All rights reserved.
22 //
23 // NVIDIA Corporation and its licensors retain all intellectual property and
24 // proprietary rights in and to this software and related documentation and any
25 // modifications thereto. Any use, reproduction, disclosure or distribution of
26 // this software and related documentation without an express license agreement
27 // from NVIDIA Corporation 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 
91 
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
DW_API_PUBLIC dwStatus dwSensorData_returnPacket(const dwDataPacket *packet, dwSensorHandle_t hsensor)
Returns the data read to the internal pool.
struct dwSensorObject * dwSensorHandle_t
Handle representing a sensor.
Definition: Sensors.h:84
DW_API_PUBLIC dwStatus dwSensorData_readPacket(const dwDataPacket **packet, dwTime_t timeout, dwSensorHandle_t hsensor)
Reads the next packet.
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
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
NVIDIA DriveWorks API: Core Exports