38#ifndef DW_SENSORS_CAN_PLUGIN_H
39#define DW_SENSORS_CAN_PLUGIN_H
NVIDIA DriveWorks API: CAN
NVIDIA DriveWorks: Common Sensor Plugin Interface
dwStatus
Status definition.
int64_t dwTime_t
Specifies a timestamp unit, in microseconds.
dwSensorCANPlugin_setFilter setFilter
dwSensorCANPlugin_parseDataBuffer parseDataBuffer
dwSensorCANPlugin_send send
dwSensorCANPlugin_setUseHwTimestamps setUseHwTimestamps
dwSensorCANPlugin_clearFilter clearFilter
dwSensorCommonPluginFunctions common
dwStatus(* dwSensorCANPlugin_parseDataBuffer)(dwCANMessage *output, dwSensorPluginSensorHandle_t sensor)
Processes the data previously passed via the 'dwSensorPlugin_pushData' interface.
dwStatus(* dwSensorCANPlugin_send)(const dwCANMessage *msg, dwTime_t timeout_us, dwSensorPluginSensorHandle_t sensor)
Sends a message over the CAN bus within a specified timeout.
dwStatus(* dwSensorCANPlugin_setUseHwTimestamps)(bool use, dwSensorPluginSensorHandle_t sensor)
Enables or disables hardware timestamp of the CAN messages.
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.
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.
Function Table exposing CAN plugin functions.
void * dwSensorPluginSensorHandle_t
Function Table exposing common plugin functions.