DriveWorks SDK Reference
4.0.0 Release
For Test and Development only

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