![]() |
DriveWorks SDK Reference| 0.6.67 Release |
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_MESSAGE_LEN 8 |
This module provides access to the CAN bus typically used for communication between different ECUs in a vehicle. More... | |
#define | DW_SENSORS_CAN_MAX_SIGNAL_NAME_LEN 32 |
Maximal length of a signal name definition. 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 *msg, dwTime_t timeout_us, dwSensorHandle_t sensor) |
Reads a CAN packet with a given timeout from the CAN bus. More... | |
DW_API_PUBLIC dwStatus | dwSensorCAN_sendMessage (const dwCANMessage *msg, dwTime_t timeout_us, dwSensorHandle_t 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 (dwBool flag, dwSensorHandle_t sensor) |
Enables or disables hardware timestamp of the CAN messages. More... | |