Loading [MathJax]/extensions/tex2jax.js
  • <xmp id="om0om">
  • <table id="om0om"><noscript id="om0om"></noscript></table>

  • DriveWorks SDK Reference
    5.20.37 Release
    For Test and Development only

    All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
    CAN.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) 2016-2024 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
    47#ifndef DW_SENSORS_CANBUS_CAN_H_
    48#define DW_SENSORS_CANBUS_CAN_H_
    49
    50#include <dw/core/base/Config.h>
    52#include <dw/core/base/Types.h>
    53
    56
    57#ifdef __cplusplus
    58extern "C" {
    59#endif
    60
    87
    115dwStatus dwSensorCAN_setMessageFilter(const uint32_t* ids, const uint32_t* masks,
    116 uint16_t num, dwSensorHandle_t sensor);
    117
    140dwStatus dwSensorCAN_readMessage(dwCANMessage* const msg, dwTime_t const timeoutUs, dwSensorHandle_t const sensor);
    141
    168 dwTime_t const timeoutUs, dwSensorHandle_t const sensor);
    169
    190dwStatus dwSensorCAN_processRawData(const uint8_t* data, size_t size,
    191 dwSensorHandle_t sensor);
    192
    211 dwSensorHandle_t sensor);
    212
    213#ifdef __cplusplus
    214}
    215#endif
    217#endif // DW_SENSORS_CANBUS_CAN_H_
    NVIDIA DriveWorks API: CAN types
    Holds a CAN package.
    Definition: CANTypes.h:108
    dwStatus
    Status definition.
    Definition: ErrorDefs.h:44
    NVIDIA DriveWorks API: Sensors
    NVIDIA DriveWorks API: Core Types
    NVIDIA DriveWorks API: Core Exports
    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.
    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.
    DW_API_PUBLIC dwStatus dwSensorCAN_popMessage(dwCANMessage *msg, dwSensorHandle_t sensor)
    Returns any CAN data previously processed through a RAW data stream.
    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.
    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.
    DW_API_PUBLIC dwStatus dwSensorCAN_setUseHwTimestamps(bool const flag, dwSensorHandle_t const sensor)
    Enables or disables hardware timestamp of the CAN messages.
    int64_t dwTime_t
    Specifies a timestamp unit, in microseconds.
    Definition: BasicTypes.h:65
    #define DW_API_PUBLIC
    Definition: Exports.h:56
    struct dwSensorObject * dwSensorHandle_t
    Handle representing a sensor.
    Definition: SensorTypes.h:75
    人人超碰97caoporen国产