DriveWorks SDK Reference
5.16.65 Release
For Test and Development only

CANPlugin.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) 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
43
52#ifdef __cplusplus
53extern "C" {
54#endif
55
56//readRawData should return always a dwCANMessage
57
68
87typedef dwStatus (*dwSensorCANPlugin_setFilter)(const uint32_t* canIDs, const uint32_t* masks, uint16_t numCanIDs, dwSensorPluginSensorHandle_t sensor);
88
110
132
149
151typedef struct
152{
160
171
174#ifdef __cplusplus
175}
176#endif
177
178#endif
NVIDIA DriveWorks API: CAN
dwStatus
Status definition.
Definition: ErrorDefs.h:44
NVIDIA DriveWorks: Common Sensor Plugin Interface
Holds a CAN package.
Definition: CAN.h:113
int64_t dwTime_t
Specifies a timestamp unit, in microseconds.
Definition: BasicTypes.h:65
dwSensorCANPlugin_setFilter setFilter
Definition: CANPlugin.h:155
dwSensorCANPlugin_parseDataBuffer parseDataBuffer
Definition: CANPlugin.h:158
dwSensorCANPlugin_send send
Definition: CANPlugin.h:157
dwSensorCANPlugin_setUseHwTimestamps setUseHwTimestamps
Definition: CANPlugin.h:156
dwSensorCANPlugin_clearFilter clearFilter
Definition: CANPlugin.h:154
dwSensorCommonPluginFunctions common
Definition: CANPlugin.h:153
dwStatus(* dwSensorCANPlugin_parseDataBuffer)(dwCANMessage *output, dwSensorPluginSensorHandle_t sensor)
Processes the data previously passed via the 'dwSensorPlugin_pushData' interface.
Definition: CANPlugin.h:147
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
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
dwStatus dwSensorCANPlugin_getFunctionTable(dwSensorCANPluginFunctionTable *functions)
Gets the handle to functions defined in 'dwSensorCANPluginFunctionTable' structure.
dwStatus(* dwSensorCANPlugin_clearFilter)(dwSensorPluginSensorHandle_t sensor)
Reset the filter set by 'dwSensorCANPlugin_setFilter' interface.
Definition: CANPlugin.h:67
Function Table exposing CAN plugin functions.
Definition: CANPlugin.h:152
void * dwSensorPluginSensorHandle_t
Plugin handle. Used in plugin public interfaces.
Function Table exposing common plugin functions.