NVIDIA DriveWorks API: CAN
Description: This file defines the CAN sensor methods.
Definition in file CAN.h.
Go to the source code of this file.
| Data Structures | |
| struct | dwCANMessage | 
| Holds a CAN package.  More... | |
| Macros | |
| #define | DW_SENSORS_CAN_MAX_FILTERS 255 | 
| Maximum number of filter that can be specified.  More... | |
| #define | DW_SENSORS_CAN_MAX_ID_LEN 29 | 
| This module provides access to the CAN bus typically used for communication between different ECUs in a vehicle.  More... | |
| #define | DW_SENSORS_CAN_MAX_MESSAGE_LEN 64 | 
| Maximal length of the supported CAN payload [bytes].  More... | |
| Functions | |
| DW_API_PUBLIC dwStatus | dwSensorCAN_popMessage (dwCANMessage *msg, dwSensorHandle_t sensor) | 
| Returns any CAN data previously processed through a RAW data stream.  More... | |
| DW_API_PUBLIC dwStatus | dwSensorCAN_processRawData (const uint8_t *data, size_t size, dwSensorHandle_t sensor) | 
| Decodes CAN data previously read as a RAW data stream into internal queue.  More... | |
| DW_API_PUBLIC dwStatus | dwSensorCAN_readMessage (dwCANMessage *const msg, dwTime_t const timeoutUs, dwSensorHandle_t const sensor) | 
| Reads a CAN packet (raw data and process it) within a given timeout from the CAN bus.  More... | |
| DW_API_PUBLIC dwStatus | dwSensorCAN_sendMessage (const dwCANMessage *const msg, dwTime_t const timeoutUs, dwSensorHandle_t const sensor) | 
| Sends a message over the CAN bus within a specified timeout.  More... | |
| DW_API_PUBLIC dwStatus | dwSensorCAN_setMessageFilter (const uint32_t *ids, const uint32_t *masks, uint16_t num, dwSensorHandle_t sensor) | 
| Specifes a set of CAN IDs to be filtered.  More... | |
| DW_API_PUBLIC dwStatus | dwSensorCAN_setUseHwTimestamps (bool const flag, dwSensorHandle_t const sensor) | 
| Enables or disables hardware timestamp of the CAN messages.  More... | |