NVIDIA DriveOS Linux NSR SDK API Reference

7.0.3.0 Release
RadarPlugin.h
Go to the documentation of this file.
1 /*
2  * SPDX-FileCopyrightText: Copyright (c) 2019-2024 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 
20 #ifndef DW_SENSORS_RADAR_PLUGIN_H
21 #define DW_SENSORS_RADAR_PLUGIN_H
22 
23 #include <dw/sensors/legacy/plugins/SensorCommonPlugin.h>
24 #include <dw/sensors/radar/RadarFullTypes.h>
25 
34 #ifdef __cplusplus
35 extern "C" {
36 #endif
37 
39 typedef struct
40 {
43 
46 
48  size_t maxPointsPerPacket[DW_RADAR_RETURN_TYPE_COUNT][DW_RADAR_RANGE_COUNT];
49 
52 
55 
59 
79 
91 
105 typedef dwStatus (*dwSensorRadarPlugin_validatePacket)(const char* rawData, size_t size, dwRadarScanType* messageType,
107 
120 
125 typedef struct
126 {
133 
148 
151 #ifdef __cplusplus
152 }
153 #endif
154 
155 #endif
dwSensorRadarPluginFunctionTable::getDecoderConstants
dwSensorRadarPlugin_getDecoderConstants getDecoderConstants
Definition: RadarPlugin.h:129
dwSensorRadarPluginFunctionTable::parseDataBuffer
dwSensorRadarPlugin_parseDataBuffer parseDataBuffer
Definition: RadarPlugin.h:128
dwRadarScanType
Defines the type of scan (combination of return type & range)
Definition: RadarTypes.h:189
dwSensorRadarPluginFunctionTable::setVehicleState
dwSensorRadarPlugin_setVehicleState setVehicleState
Definition: RadarPlugin.h:131
dwRadarProperties
Defines the properties of the radar.
Definition: RadarTypes.h:424
DW_RADAR_RANGE_COUNT
@ DW_RADAR_RANGE_COUNT
Count.
Definition: RadarTypes.h:69
dwSensorRadarPluginFunctionTable::common
dwSensorCommonPluginFunctions common
Definition: RadarPlugin.h:127
dwSensorRadarPlugin_getDecoderConstants
dwStatus(* dwSensorRadarPlugin_getDecoderConstants)(_dwSensorRadarDecoder_constants *constants, dwSensorPluginSensorHandle_t sensor)
Gets constants associated with this radar sensor.
Definition: RadarPlugin.h:90
dwSensorRadarPlugin_getFunctionTable
dwStatus dwSensorRadarPlugin_getFunctionTable(dwSensorRadarPluginFunctionTable *functions)
Returns the table of functions that are provided by the vendor-provided library for the sensor.
_dwSensorRadarDecoder_constants
Holds constants for a given radar.
Definition: RadarPlugin.h:39
dwSensorRadarPlugin_validatePacket
dwStatus(* dwSensorRadarPlugin_validatePacket)(const char *rawData, size_t size, dwRadarScanType *messageType, dwSensorPluginSensorHandle_t sensor)
Validates the raw data packet.
Definition: RadarPlugin.h:105
dwSensorRadarPluginFunctionTable::validatePacket
dwSensorRadarPlugin_validatePacket validatePacket
Definition: RadarPlugin.h:130
dwRadarScan
Defines the structure for a complete radar scan.
Definition: RadarFullTypes.h:42
_dwSensorRadarDecoder_constants::maxPayloadSize
size_t maxPayloadSize
Packet max payload size, in bytes.
Definition: RadarPlugin.h:45
sensor
DW_API_PUBLIC const dwSensorHandle_t sensor
Definition: Camera.h:714
dwSensorRadarPlugin_parseDataBuffer
dwStatus(* dwSensorRadarPlugin_parseDataBuffer)(dwRadarScan *output, const dwRadarScanType scanType, dwSensorPluginSensorHandle_t sensor)
Processes the data previously passed via the 'dwSensorPlugin_pushData' interface.
Definition: RadarPlugin.h:77
dwSensorPluginSensorHandle_t
void * dwSensorPluginSensorHandle_t
Plugin handle. Used in plugin public interfaces.
Definition: SensorPlugin.h:33
dwSensorRadarPlugin_setVehicleState
dwStatus(* dwSensorRadarPlugin_setVehicleState)(const dwRadarVehicleState *state, dwSensorPluginSensorHandle_t sensor)
Sends vehicle dynamics information to the radar.
Definition: RadarPlugin.h:119
DW_RADAR_RETURN_TYPE_COUNT
@ DW_RADAR_RETURN_TYPE_COUNT
Count.
Definition: RadarTypes.h:89
_dwSensorRadarDecoder_constants::properties
dwRadarProperties properties
Radar properties.
Definition: RadarPlugin.h:42
dwSensorCommonPluginFunctions
Function Table exposing common plugin functions.
Definition: SensorCommonPlugin.h:244
dwSensorRadarPluginFunctionTable
Holds the list of exported functions implemented by the vendor-provided library.
Definition: RadarPlugin.h:125
dwStatus
dwStatus
Status definition.
Definition: ErrorDefs.h:27
_dwSensorRadarDecoder_constants::maxPacketsPerScan
size_t maxPacketsPerScan
Maximum packets per scan.
Definition: RadarPlugin.h:51
dwRadarVehicleState
Defines the structure for reporting current vehicle dynamics state.
Definition: RadarTypes.h:383
_dwSensorRadarDecoder_constants::dynamicsSizeInBytes
size_t dynamicsSizeInBytes
Dynamics Size, in bytes.
Definition: RadarPlugin.h:57