NVIDIA DriveOS Linux NSR SDK API Reference

7.0.3.0 Release
CANPlugin.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_CAN_PLUGIN_H
21 #define DW_SENSORS_CAN_PLUGIN_H
22 
23 #include <dw/sensors/legacy/plugins/SensorCommonPlugin.h>
24 #include <dw/sensors/canbus/CAN.h>
25 
34 #ifdef __cplusplus
35 extern "C" {
36 #endif
37 
38 //readRawData should return always a dwCANMessage
39 
50 
69 typedef dwStatus (*dwSensorCANPlugin_setFilter)(const uint32_t* canIDs, const uint32_t* masks, uint16_t numCanIDs, dwSensorPluginSensorHandle_t sensor);
70 
92 
114 
131 
133 typedef struct
134 {
142 
157 
160 #ifdef __cplusplus
161 }
162 #endif
163 
164 #endif
dwSensorCANPluginFunctionTable::clearFilter
dwSensorCANPlugin_clearFilter clearFilter
Definition: CANPlugin.h:136
dwSensorCANPlugin_getFunctionTable
dwStatus dwSensorCANPlugin_getFunctionTable(dwSensorCANPluginFunctionTable *functions)
Gets the handle to functions defined in 'dwSensorCANPluginFunctionTable' structure.
dwSensorCANPlugin_setFilter
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:69
dwSensorCANPluginFunctionTable::parseDataBuffer
dwSensorCANPlugin_parseDataBuffer parseDataBuffer
Definition: CANPlugin.h:140
dwSensorCANPluginFunctionTable::send
dwSensorCANPlugin_send send
Definition: CANPlugin.h:139
dwCANMessage
Holds a CAN package.
Definition: CANTypes.h:89
dwSensorCANPluginFunctionTable::setUseHwTimestamps
dwSensorCANPlugin_setUseHwTimestamps setUseHwTimestamps
Definition: CANPlugin.h:138
dwSensorCANPluginFunctionTable::common
dwSensorCommonPluginFunctions common
Definition: CANPlugin.h:135
dwSensorCANPlugin_setUseHwTimestamps
dwStatus(* dwSensorCANPlugin_setUseHwTimestamps)(bool use, dwSensorPluginSensorHandle_t sensor)
Enables or disables hardware timestamp of the CAN messages.
Definition: CANPlugin.h:91
sensor
DW_API_PUBLIC const dwSensorHandle_t sensor
Definition: Camera.h:714
dwTime_t
int64_t dwTime_t
Specifies a timestamp unit, in microseconds.
Definition: BasicTypes.h:54
dwSensorCANPluginFunctionTable::setFilter
dwSensorCANPlugin_setFilter setFilter
Definition: CANPlugin.h:137
dwSensorCANPluginFunctionTable
Function Table exposing CAN plugin functions.
Definition: CANPlugin.h:133
dwSensorPluginSensorHandle_t
void * dwSensorPluginSensorHandle_t
Plugin handle. Used in plugin public interfaces.
Definition: SensorPlugin.h:33
dwSensorCANPlugin_parseDataBuffer
dwStatus(* dwSensorCANPlugin_parseDataBuffer)(dwCANMessage *output, dwSensorPluginSensorHandle_t sensor)
Processes the data previously passed via the 'dwSensorPlugin_pushData' interface.
Definition: CANPlugin.h:129
dwSensorCommonPluginFunctions
Function Table exposing common plugin functions.
Definition: SensorCommonPlugin.h:244
dwStatus
dwStatus
Status definition.
Definition: ErrorDefs.h:27
dwSensorCANPlugin_send
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:113
dwSensorCANPlugin_clearFilter
dwStatus(* dwSensorCANPlugin_clearFilter)(dwSensorPluginSensorHandle_t sensor)
Reset the filter set by 'dwSensorCANPlugin_setFilter' interface.
Definition: CANPlugin.h:49