DriveWorks SDK Reference
3.5.78 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-2020 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 
54 #ifdef __cplusplus
55 extern "C" {
56 #endif
57 
58 //readRawData should return always a dwCANMessage
59 
70 
89 typedef dwStatus (*dwSensorCANPlugin_setFilter)(const uint32_t* canIDs, const uint32_t* masks, uint16_t numCanIDs, dwSensorPluginSensorHandle_t sensor);
90 
112 
134 
136 typedef struct
137 {
143 
145 
156 
159 #ifdef __cplusplus
160 }
161 #endif
162 
163 #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:89
void * dwSensorPluginSensorHandle_t
dwSensorCANPlugin_send send
Definition: CANPlugin.h:142
NVIDIA DriveWorks: Common Sensor Plugin Interface
dwSensorCommonPluginFunctions common
Definition: CANPlugin.h:138
dwStatus
Status definition.
Definition: Status.h:178
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:140
dwSensorCANPlugin_setUseHwTimestamps setUseHwTimestamps
Definition: CANPlugin.h:141
NVIDIA DriveWorks API: CAN
dwStatus(* dwSensorCANPlugin_clearFilter)(dwSensorPluginSensorHandle_t sensor)
Reset the filter set by &#39;dwSensorCANPlugin_setFilter&#39; interface.
Definition: CANPlugin.h:69
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:133
dwStatus(* dwSensorCANPlugin_setUseHwTimestamps)(bool use, dwSensorPluginSensorHandle_t sensor)
Enables or disables hardware timestamp of the CAN messages.
Definition: CANPlugin.h:111
Function Table exposing CAN plugin functions.
Definition: CANPlugin.h:136
Holds a CAN package.
Definition: CAN.h:114
dwSensorCANPlugin_clearFilter clearFilter
Definition: CANPlugin.h:139