DriveWorks SDK Reference
5.4.5418 Release
For Test and Development only

CANPlugin.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) 2019-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 
38 #ifndef DW_SENSORS_CAN_PLUGIN_H
39 #define DW_SENSORS_CAN_PLUGIN_H
40 
42 #include <dw/sensors/canbus/CAN.h>
43 
52 #ifdef __cplusplus
53 extern "C" {
54 #endif
55 
56 //readRawData should return always a dwCANMessage
57 
68 
87 typedef dwStatus (*dwSensorCANPlugin_setFilter)(const uint32_t* canIDs, const uint32_t* masks, uint16_t numCanIDs, dwSensorPluginSensorHandle_t sensor);
88 
110 
132 
149 
151 typedef struct
152 {
160 
171 
174 #ifdef __cplusplus
175 }
176 #endif
177 
178 #endif
dwStatus(* dwSensorCANPlugin_setFilter)(const uint32_t *canIDs, const uint32_t *masks, uint16_t numCanIDs, dwSensorPluginSensorHandle_t sensor)
Specifes a set of CAN IDs to be filtered.
Definition: CANPlugin.h:87
void * dwSensorPluginSensorHandle_t
dwSensorCANPlugin_send send
Definition: CANPlugin.h:157
NVIDIA DriveWorks: Common Sensor Plugin Interface
dwSensorCommonPluginFunctions common
Definition: CANPlugin.h:153
dwStatus(* dwSensorCANPlugin_parseDataBuffer)(dwCANMessage *output, dwSensorPluginSensorHandle_t sensor)
Processes the data previously passed via the &#39;dwSensorPlugin_pushData&#39; interface. ...
Definition: CANPlugin.h:147
dwStatus
Status definition.
Definition: Status.h:180
int64_t dwTime_t
Specifies a timestamp unit, in microseconds.
Definition: Types.h:82
Function Table exposing common plugin functions.
dwStatus dwSensorCANPlugin_getFunctionTable(dwSensorCANPluginFunctionTable *functions)
Gets the handle to functions defined in &#39;dwSensorCANPluginFunctionTable&#39; structure.
dwSensorCANPlugin_setFilter setFilter
Definition: CANPlugin.h:155
dwSensorCANPlugin_setUseHwTimestamps setUseHwTimestamps
Definition: CANPlugin.h:156
NVIDIA DriveWorks API: CAN
dwStatus(* dwSensorCANPlugin_clearFilter)(dwSensorPluginSensorHandle_t sensor)
Reset the filter set by &#39;dwSensorCANPlugin_setFilter&#39; interface.
Definition: CANPlugin.h:67
dwStatus(* dwSensorCANPlugin_send)(const dwCANMessage *msg, dwTime_t timeout_us, dwSensorPluginSensorHandle_t sensor)
Sends a message over the CAN bus within a specified timeout.
Definition: CANPlugin.h:131
dwStatus(* dwSensorCANPlugin_setUseHwTimestamps)(bool use, dwSensorPluginSensorHandle_t sensor)
Enables or disables hardware timestamp of the CAN messages.
Definition: CANPlugin.h:109
Function Table exposing CAN plugin functions.
Definition: CANPlugin.h:151
Holds a CAN package.
Definition: CAN.h:112
dwSensorCANPlugin_parseDataBuffer parseDataBuffer
Definition: CANPlugin.h:158
dwSensorCANPlugin_clearFilter clearFilter
Definition: CANPlugin.h:154