00001 /********************************************************************* 00002 * Software License Agreement (BSD License) 00003 * 00004 * Copyright (c) 2018-2019 New Eagle 00005 * Copyright (c) 2015-2018, Dataspeed Inc. 00006 * All rights reserved. 00007 * 00008 * Redistribution and use in source and binary forms, with or without 00009 * modification, are permitted provided that the following conditions 00010 * are met: 00011 * 00012 * * Redistributions of source code must retain the above copyright 00013 * notice, this list of conditions and the following disclaimer. 00014 * * Redistributions in binary form must reproduce the above 00015 * copyright notice, this list of conditions and the following 00016 * disclaimer in the documentation and/or other materials provided 00017 * with the distribution. 00018 * * Neither the name of Dataspeed Inc. nor the names of its 00019 * contributors may be used to endorse or promote products derived 00020 * from this software without specific prior written permission. 00021 * 00022 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 00023 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 00024 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS 00025 * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE 00026 * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, 00027 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 00028 * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 00029 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER 00030 * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 00031 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN 00032 * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 00033 * POSSIBILITY OF SUCH DAMAGE. 00034 *********************************************************************/ 00035 00036 #ifndef _DBW_PACIFICA_CAN_DISPATCH_H 00037 #define _DBW_PACIFICA_CAN_DISPATCH_H 00038 #include <stdint.h> 00039 00040 namespace dbw_pacifica_can 00041 { 00042 typedef enum { 00043 VIN_MUX_VIN0 = 0x00, 00044 VIN_MUX_VIN1 = 0x01, 00045 VIN_MUX_VIN2 = 0x02, 00046 } VinMux; 00047 00048 typedef enum { 00049 WHEEL_SPEED_MUX0 = 0x00, 00050 WHEEL_SPEED_MUX1 = 0x01, 00051 WHEEL_SPEED_MUX2 = 0x02, 00052 } WheelSpeedMux; 00053 00054 #undef BUILD_ASSERT 00055 00056 enum { 00057 ID_BRAKE_CMD = 0x2F04, 00058 ID_BRAKE_REPORT = 0x1F04, 00059 ID_ACCELERATOR_PEDAL_CMD = 0x2F01, 00060 ID_ACCEL_PEDAL_REPORT = 0x1F02, 00061 ID_STEERING_CMD = 0x2F03, 00062 ID_STEERING_REPORT = 0x1F03, 00063 ID_GEAR_CMD = 0x2F05, 00064 ID_GEAR_REPORT = 0x1F05, 00065 ID_REPORT_WHEEL_SPEED = 0x1F0B, 00066 ID_REPORT_IMU = 0x1F0A, 00067 ID_REPORT_TIRE_PRESSURE = 0x1f07, 00068 ID_REPORT_SURROUND = 0x1f10, 00069 ID_VIN = 0x1F08, 00070 ID_REPORT_DRIVER_INPUT = 0x1F0F, 00071 ID_REPORT_WHEEL_POSITION = 0x1F06, 00072 ID_MISC_REPORT = 0x1F01, 00073 ID_LOW_VOLTAGE_SYSTEM_REPORT = 0x1F11, 00074 ID_BRAKE_2_REPORT = 0x1F12, 00075 ID_STEERING_2_REPORT = 0x1F13, 00076 ID_OTHER_ACTUATORS_REPORT = 0x1F14, 00077 ID_FAULT_ACTION_REPORT = 0x1F15, 00078 ID_HMI_GLOBAL_ENABLE_REPORT = 0x3f01, 00079 }; 00080 00081 } //dbw_pacifica_can 00082 00083 #endif // _DBW_PACIFICA_CAN_DISPATCH_H