DriveWorks SDK Reference
5.16.65 Release
For Test and Development only

SensorPlugin.h
Go to the documentation of this file.
1
2//
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) 2023 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
38#ifndef DW_SENSORS_SENSORLIVE_SENSORPLUGIN_H
39#define DW_SENSORS_SENSORLIVE_SENSORPLUGIN_H
40
41#include <dw/core/base/Types.h>
43
44#include <dw/sensors/Sensors.h>
46
47#ifdef __cplusplus
48extern "C" {
49#endif
50
63 char const* params, dwContextHandle_t ctx);
64
65#define SENSOR_PLUGIN_COMMON_FUNCTIONS \
66 dwSensorPlugin_initializeHandle initializeHandle; \
67 dwSensorPlugin_release release; \
68 dwSensorPlugin_start start; \
69 dwSensorPlugin_stop stop; \
70 dwSensorPlugin_reset reset; \
71 dwSensorPlugin_readRawData readRawData; \
72 dwSensorPlugin_returnRawData returnRawData
73
76{
79
93dwStatus dwSAL_registerSensorPlugin(dwSensorType sensorType, char const* codecMimeType,
94 void const* funcTable, dwSALHandle_t const sal);
95
96#ifdef __cplusplus
97}
98#endif
99
100#endif // DW_SENSORS_SENSORLIVE_SENSORPLUGIN_H
NVIDIA DriveWorks API: Core Methods
dwStatus
Status definition.
Definition: ErrorDefs.h:44
NVIDIA DriveWorks: Common Sensor Plugin Interface
DW_API_PUBLIC dwStatus dwSAL_registerSensorPlugin(dwSensorType sensorType, char const *codecMimeType, void const *funcTable, dwSALHandle_t const sal)
Register sensor plugin which works with live sensors.
dwStatus(* dwSensorPlugin_initializeHandle)(dwSensorPluginSensorHandle_t *handle, char const *params, dwContextHandle_t ctx)
Initialize a new handle to the sensor managed by the plugin module.
Definition: SensorPlugin.h:62
Function Table exposing sensor plugin functions.
Definition: SensorPlugin.h:76
NVIDIA DriveWorks API: Sensors
NVIDIA DriveWorks API: Core Types
struct dwContextObject * dwContextHandle_t
Context handle.
Definition: Context.h:86
#define DW_API_PUBLIC
Definition: Exports.h:56
void * dwSensorPluginSensorHandle_t
Plugin handle. Used in plugin public interfaces.
struct dwSALObject * dwSALHandle_t
Handle representing the Sensor Abstraction Layer interface.
Definition: Sensors.h:85
dwSensorType
Defines the type of sensors that are available in DriveWorks.
Definition: Sensors.h:120