|
@@ -0,0 +1,4580 @@
|
|
|
+/**
|
|
|
+ * @file a07.h
|
|
|
+ *
|
|
|
+ * @brief This header file was generated by cantools version 40.2.3 Tue Jun 24 16:11:53 2025.
|
|
|
+ *
|
|
|
+ * @copyright Copyright (c) 2018-2019 Erik Moqvist
|
|
|
+ *
|
|
|
+ * @par License
|
|
|
+ * The MIT License (MIT)
|
|
|
+ *
|
|
|
+ * Permission is hereby granted, free of charge, to any person
|
|
|
+ * obtaining a copy of this software and associated documentation
|
|
|
+ * files (the "Software"), to deal in the Software without
|
|
|
+ * restriction, including without limitation the rights to use, copy,
|
|
|
+ * modify, merge, publish, distribute, sublicense, and/or sell copies
|
|
|
+ * of the Software, and to permit persons to whom the Software is
|
|
|
+ * furnished to do so, subject to the following conditions:
|
|
|
+ *
|
|
|
+ * The above copyright notice and this permission notice shall be
|
|
|
+ * included in all copies or substantial portions of the Software.
|
|
|
+ *
|
|
|
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
|
+ * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
|
+ * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
|
+ * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
|
|
|
+ * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
|
|
|
+ * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
|
|
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
|
+ * SOFTWARE.
|
|
|
+ */
|
|
|
+
|
|
|
+#ifndef A07_H
|
|
|
+#define A07_H
|
|
|
+
|
|
|
+#ifdef __cplusplus
|
|
|
+extern "C" {
|
|
|
+#endif
|
|
|
+
|
|
|
+#include <stdint.h>
|
|
|
+#include <stdbool.h>
|
|
|
+#include <stddef.h>
|
|
|
+
|
|
|
+#ifndef EINVAL
|
|
|
+# define EINVAL 22
|
|
|
+#endif
|
|
|
+
|
|
|
+/* Frame ids. */
|
|
|
+#define A07_ECU_1_B2_FRAME_ID (0x1b2u)
|
|
|
+#define A07_ECU_23_F_FRAME_ID (0x23fu)
|
|
|
+#define A07_ECU_23_C_FRAME_ID (0x23cu)
|
|
|
+#define A07_ECU_30_A_FRAME_ID (0x30au)
|
|
|
+#define A07_ECU_2_BF_FRAME_ID (0x2bfu)
|
|
|
+#define A07_ECU_2_CA_FRAME_ID (0x2cau)
|
|
|
+#define A07_ECU_372_FRAME_ID (0x372u)
|
|
|
+#define A07_HGW_1_CA_FRAME_ID (0x1cau)
|
|
|
+#define A07_HGW_169_FRAME_ID (0x169u)
|
|
|
+#define A07_HGW_178_FRAME_ID (0x178u)
|
|
|
+#define A07_HGW_188_FRAME_ID (0x188u)
|
|
|
+#define A07_HGW_280_FRAME_ID (0x280u)
|
|
|
+#define A07_HGW_213_FRAME_ID (0x213u)
|
|
|
+#define A07_HGW_257_FRAME_ID (0x257u)
|
|
|
+#define A07_HGW_186_FRAME_ID (0x186u)
|
|
|
+#define A07_HGW_58_FRAME_ID (0x58u)
|
|
|
+#define A07_HGW_2_DA_FRAME_ID (0x2dau)
|
|
|
+#define A07_HGW_290_FRAME_ID (0x290u)
|
|
|
+
|
|
|
+/* Frame lengths in bytes. */
|
|
|
+#define A07_ECU_1_B2_LENGTH (32u)
|
|
|
+#define A07_ECU_23_F_LENGTH (32u)
|
|
|
+#define A07_ECU_23_C_LENGTH (64u)
|
|
|
+#define A07_ECU_30_A_LENGTH (64u)
|
|
|
+#define A07_ECU_2_BF_LENGTH (32u)
|
|
|
+#define A07_ECU_2_CA_LENGTH (64u)
|
|
|
+#define A07_ECU_372_LENGTH (8u)
|
|
|
+#define A07_HGW_1_CA_LENGTH (64u)
|
|
|
+#define A07_HGW_169_LENGTH (64u)
|
|
|
+#define A07_HGW_178_LENGTH (8u)
|
|
|
+#define A07_HGW_188_LENGTH (8u)
|
|
|
+#define A07_HGW_280_LENGTH (8u)
|
|
|
+#define A07_HGW_213_LENGTH (64u)
|
|
|
+#define A07_HGW_257_LENGTH (8u)
|
|
|
+#define A07_HGW_186_LENGTH (8u)
|
|
|
+#define A07_HGW_58_LENGTH (8u)
|
|
|
+#define A07_HGW_2_DA_LENGTH (64u)
|
|
|
+#define A07_HGW_290_LENGTH (8u)
|
|
|
+
|
|
|
+/* Extended or standard frame types. */
|
|
|
+#define A07_ECU_1_B2_IS_EXTENDED (0)
|
|
|
+#define A07_ECU_23_F_IS_EXTENDED (0)
|
|
|
+#define A07_ECU_23_C_IS_EXTENDED (0)
|
|
|
+#define A07_ECU_30_A_IS_EXTENDED (0)
|
|
|
+#define A07_ECU_2_BF_IS_EXTENDED (0)
|
|
|
+#define A07_ECU_2_CA_IS_EXTENDED (0)
|
|
|
+#define A07_ECU_372_IS_EXTENDED (0)
|
|
|
+#define A07_HGW_1_CA_IS_EXTENDED (0)
|
|
|
+#define A07_HGW_169_IS_EXTENDED (0)
|
|
|
+#define A07_HGW_178_IS_EXTENDED (0)
|
|
|
+#define A07_HGW_188_IS_EXTENDED (0)
|
|
|
+#define A07_HGW_280_IS_EXTENDED (0)
|
|
|
+#define A07_HGW_213_IS_EXTENDED (0)
|
|
|
+#define A07_HGW_257_IS_EXTENDED (0)
|
|
|
+#define A07_HGW_186_IS_EXTENDED (0)
|
|
|
+#define A07_HGW_58_IS_EXTENDED (0)
|
|
|
+#define A07_HGW_2_DA_IS_EXTENDED (0)
|
|
|
+#define A07_HGW_290_IS_EXTENDED (0)
|
|
|
+
|
|
|
+/* Frame cycle times in milliseconds. */
|
|
|
+#define A07_ECU_1_B2_CYCLE_TIME_MS (10u)
|
|
|
+#define A07_ECU_23_F_CYCLE_TIME_MS (20u)
|
|
|
+#define A07_ECU_23_C_CYCLE_TIME_MS (20u)
|
|
|
+#define A07_ECU_30_A_CYCLE_TIME_MS (100u)
|
|
|
+#define A07_ECU_2_BF_CYCLE_TIME_MS (40u)
|
|
|
+#define A07_ECU_2_CA_CYCLE_TIME_MS (100u)
|
|
|
+#define A07_ECU_372_CYCLE_TIME_MS (40u)
|
|
|
+#define A07_HGW_1_CA_CYCLE_TIME_MS (10u)
|
|
|
+#define A07_HGW_169_CYCLE_TIME_MS (10u)
|
|
|
+#define A07_HGW_178_CYCLE_TIME_MS (10u)
|
|
|
+#define A07_HGW_188_CYCLE_TIME_MS (10u)
|
|
|
+#define A07_HGW_280_CYCLE_TIME_MS (10u)
|
|
|
+#define A07_HGW_213_CYCLE_TIME_MS (10u)
|
|
|
+#define A07_HGW_257_CYCLE_TIME_MS (20u)
|
|
|
+#define A07_HGW_186_CYCLE_TIME_MS (10u)
|
|
|
+#define A07_HGW_58_CYCLE_TIME_MS (20u)
|
|
|
+#define A07_HGW_2_DA_CYCLE_TIME_MS (100u)
|
|
|
+#define A07_HGW_290_CYCLE_TIME_MS (40u)
|
|
|
+
|
|
|
+/* Signal choices. */
|
|
|
+
|
|
|
+
|
|
|
+/* Frame Names. */
|
|
|
+#define A07_ECU_1_B2_NAME "ECU_1B2"
|
|
|
+#define A07_ECU_23_F_NAME "ECU_23F"
|
|
|
+#define A07_ECU_23_C_NAME "ECU_23C"
|
|
|
+#define A07_ECU_30_A_NAME "ECU_30A"
|
|
|
+#define A07_ECU_2_BF_NAME "ECU_2BF"
|
|
|
+#define A07_ECU_2_CA_NAME "ECU_2CA"
|
|
|
+#define A07_ECU_372_NAME "ECU_372"
|
|
|
+#define A07_HGW_1_CA_NAME "HGW_1CA"
|
|
|
+#define A07_HGW_169_NAME "HGW_169"
|
|
|
+#define A07_HGW_178_NAME "HGW_178"
|
|
|
+#define A07_HGW_188_NAME "HGW_188"
|
|
|
+#define A07_HGW_280_NAME "HGW_280"
|
|
|
+#define A07_HGW_213_NAME "HGW_213"
|
|
|
+#define A07_HGW_257_NAME "HGW_257"
|
|
|
+#define A07_HGW_186_NAME "HGW_186"
|
|
|
+#define A07_HGW_58_NAME "HGW_58"
|
|
|
+#define A07_HGW_2_DA_NAME "HGW_2DA"
|
|
|
+#define A07_HGW_290_NAME "HGW_290"
|
|
|
+
|
|
|
+/* Signal Names. */
|
|
|
+#define A07_ECU_1_B2_ACC_MOTOR_TORQUE_MAX_LIMIT_REQUEST_NAME "ACC_MotorTorqueMaxLimitRequest"
|
|
|
+#define A07_ECU_1_B2_ACC_MOTOR_TORQUE_MIN_LIMIT_REQUEST_NAME "ACC_MotorTorqueMinLimitRequest"
|
|
|
+#define A07_ECU_1_B2_ACC_LAT_ANG_REQ_NAME "ACC_LatAngReq"
|
|
|
+#define A07_ECU_1_B2_ACC_LAT_ANG_REQ_ACTIVE_NAME "ACC_LatAngReqActive"
|
|
|
+#define A07_ECU_23_F_APA_ERROR_STATUS_NAME "APA_ErrorStatus"
|
|
|
+#define A07_ECU_23_F_APA_STEERING_ANGLE_REQ_PROTECTION_NAME "APA_SteeringAngleReqProtection"
|
|
|
+#define A07_ECU_23_F_APA_STEERING_ANGLE_REQ_NAME "APA_SteeringAngleReq"
|
|
|
+#define A07_ECU_23_C_ACC_ACC_TARGET_ACCELERATION_NAME "ACC_ACCTargetAcceleration"
|
|
|
+#define A07_ECU_23_C_APA_FUNCTION_ON_OFF_STS_NAME "APA_FunctionOnOffSts"
|
|
|
+#define A07_ECU_23_C_ACC_CDD_ACTIVE_NAME "ACC_CDDActive"
|
|
|
+#define A07_ECU_23_C_ACC_DRIVEOFF_REQUEST_NAME "ACC_Driveoff_Request"
|
|
|
+#define A07_ECU_23_C_ACC_ACC_MODE_NAME "ACC_ACCMode"
|
|
|
+#define A07_ECU_23_C_ACC_ACC_TRQ_REQ_ACTIVE_NAME "ACC_AccTrqReqActive"
|
|
|
+#define A07_ECU_23_C_ACC_ACC_TRQ_REQ_NAME "ACC_AccTrqReq"
|
|
|
+#define A07_ECU_23_C_ADC_WORK_MODE_NAME "ADC_WorkMode"
|
|
|
+#define A07_ECU_23_C_APA_EP_BREQUEST_NAME "APA_EPBrequest"
|
|
|
+#define A07_ECU_23_C_APA_EP_BREQUEST_VALID_NAME "APA_EPBrequestValid"
|
|
|
+#define A07_ECU_23_C_APA_ESP_BRAKE_FUNCTION_MODE_NAME "APA_ESP_BrakeFunctionMode"
|
|
|
+#define A07_ECU_23_C_APA_TARGET_ACCELERATION_VALID_NAME "APA_TargetAccelerationValid"
|
|
|
+#define A07_ECU_23_C_APA_TRANS_PRND_SHIFT_ENABLE_NAME "APA_TransPRNDShiftEnable"
|
|
|
+#define A07_ECU_23_C_APA_TRANS_PRND_SHIFT_REQUEST_NAME "APA_TransPRNDShiftRequest"
|
|
|
+#define A07_ECU_23_C_APA_TRANS_PRND_SHIFT_REQ_VALID_NAME "APA_TransPRNDShiftReqValid"
|
|
|
+#define A07_ECU_23_C_APA_VCU_READY_REQ_NAME "APA_VCUReadyReq"
|
|
|
+#define A07_ECU_30_A_ADS_UDLC_TURN_LIGHT_REQ_NAME "ADS_UDLCTurnLightReq"
|
|
|
+#define A07_ECU_2_BF_APA_BCM_HORN_COMMAND_NAME "APA_BCMHornCommand"
|
|
|
+#define A07_ECU_2_CA_CDC_AUTO_HEAD_LI_SET_NAME "CdcAutoHeadLiSet"
|
|
|
+#define A07_ECU_2_CA_CDC_DRVR_SLD_FWD_ST_NAME "CdcDrvrSldFwdSt"
|
|
|
+#define A07_ECU_2_CA_CDC_DRVR_SLD_BACKW_ST_NAME "CdcDrvrSldBackwSt"
|
|
|
+#define A07_ECU_2_CA_CDC_DRVR_RE_UPWD_ST_NAME "CdcDrvrReUpwdSt"
|
|
|
+#define A07_ECU_2_CA_CDC_DRVR_RE_DWNWD_ST_NAME "CdcDrvrReDwnwdSt"
|
|
|
+#define A07_ECU_2_CA_CDC_DRVR_BACK_FWD_ST_NAME "CdcDrvrBackFwdSt"
|
|
|
+#define A07_ECU_2_CA_CDC_DRVR_BACK_BACK_ST_NAME "CdcDrvrBackBackSt"
|
|
|
+#define A07_ECU_2_CA_CDC_RE_MIRR_FOLD_REQ_NAME "CdcReMirrFoldReq"
|
|
|
+#define A07_ECU_2_CA_CDC_CENTRAL_CTR_RIGHT_REAR_WINDOW_NAME "CdcCentralCtrRightRearWindow"
|
|
|
+#define A07_ECU_2_CA_CDC_CENTRAL_CTR_LEFT_REAR_WINDOW_NAME "CdcCentralCtrLeftRearWindow"
|
|
|
+#define A07_ECU_2_CA_CDC_CENTRAL_CTR_PASSENGER_WINDOW_NAME "CdcCentralCtrPassengerWindow"
|
|
|
+#define A07_ECU_2_CA_CDC_CENTRAL_CTR_DRIVER_WINDOW_NAME "CdcCentralCtrDriverWindow"
|
|
|
+#define A07_ECU_2_CA_CDC_LEFT_RIGHT_MIRROR_SET_STS_NAME "CdcLeftRightMirrorSetSts"
|
|
|
+#define A07_ECU_2_CA_CDC_DRVR_T_SET_NAME "CdcDrvrTSet"
|
|
|
+#define A07_ECU_2_CA_CDC_FRNT_WIND_LVL_SET_NAME "CdcFrntWindLvlSet"
|
|
|
+#define A07_ECU_2_CA_CDC_FRONT_AC_OFF_SET_NAME "CdcFrontAcOffSet"
|
|
|
+#define A07_ECU_372_CDC_MIRR_UP_KEY_STS_NAME "CdcMirrUpKeySts"
|
|
|
+#define A07_ECU_372_CDC_MIRR_DOWN_KEY_STS_NAME "CdcMirrDownKeySts"
|
|
|
+#define A07_ECU_372_CDC_MIRR_RI_TURN_KEY_STS_NAME "CdcMirrRiTurnKeySts"
|
|
|
+#define A07_ECU_372_CDC_MIRR_LE_TURN_KEY_STS_NAME "CdcMirrLeTurnKeySts"
|
|
|
+#define A07_HGW_1_CA_WHL_SPD_RI_RE_DATA_VLD_NAME "WhlSpdRiReDataVld"
|
|
|
+#define A07_HGW_1_CA_WHL_SPD_RI_RE_DATA_NAME "WhlSpdRiReData"
|
|
|
+#define A07_HGW_1_CA_WHL_SPD_LE_RE_DATA_VLD_NAME "WhlSpdLeReDataVld"
|
|
|
+#define A07_HGW_1_CA_WHL_SPD_LE_RE_DATA_NAME "WhlSpdLeReData"
|
|
|
+#define A07_HGW_1_CA_ESP_VEH_SPD_VLD_NAME "EspVehSpdVld"
|
|
|
+#define A07_HGW_1_CA_ESP_VEH_SPD_NAME "EspVehSpd"
|
|
|
+#define A07_HGW_1_CA_WHL_SPD_RI_FRNT_DATA_VLD_NAME "WhlSpdRiFrntDataVld"
|
|
|
+#define A07_HGW_1_CA_WHL_SPD_RI_FRNT_DATA_NAME "WhlSpdRiFrntData"
|
|
|
+#define A07_HGW_1_CA_WHL_SPD_LE_FRNT_DATA_VLD_NAME "WhlSpdLeFrntDataVld"
|
|
|
+#define A07_HGW_1_CA_WHL_SPD_LE_FRNT_DATA_NAME "WhlSpdLeFrntData"
|
|
|
+#define A07_HGW_169_VCU_GEAR_POSN_NAME "VcuGearPosn"
|
|
|
+#define A07_HGW_169_VCU_PT_TQ_REAL_VLD_NAME "VcuPtTqRealVld"
|
|
|
+#define A07_HGW_169_VCU_PT_TQ_REQ_AVL_NAME "VcuPtTqReqAvl"
|
|
|
+#define A07_HGW_169_VCU_SHIFT_LVL_POSN_NAME "VcuShiftLvlPosn"
|
|
|
+#define A07_HGW_169_VCU_PT_TQ_REAL_NAME "VcuPtTqReal"
|
|
|
+#define A07_HGW_169_VCU_RDY_STS_NAME "VcuRdySts"
|
|
|
+#define A07_HGW_178_EPS_ACTUAL_MOTOR_TORQ_NAME "EPS_ActualMotorTorq"
|
|
|
+#define A07_HGW_178_EPS_MAX_SAFETY_TORSION_BAR_TORQ_NAME "EPS_MaxSafetyTorsionBarTorq"
|
|
|
+#define A07_HGW_178_EPS_MIN_SAFETY_TORSION_BAR_TORQ_NAME "EPS_MinSafetyTorsionBarTorq"
|
|
|
+#define A07_HGW_178_EPS_ACTUAL_TORSION_BAR_TORQ_NAME "EPS_ActualTorsionBarTorq"
|
|
|
+#define A07_HGW_188_EPS_SAS_STEER_AG_NAME "EpsSasSteerAg"
|
|
|
+#define A07_HGW_188_EPS_STEER_AG_RATE_NAME "EpsSteerAgRate"
|
|
|
+#define A07_HGW_188_EPS_SAS_STEER_AG_VLD_NAME "EpsSasSteerAgVld"
|
|
|
+#define A07_HGW_188_EPS_SAS_CAL_STS_NAME "EpsSasCalSts"
|
|
|
+#define A07_HGW_280_ESP_LONG_ACCEL_NAME "ESP_LongAccel"
|
|
|
+#define A07_HGW_213_ESP_BRAKE_FORCE_NAME "ESP_BrakeForce"
|
|
|
+#define A07_HGW_213_ESP_CDD_ACTIVE_APA_NAME "ESP_CDD_Active_APA"
|
|
|
+#define A07_HGW_213_ESP_CDD_AVAILABLE_APA_NAME "ESP_CDD_Available_APA"
|
|
|
+#define A07_HGW_257_EPS_IACC_ABORTREASON_NAME "EPS_IACC_abortreason"
|
|
|
+#define A07_HGW_186_EPS_MEASURED_TORSION_BAR_TORQUE_NAME "EPS_MeasuredTorsionBarTorque"
|
|
|
+#define A07_HGW_186_EPS_LAT_CTRL_ACTIVE_NAME "EPS_LatCtrlActive"
|
|
|
+#define A07_HGW_186_EPS_LAT_CTRL_AVAILABILITY_STATUS_NAME "EPS_LatCtrlAvailabilityStatus"
|
|
|
+#define A07_HGW_58_SRS_CRASH_OUTP_STS_NAME "SrsCrashOutpSts"
|
|
|
+#define A07_HGW_58_SRS_DRVR_BUC_SWT_STS_NAME "SrsDrvrBucSwtSts"
|
|
|
+#define A07_HGW_58_SRS_PASS_BUC_SWT_STS_NAME "SrsPassBucSwtSts"
|
|
|
+#define A07_HGW_58_SRS_LE_RE_BUC_SWT_STS_NAME "SrsLeReBucSwtSts"
|
|
|
+#define A07_HGW_58_SRS_MID_RE_BUC_SWT_STS_NAME "SrsMidReBucSwtSts"
|
|
|
+#define A07_HGW_58_SRS_RI_RE_BUC_SWT_STS_NAME "SrsRiReBucSwtSts"
|
|
|
+#define A07_HGW_2_DA_CDC_AUTO_HEAD_LI_SET_NAME "CdcAutoHeadLiSet"
|
|
|
+#define A07_HGW_2_DA_CDC_TOT_MILG_NAME "CdcTotMilg"
|
|
|
+#define A07_HGW_2_DA_HU_SENTRY_MODE_ST_NAME "HU_SentryModeSt"
|
|
|
+#define A07_HGW_290_BCM_TURN_INDCR_LE_NAME "BcmTurnIndcrLe"
|
|
|
+#define A07_HGW_290_BCM_TURN_INDCR_RI_NAME "BcmTurnIndcrRi"
|
|
|
+#define A07_HGW_290_BCM_POSN_LMP_STS_NAME "BcmPosnLmpSts"
|
|
|
+#define A07_HGW_290_BCM_DRVR_DOOR_STS_NAME "BcmDrvrDoorSts"
|
|
|
+#define A07_HGW_290_BCM_PASS_DOOR_STS_NAME "BcmPassDoorSts"
|
|
|
+#define A07_HGW_290_BCM_LE_RE_DOOR_STS_NAME "BcmLeReDoorSts"
|
|
|
+#define A07_HGW_290_BCM_RI_RE_DOOR_STS_NAME "BcmRiReDoorSts"
|
|
|
+#define A07_HGW_290_BDC_DRVR_STS_NAME "BdcDrvrSts"
|
|
|
+#define A07_HGW_290_BCM_PASS_DOOR_LCK_STS_NAME "BcmPassDoorLckSts"
|
|
|
+#define A07_HGW_290_BCM_PWR_STS_FB_NAME "BcmPwrStsFb"
|
|
|
+#define A07_HGW_290_BCM_DRVR_DOOR_LCK_STS_NAME "BcmDrvrDoorLckSts"
|
|
|
+
|
|
|
+/**
|
|
|
+ * Signals in message ECU_1B2.
|
|
|
+ *
|
|
|
+ * CANFD
|
|
|
+ *
|
|
|
+ * All signal values are as on the CAN bus.
|
|
|
+ */
|
|
|
+struct a07_ecu_1_b2_t {
|
|
|
+ /**
|
|
|
+ * ?\B7\BD\CF\F2\C5\CC\D7\F3\B4\F2Ϊ\D5\FD\A1\A3
|
|
|
+ * ?\D4\DAEPSECU\BF\AAʼ\D6\FA\C1\A6֮ǰ\A1\A2Initialֵ\CA\E4\B3\F6Ϊ(0)\A1\A3
|
|
|
+ * ?0x7FF:Reserved
|
|
|
+ *
|
|
|
+ * Range: 0..2046 (-20.48..20.44 Nm)
|
|
|
+ * Scale: 0.02
|
|
|
+ * Offset: -20.48
|
|
|
+ */
|
|
|
+ uint16_t acc_motor_torque_max_limit_request;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * ?\B7\BD\CF\F2\C5\CC\D7\F3\B4\F2Ϊ\D5\FD\A1\A3
|
|
|
+ * ?\D4\DAEPSECU\BF\AAʼ\D6\FA\C1\A6֮ǰ\A1\A2Initialֵ\CA\E4\B3\F6Ϊ(0)\A1\A3
|
|
|
+ * ?0x7FF:Reserved
|
|
|
+ *
|
|
|
+ * Range: 0..2046 (-20.48..20.44 Nm)
|
|
|
+ * Scale: 0.02
|
|
|
+ * Offset: -20.48
|
|
|
+ */
|
|
|
+ uint16_t acc_motor_torque_min_limit_request;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * \B7\BD\CF\F2\C5\CC\CD\F9\C1\E3\B5\E3\D7\F3תΪ\D5\FD\A3\AC\C1\E3\B5\E3\D3\D2תΪ\B8\BA
|
|
|
+ * 0x384A-3FFF:Reserved
|
|
|
+ *
|
|
|
+ * Range: 0..14400 (-720.0..720.0 degree)
|
|
|
+ * Scale: 0.1
|
|
|
+ * Offset: -720.0
|
|
|
+ */
|
|
|
+ uint16_t acc_lat_ang_req;
|
|
|
+
|
|
|
+ /**
|
|
|
+ *
|
|
|
+ *
|
|
|
+ * Range: 0..1 (0.0..1.0 -)
|
|
|
+ * Scale: 1
|
|
|
+ * Offset: 0
|
|
|
+ */
|
|
|
+ uint8_t acc_lat_ang_req_active;
|
|
|
+};
|
|
|
+
|
|
|
+/**
|
|
|
+ * Signals in message ECU_23F.
|
|
|
+ *
|
|
|
+ * CANFD
|
|
|
+ *
|
|
|
+ * All signal values are as on the CAN bus.
|
|
|
+ */
|
|
|
+struct a07_ecu_23_f_t {
|
|
|
+ /**
|
|
|
+ * \BC\B4PAS_PSC_Status
|
|
|
+ *
|
|
|
+ * Range: 0..1 (0.0..1.0 -)
|
|
|
+ * Scale: 1
|
|
|
+ * Offset: 0
|
|
|
+ */
|
|
|
+ uint8_t apa_error_status;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * PAS_PSC_EPS_Control_Requ
|
|
|
+ * est
|
|
|
+ *
|
|
|
+ * Range: 0..3 (0.0..3.0 -)
|
|
|
+ * Scale: 1
|
|
|
+ * Offset: 0
|
|
|
+ */
|
|
|
+ uint8_t apa_steering_angle_req_protection;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * \BC\B4PAS_PSC_SetSteeringWheel
|
|
|
+ * Ang
|
|
|
+ *
|
|
|
+ * Range: -7800..7800 (-780.0..780.0 degree)
|
|
|
+ * Scale: 0.1
|
|
|
+ * Offset: 0.0
|
|
|
+ */
|
|
|
+ int16_t apa_steering_angle_req;
|
|
|
+};
|
|
|
+
|
|
|
+/**
|
|
|
+ * Signals in message ECU_23C.
|
|
|
+ *
|
|
|
+ * CANFD
|
|
|
+ *
|
|
|
+ * All signal values are as on the CAN bus.
|
|
|
+ */
|
|
|
+struct a07_ecu_23_c_t {
|
|
|
+ /**
|
|
|
+ * ACC target acceleration for transmission.
|
|
|
+ *
|
|
|
+ * Range: 0..255 (-5.0..7.75 m/s2)
|
|
|
+ * Scale: 0.05
|
|
|
+ * Offset: -5.0
|
|
|
+ */
|
|
|
+ uint8_t acc_acc_target_acceleration;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * (\CD\F8\B9ؼ\D3\C3ܷ\A2\CB͸\F8RFBT)
|
|
|
+ * APA\C5\E4\D6÷\A2\CBͷ\BDΪAPA
|
|
|
+ *
|
|
|
+ * Range: 0..31 (0.0..31.0 -)
|
|
|
+ * Scale: 1
|
|
|
+ * Offset: 0
|
|
|
+ */
|
|
|
+ uint8_t apa_function_on_off_sts;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * Range: 0..1 (0.0..1.0 -)
|
|
|
+ * Scale: 1
|
|
|
+ * Offset: 0
|
|
|
+ */
|
|
|
+ uint8_t acc_cdd_active;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * Range: 0..1 (0.0..1.0 -)
|
|
|
+ * Scale: 1
|
|
|
+ * Offset: 0
|
|
|
+ */
|
|
|
+ uint8_t acc_driveoff_request;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * Range: 0..7 (0.0..7.0 -)
|
|
|
+ * Scale: 1
|
|
|
+ * Offset: 0
|
|
|
+ */
|
|
|
+ uint8_t acc_acc_mode;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * Range: 0..1 (0.0..1.0 -)
|
|
|
+ * Scale: 1
|
|
|
+ * Offset: 0
|
|
|
+ */
|
|
|
+ uint8_t acc_acc_trq_req_active;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * REVר\D3\C3
|
|
|
+ *
|
|
|
+ * Range: 0..2000 (-5000.0..5000.0 NM)
|
|
|
+ * Scale: 5
|
|
|
+ * Offset: -5000
|
|
|
+ */
|
|
|
+ uint16_t acc_acc_trq_req;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * Range: 0..3 (0.0..3.0 -)
|
|
|
+ * Scale: 1
|
|
|
+ * Offset: 0
|
|
|
+ */
|
|
|
+ uint8_t adc_work_mode;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * APA\C5\E4\D6÷\A2\CBͷ\BDΪAPA
|
|
|
+ *
|
|
|
+ * Range: 0..3 (0.0..3.0 -)
|
|
|
+ * Scale: 1
|
|
|
+ * Offset: 0
|
|
|
+ */
|
|
|
+ uint8_t apa_ep_brequest;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * APA\C5\E4\D6÷\A2\CBͷ\BDΪAPA
|
|
|
+ *
|
|
|
+ * Range: 0..1 (0.0..1.0 -)
|
|
|
+ * Scale: 1
|
|
|
+ * Offset: 0
|
|
|
+ */
|
|
|
+ uint8_t apa_ep_brequest_valid;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * Range: 0..7 (0.0..7.0 -)
|
|
|
+ * Scale: 1
|
|
|
+ * Offset: 0
|
|
|
+ */
|
|
|
+ uint8_t apa_esp_brake_function_mode;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * Range: 0..1 (0.0..1.0 NA)
|
|
|
+ * Scale: 1
|
|
|
+ * Offset: 0
|
|
|
+ */
|
|
|
+ uint8_t apa_target_acceleration_valid;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * Range: 0..1 (0.0..1.0 -)
|
|
|
+ * Scale: 1
|
|
|
+ * Offset: 0
|
|
|
+ */
|
|
|
+ uint8_t apa_trans_prnd_shift_enable;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * Range: 0..7 (0.0..7.0 -)
|
|
|
+ * Scale: 1
|
|
|
+ * Offset: 0
|
|
|
+ */
|
|
|
+ uint8_t apa_trans_prnd_shift_request;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * Range: 0..1 (0.0..1.0 -)
|
|
|
+ * Scale: 1
|
|
|
+ * Offset: 0
|
|
|
+ */
|
|
|
+ uint8_t apa_trans_prnd_shift_req_valid;
|
|
|
+
|
|
|
+ /**
|
|
|
+ *
|
|
|
+ *
|
|
|
+ * Range: 0..1 (0.0..1.0 -)
|
|
|
+ * Scale: 1
|
|
|
+ * Offset: 0
|
|
|
+ */
|
|
|
+ uint8_t apa_vcu_ready_req;
|
|
|
+};
|
|
|
+
|
|
|
+/**
|
|
|
+ * Signals in message ECU_30A.
|
|
|
+ *
|
|
|
+ * CANFD
|
|
|
+ *
|
|
|
+ * All signal values are as on the CAN bus.
|
|
|
+ */
|
|
|
+struct a07_ecu_30_a_t {
|
|
|
+ /**
|
|
|
+ *
|
|
|
+ *
|
|
|
+ * Range: 0..7 (0.0..7.0 -)
|
|
|
+ * Scale: 1
|
|
|
+ * Offset: 0
|
|
|
+ */
|
|
|
+ uint8_t ads_udlc_turn_light_req;
|
|
|
+};
|
|
|
+
|
|
|
+/**
|
|
|
+ * Signals in message ECU_2BF.
|
|
|
+ *
|
|
|
+ * CANFD
|
|
|
+ *
|
|
|
+ * All signal values are as on the CAN bus.
|
|
|
+ */
|
|
|
+struct a07_ecu_2_bf_t {
|
|
|
+ /**
|
|
|
+ * APA\C5\E4\D6÷\A2\CBͷ\BDΪAPA
|
|
|
+ *
|
|
|
+ * Range: 0..3 (0.0..3.0 -)
|
|
|
+ * Scale: 1
|
|
|
+ * Offset: 0
|
|
|
+ */
|
|
|
+ uint8_t apa_bcm_horn_command;
|
|
|
+};
|
|
|
+
|
|
|
+/**
|
|
|
+ * Signals in message ECU_2CA.
|
|
|
+ *
|
|
|
+ * CANFD
|
|
|
+ *
|
|
|
+ * All signal values are as on the CAN bus.
|
|
|
+ */
|
|
|
+struct a07_ecu_2_ca_t {
|
|
|
+ /**
|
|
|
+ * 600
|
|
|
+ *
|
|
|
+ * Range: 0..7 (0.0..7.0 -)
|
|
|
+ * Scale: 1
|
|
|
+ * Offset: 0
|
|
|
+ */
|
|
|
+ uint8_t cdc_auto_head_li_set;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 600
|
|
|
+ *
|
|
|
+ * Range: 0..1 (0.0..1.0 -)
|
|
|
+ * Scale: 1
|
|
|
+ * Offset: 0
|
|
|
+ */
|
|
|
+ uint8_t cdc_drvr_sld_fwd_st;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 600
|
|
|
+ *
|
|
|
+ * Range: 0..1 (0.0..1.0 -)
|
|
|
+ * Scale: 1
|
|
|
+ * Offset: 0
|
|
|
+ */
|
|
|
+ uint8_t cdc_drvr_sld_backw_st;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 600
|
|
|
+ *
|
|
|
+ * Range: 0..1 (0.0..1.0 -)
|
|
|
+ * Scale: 1
|
|
|
+ * Offset: 0
|
|
|
+ */
|
|
|
+ uint8_t cdc_drvr_re_upwd_st;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 600
|
|
|
+ *
|
|
|
+ * Range: 0..1 (0.0..1.0 -)
|
|
|
+ * Scale: 1
|
|
|
+ * Offset: 0
|
|
|
+ */
|
|
|
+ uint8_t cdc_drvr_re_dwnwd_st;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 600
|
|
|
+ *
|
|
|
+ * Range: 0..1 (0.0..1.0 -)
|
|
|
+ * Scale: 1
|
|
|
+ * Offset: 0
|
|
|
+ */
|
|
|
+ uint8_t cdc_drvr_back_fwd_st;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 600
|
|
|
+ *
|
|
|
+ * Range: 0..1 (0.0..1.0 -)
|
|
|
+ * Scale: 1
|
|
|
+ * Offset: 0
|
|
|
+ */
|
|
|
+ uint8_t cdc_drvr_back_back_st;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 601
|
|
|
+ *
|
|
|
+ * Range: 0..3 (0.0..3.0 -)
|
|
|
+ * Scale: 1
|
|
|
+ * Offset: 0
|
|
|
+ */
|
|
|
+ uint8_t cdc_re_mirr_fold_req;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 601
|
|
|
+ *
|
|
|
+ * Range: 0..15 (0.0..15.0 -)
|
|
|
+ * Scale: 1
|
|
|
+ * Offset: 0
|
|
|
+ */
|
|
|
+ uint8_t cdc_central_ctr_right_rear_window;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 601
|
|
|
+ *
|
|
|
+ * Range: 0..15 (0.0..15.0 -)
|
|
|
+ * Scale: 1
|
|
|
+ * Offset: 0
|
|
|
+ */
|
|
|
+ uint8_t cdc_central_ctr_left_rear_window;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 601
|
|
|
+ *
|
|
|
+ * Range: 0..15 (0.0..15.0 -)
|
|
|
+ * Scale: 1
|
|
|
+ * Offset: 0
|
|
|
+ */
|
|
|
+ uint8_t cdc_central_ctr_passenger_window;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 601
|
|
|
+ *
|
|
|
+ * Range: 0..15 (0.0..15.0 -)
|
|
|
+ * Scale: 1
|
|
|
+ * Offset: 0
|
|
|
+ */
|
|
|
+ uint8_t cdc_central_ctr_driver_window;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 602
|
|
|
+ *
|
|
|
+ * Range: 0..3 (0.0..3.0 -)
|
|
|
+ * Scale: 1
|
|
|
+ * Offset: 0
|
|
|
+ */
|
|
|
+ uint8_t cdc_left_right_mirror_set_sts;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * \D7Ô¶\AF\BFÕµ\F7\A3\BA0x00:noreq
|
|
|
+ * 0x01:LO
|
|
|
+ * 0x02\A1\AB0x1E:18~32\A1\E6
|
|
|
+ * 0x1F:HI
|
|
|
+ * 0x20:upreq
|
|
|
+ * 0x21:downreq
|
|
|
+ * 0x22\A1\AB0x3E:reversed
|
|
|
+ * 0x3F:Invalid
|
|
|
+ * \CAÖ¶\AF\BFÕµ\F7\A3\BA0x00:noreq
|
|
|
+ *
|
|
|
+ * 0x01\A1\AB0x10:Level1\A1\ABLevel16
|
|
|
+ * 0x11\A1\AB0x1F:reversed
|
|
|
+ * 0x20:upreq
|
|
|
+ * 0x21:downreq
|
|
|
+ * 0x22\A1\AB0x3E:reversed
|
|
|
+ * 0x3F:Invalid
|
|
|
+ *
|
|
|
+ * Range: 0..63 (17.0..48.5 -)
|
|
|
+ * Scale: 0.5
|
|
|
+ * Offset: 17.0
|
|
|
+ */
|
|
|
+ uint8_t cdc_drvr_t_set;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 0xB-0xF:reserve
|
|
|
+ *
|
|
|
+ * Range: 0..15 (0.0..15.0 -)
|
|
|
+ * Scale: 1
|
|
|
+ * Offset: 0
|
|
|
+ */
|
|
|
+ uint8_t cdc_frnt_wind_lvl_set;
|
|
|
+
|
|
|
+ /**
|
|
|
+ *
|
|
|
+ *
|
|
|
+ * Range: 0..3 (0.0..3.0 -)
|
|
|
+ * Scale: 1
|
|
|
+ * Offset: 0
|
|
|
+ */
|
|
|
+ uint8_t cdc_front_ac_off_set;
|
|
|
+};
|
|
|
+
|
|
|
+/**
|
|
|
+ * Signals in message ECU_372.
|
|
|
+ *
|
|
|
+ * CANFD
|
|
|
+ *
|
|
|
+ * All signal values are as on the CAN bus.
|
|
|
+ */
|
|
|
+struct a07_ecu_372_t {
|
|
|
+ /**
|
|
|
+ *
|
|
|
+ *
|
|
|
+ * Range: 0..3 (0.0..3.0 -)
|
|
|
+ * Scale: 1
|
|
|
+ * Offset: 0
|
|
|
+ */
|
|
|
+ uint8_t cdc_mirr_up_key_sts;
|
|
|
+
|
|
|
+ /**
|
|
|
+ *
|
|
|
+ *
|
|
|
+ * Range: 0..3 (0.0..3.0 -)
|
|
|
+ * Scale: 1
|
|
|
+ * Offset: 0
|
|
|
+ */
|
|
|
+ uint8_t cdc_mirr_down_key_sts;
|
|
|
+
|
|
|
+ /**
|
|
|
+ *
|
|
|
+ *
|
|
|
+ * Range: 0..3 (0.0..3.0 -)
|
|
|
+ * Scale: 1
|
|
|
+ * Offset: 0
|
|
|
+ */
|
|
|
+ uint8_t cdc_mirr_ri_turn_key_sts;
|
|
|
+
|
|
|
+ /**
|
|
|
+ *
|
|
|
+ *
|
|
|
+ * Range: 0..3 (0.0..3.0 -)
|
|
|
+ * Scale: 1
|
|
|
+ * Offset: 0
|
|
|
+ */
|
|
|
+ uint8_t cdc_mirr_le_turn_key_sts;
|
|
|
+};
|
|
|
+
|
|
|
+/**
|
|
|
+ * Signals in message HGW_1CA.
|
|
|
+ *
|
|
|
+ * CANFD
|
|
|
+ *
|
|
|
+ * All signal values are as on the CAN bus.
|
|
|
+ */
|
|
|
+struct a07_hgw_1_ca_t {
|
|
|
+ /**
|
|
|
+ * Range: 0..1 (0.0..1.0 -)
|
|
|
+ * Scale: 1
|
|
|
+ * Offset: 0
|
|
|
+ */
|
|
|
+ uint8_t whl_spd_ri_re_data_vld;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * Range: 0..8191 (0.0..460.74375 km/h)
|
|
|
+ * Scale: 0.05625
|
|
|
+ * Offset: 0.0
|
|
|
+ */
|
|
|
+ uint16_t whl_spd_ri_re_data;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * Range: 0..1 (0.0..1.0 -)
|
|
|
+ * Scale: 1
|
|
|
+ * Offset: 0
|
|
|
+ */
|
|
|
+ uint8_t whl_spd_le_re_data_vld;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * Range: 0..8191 (0.0..460.74375 km/h)
|
|
|
+ * Scale: 0.05625
|
|
|
+ * Offset: 0.0
|
|
|
+ */
|
|
|
+ uint16_t whl_spd_le_re_data;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * TCU\BD\D3\CA\D5ΪDCTר\D3\C3
|
|
|
+ *
|
|
|
+ * Range: 0..1 (0.0..1.0 -)
|
|
|
+ * Scale: 1
|
|
|
+ * Offset: 0
|
|
|
+ */
|
|
|
+ uint8_t esp_veh_spd_vld;
|
|
|
+
|
|
|
+ /**
|
|
|
+ *
|
|
|
+ *
|
|
|
+ * Range: 0..8191 (0.0..460.74375 km/h)
|
|
|
+ * Scale: 0.05625
|
|
|
+ * Offset: 0.0
|
|
|
+ */
|
|
|
+ uint16_t esp_veh_spd;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * Range: 0..1 (0.0..1.0 -)
|
|
|
+ * Scale: 1
|
|
|
+ * Offset: 0
|
|
|
+ */
|
|
|
+ uint8_t whl_spd_ri_frnt_data_vld;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * Range: 0..8191 (0.0..460.74375 km/h)
|
|
|
+ * Scale: 0.05625
|
|
|
+ * Offset: 0.0
|
|
|
+ */
|
|
|
+ uint16_t whl_spd_ri_frnt_data;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * Range: 0..1 (0.0..1.0 -)
|
|
|
+ * Scale: 1
|
|
|
+ * Offset: 0
|
|
|
+ */
|
|
|
+ uint8_t whl_spd_le_frnt_data_vld;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * Range: 0..8191 (0.0..460.74375 km/h)
|
|
|
+ * Scale: 0.05625
|
|
|
+ * Offset: 0.0
|
|
|
+ */
|
|
|
+ uint16_t whl_spd_le_frnt_data;
|
|
|
+};
|
|
|
+
|
|
|
+/**
|
|
|
+ * Signals in message HGW_169.
|
|
|
+ *
|
|
|
+ * CANFD
|
|
|
+ *
|
|
|
+ * All signal values are as on the CAN bus.
|
|
|
+ */
|
|
|
+struct a07_hgw_169_t {
|
|
|
+ /**
|
|
|
+ *
|
|
|
+ *
|
|
|
+ * Range: 0..7 (0.0..7.0 -)
|
|
|
+ * Scale: 1
|
|
|
+ * Offset: 0
|
|
|
+ */
|
|
|
+ uint8_t vcu_gear_posn;
|
|
|
+
|
|
|
+ /**
|
|
|
+ *
|
|
|
+ *
|
|
|
+ * Range: 0..1 (0.0..1.0 -)
|
|
|
+ * Scale: 1
|
|
|
+ * Offset: 0
|
|
|
+ */
|
|
|
+ uint8_t vcu_pt_tq_real_vld;
|
|
|
+
|
|
|
+ /**
|
|
|
+ *
|
|
|
+ *
|
|
|
+ * Range: 0..3 (0.0..3.0 -)
|
|
|
+ * Scale: 1
|
|
|
+ * Offset: 0
|
|
|
+ */
|
|
|
+ uint8_t vcu_pt_tq_req_avl;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 0x5~0xE:Reserved
|
|
|
+ *
|
|
|
+ * Range: 0..15 (0.0..15.0 -)
|
|
|
+ * Scale: 1
|
|
|
+ * Offset: 0
|
|
|
+ */
|
|
|
+ uint8_t vcu_shift_lvl_posn;
|
|
|
+
|
|
|
+ /**
|
|
|
+ *
|
|
|
+ *
|
|
|
+ * Range: 0..65535 (-32768.0..32767.0 Nm)
|
|
|
+ * Scale: 1
|
|
|
+ * Offset: -32768
|
|
|
+ */
|
|
|
+ uint16_t vcu_pt_tq_real;
|
|
|
+
|
|
|
+ /**
|
|
|
+ *
|
|
|
+ *
|
|
|
+ * Range: 0..1 (0.0..1.0 -)
|
|
|
+ * Scale: 1
|
|
|
+ * Offset: 0
|
|
|
+ */
|
|
|
+ uint8_t vcu_rdy_sts;
|
|
|
+};
|
|
|
+
|
|
|
+/**
|
|
|
+ * Signals in message HGW_178.
|
|
|
+ *
|
|
|
+ * CANFD
|
|
|
+ *
|
|
|
+ * All signal values are as on the CAN bus.
|
|
|
+ */
|
|
|
+struct a07_hgw_178_t {
|
|
|
+ /**
|
|
|
+ * ?\B7\BD\CF\F2\C5\CC\D7\F3\B4\F2Ϊ\D5\FD\A1\A3
|
|
|
+ * ?\D4\DAEPSECU\BF\AAʼ\D6\FA\C1\A6֮ǰ\A1\A2Initialֵ\CA\E4\B3\F6Ϊ(0)\A1\A3
|
|
|
+ * ?\D2쳣״̬\A3\A8ȷ\B6\A8\B9\CA\D5ϣ\A9\B5\C4\C7\E9\BF\F6\CF¡\A2Invalidֵ\CA\E4\B3\F6Ϊ(0x7FF)\A1\A3
|
|
|
+ *
|
|
|
+ * Range: 0..4094 (-20.48..20.46 Nm)
|
|
|
+ * Scale: 0.01
|
|
|
+ * Offset: -20.48
|
|
|
+ */
|
|
|
+ uint16_t eps_actual_motor_torq;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * ?\B7\BD\CF\F2\C5\CC\D7\F3\B4\F2Ϊ\D5\FD\A1\A3
|
|
|
+ * ?\D4\DAEPSECU\BF\AAʼ\D6\FA\C1\A6֮ǰ\A1\A2Initialֵ\CA\E4\B3\F6Ϊ(0)\A1\A3
|
|
|
+ * ?\D2쳣״̬\A3\A8ȷ\B6\A8\B9\CA\D5ϣ\A9\B5\C4\C7\E9\BF\F6\CF¡\A2Invalidֵ\CA\E4\B3\F6Ϊ(0x7FF)\A1\A3
|
|
|
+ * ƽ̨Ϊ10ms\A3\ACCD569\CC\D8\C0\FDΪ8ms
|
|
|
+ *
|
|
|
+ * Range: 0..2046 (-20.48..20.44 Nm)
|
|
|
+ * Scale: 0.02
|
|
|
+ * Offset: -20.48
|
|
|
+ */
|
|
|
+ uint16_t eps_max_safety_torsion_bar_torq;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * ƽ̨Ϊ10ms\A3\ACCD569\CC\D8\C0\FDΪ8ms
|
|
|
+ * ?\B7\BD\CF\F2\C5\CC\D7\F3\B4\F2Ϊ\D5\FD\A1\A3
|
|
|
+ * ?\D4\DAEPSECU\BF\AAʼ\D6\FA\C1\A6֮ǰ\A1\A2Initialֵ\CA\E4\B3\F6Ϊ(0)\A1\A3
|
|
|
+ * ?\D2쳣״̬\A3\A8ȷ\B6\A8\B9\CA\D5ϣ\A9\B5\C4\C7\E9\BF\F6\CF¡\A2Invalidֵ\CA\E4\B3\F6Ϊ(0x7FF)\A1\A3
|
|
|
+ *
|
|
|
+ * Range: 0..2046 (-20.48..20.44 Nm)
|
|
|
+ * Scale: 0.02
|
|
|
+ * Offset: -20.48
|
|
|
+ */
|
|
|
+ uint16_t eps_min_safety_torsion_bar_torq;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * ?\B7\BD\CF\F2\C5\CC\D7\F3\B4\F2Ϊ\D5\FD\A1\A3
|
|
|
+ * ?\D4\DAEPSECU\BF\AAʼ\D6\FA\C1\A6֮ǰ\A1\A2Initialֵ\CA\E4\B3\F6Ϊ(0)\A1\A3
|
|
|
+ * ?\D2쳣״̬\A3\A8ȷ\B6\A8\B9\CA\D5ϣ\A9\B5\C4\C7\E9\BF\F6\CF¡\A2Invalidֵ\CA\E4\B3\F6Ϊ(0x7FF)\A1\A3
|
|
|
+ * ƽ̨Ϊ10ms\A3\ACCD569\CC\D8\C0\FDΪ8ms
|
|
|
+ *
|
|
|
+ * Range: 0..2046 (-20.48..20.44 Nm)
|
|
|
+ * Scale: 0.02
|
|
|
+ * Offset: -20.48
|
|
|
+ */
|
|
|
+ uint16_t eps_actual_torsion_bar_torq;
|
|
|
+};
|
|
|
+
|
|
|
+/**
|
|
|
+ * Signals in message HGW_188.
|
|
|
+ *
|
|
|
+ * CANFD
|
|
|
+ *
|
|
|
+ * All signal values are as on the CAN bus.
|
|
|
+ */
|
|
|
+struct a07_hgw_188_t {
|
|
|
+ /**
|
|
|
+ * \B7\BD\CF\F2\C5\CC\CD\F9\C1\E3\B5\E3\D7\F3תΪ\D5\FD\A3\AC\C1\E3\B5\E3\D3\D2תΪ\B8\BA
|
|
|
+ * Steeringwheelangle(N:valueofthemessage):
|
|
|
+ * :N\A1\C10.1,for0<N\A1\DC32767
|
|
|
+ * :(N-65536)\A1\C10.1,forN\A3\BE32767
|
|
|
+ * Note:thatClockwiserotationis\A1\AE-\A1\AEandanti-Clockwiserotationis\A1\AE+\A1\AE
|
|
|
+ *
|
|
|
+ * Range: -7800..7800 (-780.0..780.0 degree)
|
|
|
+ * Scale: 0.1
|
|
|
+ * Offset: 0.0
|
|
|
+ */
|
|
|
+ uint16_t eps_sas_steer_ag;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * \B7\BD\CF\F2\C5\CC\CD\F9\C1\E3\B5\E3\D7\F3תΪ\D5\FD,\C1\E3\B5\E3\D3\D2תΪ\B8\BA
|
|
|
+ * SteeringAngleSpeed
|
|
|
+ * (N:valueofthemessage):
|
|
|
+ * :N\A1\C14,for0<N\A1\DC254
|
|
|
+ * :errorsignaled,forN>254
|
|
|
+ *
|
|
|
+ * Range: 0..254 (0.0..1016.0 deg/s)
|
|
|
+ * Scale: 4
|
|
|
+ * Offset: 0
|
|
|
+ */
|
|
|
+ uint8_t eps_steer_ag_rate;
|
|
|
+
|
|
|
+ /**
|
|
|
+ *
|
|
|
+ *
|
|
|
+ * Range: 0..1 (0.0..1.0 -)
|
|
|
+ * Scale: 1
|
|
|
+ * Offset: 0
|
|
|
+ */
|
|
|
+ uint8_t eps_sas_steer_ag_vld;
|
|
|
+
|
|
|
+ /**
|
|
|
+ *
|
|
|
+ *
|
|
|
+ * Range: 0..1 (0.0..1.0 -)
|
|
|
+ * Scale: 1
|
|
|
+ * Offset: 0
|
|
|
+ */
|
|
|
+ uint8_t eps_sas_cal_sts;
|
|
|
+};
|
|
|
+
|
|
|
+/**
|
|
|
+ * Signals in message HGW_280.
|
|
|
+ *
|
|
|
+ * CANFD
|
|
|
+ *
|
|
|
+ * All signal values are as on the CAN bus.
|
|
|
+ */
|
|
|
+struct a07_hgw_280_t {
|
|
|
+ /**
|
|
|
+ * Range: 0..8190 (-32.0..49.9 m/s2)
|
|
|
+ * Scale: 0.01
|
|
|
+ * Offset: -32.0
|
|
|
+ */
|
|
|
+ uint16_t esp_long_accel;
|
|
|
+};
|
|
|
+
|
|
|
+/**
|
|
|
+ * Signals in message HGW_213.
|
|
|
+ *
|
|
|
+ * CANFD
|
|
|
+ *
|
|
|
+ * All signal values are as on the CAN bus.
|
|
|
+ */
|
|
|
+struct a07_hgw_213_t {
|
|
|
+ /**
|
|
|
+ * Range: 0..1 (0.0..1.0 -)
|
|
|
+ * Scale: 1
|
|
|
+ * Offset: 0
|
|
|
+ */
|
|
|
+ uint8_t esp_brake_force;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * APA\C5\E4\D6ý\D3\CAշ\BD\CE\DEBDC
|
|
|
+ *
|
|
|
+ * Range: 0..1 (0.0..1.0 NA)
|
|
|
+ * Scale: 1
|
|
|
+ * Offset: 0
|
|
|
+ */
|
|
|
+ uint8_t esp_cdd_active_apa;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * APA\C5\E4\D6ý\D3\CAշ\BD\CE\DEBDC
|
|
|
+ *
|
|
|
+ * Range: 0..1 (0.0..1.0 NA)
|
|
|
+ * Scale: 1
|
|
|
+ * Offset: 0
|
|
|
+ */
|
|
|
+ uint8_t esp_cdd_available_apa;
|
|
|
+};
|
|
|
+
|
|
|
+/**
|
|
|
+ * Signals in message HGW_257.
|
|
|
+ *
|
|
|
+ * CANFD
|
|
|
+ *
|
|
|
+ * All signal values are as on the CAN bus.
|
|
|
+ */
|
|
|
+struct a07_hgw_257_t {
|
|
|
+ /**
|
|
|
+ *
|
|
|
+ *
|
|
|
+ * Range: 0..7 (0.0..7.0 -)
|
|
|
+ * Scale: 1
|
|
|
+ * Offset: 0
|
|
|
+ */
|
|
|
+ uint8_t eps_iacc_abortreason;
|
|
|
+};
|
|
|
+
|
|
|
+/**
|
|
|
+ * Signals in message HGW_186.
|
|
|
+ *
|
|
|
+ * CANFD
|
|
|
+ *
|
|
|
+ * All signal values are as on the CAN bus.
|
|
|
+ */
|
|
|
+struct a07_hgw_186_t {
|
|
|
+ /**
|
|
|
+ * ?\CB\E3ʽ\A3\BA(MeasuredTorsionBarTorque\A8C0x800)*0.01
|
|
|
+ * ?\B7\BD\CF\F2\C5\CC\D7\F3\B4\F2Ϊ\D5\FD\A1\A3
|
|
|
+ * ?\D4\DAEPSECU\BF\AAʼ\D6\FA\C1\A6֮ǰ\A1\A2Initialֵ\CA\E4\B3\F6Ϊ(0)\A1\A3
|
|
|
+ * ?\D2쳣״̬\A3\A8ȷ\B6\A8\B9\CA\D5ϣ\A9\B5\C4\C7\E9\BF\F6\CF¡\A2Invalidֵ\CA\E4\B3\F6Ϊ(0xFFF)\A1\A3
|
|
|
+ *
|
|
|
+ * Range: 0..4094 (-20.48..20.46 Nm)
|
|
|
+ * Scale: 0.01
|
|
|
+ * Offset: -20.48
|
|
|
+ */
|
|
|
+ uint16_t eps_measured_torsion_bar_torque;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * ƽ̨Ϊ10ms\A3\ACCD569\CC\D8\C0\FDΪ8ms
|
|
|
+ *
|
|
|
+ * Range: 0..1 (0.0..1.0 -)
|
|
|
+ * Scale: 1
|
|
|
+ * Offset: 0
|
|
|
+ */
|
|
|
+ uint8_t eps_lat_ctrl_active;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * ƽ̨Ϊ10ms\A3\ACCD569\CC\D8\C0\FDΪ8ms
|
|
|
+ *
|
|
|
+ * Range: 0..3 (0.0..3.0 -)
|
|
|
+ * Scale: 1
|
|
|
+ * Offset: 0
|
|
|
+ */
|
|
|
+ uint8_t eps_lat_ctrl_availability_status;
|
|
|
+};
|
|
|
+
|
|
|
+/**
|
|
|
+ * Signals in message HGW_58.
|
|
|
+ *
|
|
|
+ * CANFD
|
|
|
+ *
|
|
|
+ * All signal values are as on the CAN bus.
|
|
|
+ */
|
|
|
+struct a07_hgw_58_t {
|
|
|
+ /**
|
|
|
+ * \C5\F6ײ\D0źŶ\A8\D2\E5Ϊ\B1\BE\B1\A8\CE\C4Ψһ\B5\C4\CA¼\FE\B4\A5\B7\A2\D0ź\C5,\B5\B1\D0ź\C5ֵΪ\B7\C70ʱ\A3\AC\D2\D420ms\D6\DC\C6\DA\D6ظ\B4\B7\A2\CB\CD10\B4Σ\AC֮\BA\F3\D6\DC\C6ڻָ\B4Ϊ500ms
|
|
|
+ * 0x2~0xF:NotUsed
|
|
|
+ *
|
|
|
+ * Range: 0..15 (0.0..15.0 -)
|
|
|
+ * Scale: 1
|
|
|
+ * Offset: 0
|
|
|
+ */
|
|
|
+ uint8_t srs_crash_outp_sts;
|
|
|
+
|
|
|
+ /**
|
|
|
+ *
|
|
|
+ *
|
|
|
+ * Range: 0..3 (0.0..3.0 -)
|
|
|
+ * Scale: 1
|
|
|
+ * Offset: 0
|
|
|
+ */
|
|
|
+ uint8_t srs_drvr_buc_swt_sts;
|
|
|
+
|
|
|
+ /**
|
|
|
+ *
|
|
|
+ *
|
|
|
+ * Range: 0..3 (0.0..3.0 -)
|
|
|
+ * Scale: 1
|
|
|
+ * Offset: 0
|
|
|
+ */
|
|
|
+ uint8_t srs_pass_buc_swt_sts;
|
|
|
+
|
|
|
+ /**
|
|
|
+ *
|
|
|
+ *
|
|
|
+ * Range: 0..3 (0.0..3.0 -)
|
|
|
+ * Scale: 1
|
|
|
+ * Offset: 0
|
|
|
+ */
|
|
|
+ uint8_t srs_le_re_buc_swt_sts;
|
|
|
+
|
|
|
+ /**
|
|
|
+ *
|
|
|
+ *
|
|
|
+ * Range: 0..3 (0.0..3.0 -)
|
|
|
+ * Scale: 1
|
|
|
+ * Offset: 0
|
|
|
+ */
|
|
|
+ uint8_t srs_mid_re_buc_swt_sts;
|
|
|
+
|
|
|
+ /**
|
|
|
+ *
|
|
|
+ *
|
|
|
+ * Range: 0..3 (0.0..3.0 -)
|
|
|
+ * Scale: 1
|
|
|
+ * Offset: 0
|
|
|
+ */
|
|
|
+ uint8_t srs_ri_re_buc_swt_sts;
|
|
|
+};
|
|
|
+
|
|
|
+/**
|
|
|
+ * Signals in message HGW_2DA.
|
|
|
+ *
|
|
|
+ * CANFD
|
|
|
+ *
|
|
|
+ * All signal values are as on the CAN bus.
|
|
|
+ */
|
|
|
+struct a07_hgw_2_da_t {
|
|
|
+ /**
|
|
|
+ * 600
|
|
|
+ *
|
|
|
+ * Range: 0..7 (0.0..7.0 -)
|
|
|
+ * Scale: 1
|
|
|
+ * Offset: 0
|
|
|
+ */
|
|
|
+ uint8_t cdc_auto_head_li_set;
|
|
|
+
|
|
|
+ /**
|
|
|
+ *
|
|
|
+ *
|
|
|
+ * Range: 0..16777215 (0.0..1677721.5 Km)
|
|
|
+ * Scale: 0.1
|
|
|
+ * Offset: 0.0
|
|
|
+ */
|
|
|
+ uint32_t cdc_tot_milg;
|
|
|
+
|
|
|
+ /**
|
|
|
+ *
|
|
|
+ *
|
|
|
+ * Range: 0..7 (0.0..7.0 -)
|
|
|
+ * Scale: 1
|
|
|
+ * Offset: 0
|
|
|
+ */
|
|
|
+ uint8_t hu_sentry_mode_st;
|
|
|
+};
|
|
|
+
|
|
|
+/**
|
|
|
+ * Signals in message HGW_290.
|
|
|
+ *
|
|
|
+ * CANFD
|
|
|
+ *
|
|
|
+ * All signal values are as on the CAN bus.
|
|
|
+ */
|
|
|
+struct a07_hgw_290_t {
|
|
|
+ /**
|
|
|
+ *
|
|
|
+ *
|
|
|
+ * Range: 0..3 (0.0..3.0 -)
|
|
|
+ * Scale: 1
|
|
|
+ * Offset: 0
|
|
|
+ */
|
|
|
+ uint8_t bcm_turn_indcr_le;
|
|
|
+
|
|
|
+ /**
|
|
|
+ *
|
|
|
+ *
|
|
|
+ * Range: 0..3 (0.0..3.0 -)
|
|
|
+ * Scale: 1
|
|
|
+ * Offset: 0
|
|
|
+ */
|
|
|
+ uint8_t bcm_turn_indcr_ri;
|
|
|
+
|
|
|
+ /**
|
|
|
+ *
|
|
|
+ *
|
|
|
+ * Range: 0..3 (0.0..3.0 -)
|
|
|
+ * Scale: 1
|
|
|
+ * Offset: 0
|
|
|
+ */
|
|
|
+ uint8_t bcm_posn_lmp_sts;
|
|
|
+
|
|
|
+ /**
|
|
|
+ *
|
|
|
+ *
|
|
|
+ * Range: 0..1 (0.0..1.0 -)
|
|
|
+ * Scale: 1
|
|
|
+ * Offset: 0
|
|
|
+ */
|
|
|
+ uint8_t bcm_drvr_door_sts;
|
|
|
+
|
|
|
+ /**
|
|
|
+ *
|
|
|
+ *
|
|
|
+ * Range: 0..1 (0.0..1.0 -)
|
|
|
+ * Scale: 1
|
|
|
+ * Offset: 0
|
|
|
+ */
|
|
|
+ uint8_t bcm_pass_door_sts;
|
|
|
+
|
|
|
+ /**
|
|
|
+ *
|
|
|
+ *
|
|
|
+ * Range: 0..1 (0.0..1.0 -)
|
|
|
+ * Scale: 1
|
|
|
+ * Offset: 0
|
|
|
+ */
|
|
|
+ uint8_t bcm_le_re_door_sts;
|
|
|
+
|
|
|
+ /**
|
|
|
+ *
|
|
|
+ *
|
|
|
+ * Range: 0..1 (0.0..1.0 -)
|
|
|
+ * Scale: 1
|
|
|
+ * Offset: 0
|
|
|
+ */
|
|
|
+ uint8_t bcm_ri_re_door_sts;
|
|
|
+
|
|
|
+ /**
|
|
|
+ *
|
|
|
+ *
|
|
|
+ * Range: 0..1 (0.0..1.0 -)
|
|
|
+ * Scale: 1
|
|
|
+ * Offset: 0
|
|
|
+ */
|
|
|
+ uint8_t bdc_drvr_sts;
|
|
|
+
|
|
|
+ /**
|
|
|
+ *
|
|
|
+ *
|
|
|
+ * Range: 0..3 (0.0..3.0 -)
|
|
|
+ * Scale: 1
|
|
|
+ * Offset: 0
|
|
|
+ */
|
|
|
+ uint8_t bcm_pass_door_lck_sts;
|
|
|
+
|
|
|
+ /**
|
|
|
+ *
|
|
|
+ *
|
|
|
+ * Range: 0..3 (0.0..3.0 -)
|
|
|
+ * Scale: 1
|
|
|
+ * Offset: 0
|
|
|
+ */
|
|
|
+ uint8_t bcm_pwr_sts_fb;
|
|
|
+
|
|
|
+ /**
|
|
|
+ *
|
|
|
+ *
|
|
|
+ * Range: 0..3 (0.0..3.0 -)
|
|
|
+ * Scale: 1
|
|
|
+ * Offset: 0
|
|
|
+ */
|
|
|
+ uint8_t bcm_drvr_door_lck_sts;
|
|
|
+};
|
|
|
+
|
|
|
+/**
|
|
|
+ * Pack message ECU_1B2.
|
|
|
+ *
|
|
|
+ * @param[out] dst_p Buffer to pack the message into.
|
|
|
+ * @param[in] src_p Data to pack.
|
|
|
+ * @param[in] size Size of dst_p.
|
|
|
+ *
|
|
|
+ * @return Size of packed data, or negative error code.
|
|
|
+ */
|
|
|
+int a07_ecu_1_b2_pack(
|
|
|
+ uint8_t *dst_p,
|
|
|
+ const struct a07_ecu_1_b2_t *src_p,
|
|
|
+ size_t size);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Unpack message ECU_1B2.
|
|
|
+ *
|
|
|
+ * @param[out] dst_p Object to unpack the message into.
|
|
|
+ * @param[in] src_p Message to unpack.
|
|
|
+ * @param[in] size Size of src_p.
|
|
|
+ *
|
|
|
+ * @return zero(0) or negative error code.
|
|
|
+ */
|
|
|
+int a07_ecu_1_b2_unpack(
|
|
|
+ struct a07_ecu_1_b2_t *dst_p,
|
|
|
+ const uint8_t *src_p,
|
|
|
+ size_t size);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Init message fields to default values from ECU_1B2.
|
|
|
+ *
|
|
|
+ * @param[in] msg_p Message to init.
|
|
|
+ *
|
|
|
+ * @return zero(0) on success or (-1) in case of nullptr argument.
|
|
|
+ */
|
|
|
+int a07_ecu_1_b2_init(struct a07_ecu_1_b2_t *msg_p);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Encode given signal by applying scaling and offset.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to encode.
|
|
|
+ *
|
|
|
+ * @return Encoded signal.
|
|
|
+ */
|
|
|
+uint16_t a07_ecu_1_b2_acc_motor_torque_max_limit_request_encode(double value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Decode given signal by applying scaling and offset.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to decode.
|
|
|
+ *
|
|
|
+ * @return Decoded signal.
|
|
|
+ */
|
|
|
+double a07_ecu_1_b2_acc_motor_torque_max_limit_request_decode(uint16_t value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Check that given signal is in allowed range.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to check.
|
|
|
+ *
|
|
|
+ * @return true if in range, false otherwise.
|
|
|
+ */
|
|
|
+bool a07_ecu_1_b2_acc_motor_torque_max_limit_request_is_in_range(uint16_t value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Encode given signal by applying scaling and offset.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to encode.
|
|
|
+ *
|
|
|
+ * @return Encoded signal.
|
|
|
+ */
|
|
|
+uint16_t a07_ecu_1_b2_acc_motor_torque_min_limit_request_encode(double value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Decode given signal by applying scaling and offset.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to decode.
|
|
|
+ *
|
|
|
+ * @return Decoded signal.
|
|
|
+ */
|
|
|
+double a07_ecu_1_b2_acc_motor_torque_min_limit_request_decode(uint16_t value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Check that given signal is in allowed range.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to check.
|
|
|
+ *
|
|
|
+ * @return true if in range, false otherwise.
|
|
|
+ */
|
|
|
+bool a07_ecu_1_b2_acc_motor_torque_min_limit_request_is_in_range(uint16_t value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Encode given signal by applying scaling and offset.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to encode.
|
|
|
+ *
|
|
|
+ * @return Encoded signal.
|
|
|
+ */
|
|
|
+uint16_t a07_ecu_1_b2_acc_lat_ang_req_encode(double value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Decode given signal by applying scaling and offset.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to decode.
|
|
|
+ *
|
|
|
+ * @return Decoded signal.
|
|
|
+ */
|
|
|
+double a07_ecu_1_b2_acc_lat_ang_req_decode(uint16_t value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Check that given signal is in allowed range.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to check.
|
|
|
+ *
|
|
|
+ * @return true if in range, false otherwise.
|
|
|
+ */
|
|
|
+bool a07_ecu_1_b2_acc_lat_ang_req_is_in_range(uint16_t value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Encode given signal by applying scaling and offset.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to encode.
|
|
|
+ *
|
|
|
+ * @return Encoded signal.
|
|
|
+ */
|
|
|
+uint8_t a07_ecu_1_b2_acc_lat_ang_req_active_encode(double value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Decode given signal by applying scaling and offset.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to decode.
|
|
|
+ *
|
|
|
+ * @return Decoded signal.
|
|
|
+ */
|
|
|
+double a07_ecu_1_b2_acc_lat_ang_req_active_decode(uint8_t value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Check that given signal is in allowed range.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to check.
|
|
|
+ *
|
|
|
+ * @return true if in range, false otherwise.
|
|
|
+ */
|
|
|
+bool a07_ecu_1_b2_acc_lat_ang_req_active_is_in_range(uint8_t value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Pack message ECU_23F.
|
|
|
+ *
|
|
|
+ * @param[out] dst_p Buffer to pack the message into.
|
|
|
+ * @param[in] src_p Data to pack.
|
|
|
+ * @param[in] size Size of dst_p.
|
|
|
+ *
|
|
|
+ * @return Size of packed data, or negative error code.
|
|
|
+ */
|
|
|
+int a07_ecu_23_f_pack(
|
|
|
+ uint8_t *dst_p,
|
|
|
+ const struct a07_ecu_23_f_t *src_p,
|
|
|
+ size_t size);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Unpack message ECU_23F.
|
|
|
+ *
|
|
|
+ * @param[out] dst_p Object to unpack the message into.
|
|
|
+ * @param[in] src_p Message to unpack.
|
|
|
+ * @param[in] size Size of src_p.
|
|
|
+ *
|
|
|
+ * @return zero(0) or negative error code.
|
|
|
+ */
|
|
|
+int a07_ecu_23_f_unpack(
|
|
|
+ struct a07_ecu_23_f_t *dst_p,
|
|
|
+ const uint8_t *src_p,
|
|
|
+ size_t size);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Init message fields to default values from ECU_23F.
|
|
|
+ *
|
|
|
+ * @param[in] msg_p Message to init.
|
|
|
+ *
|
|
|
+ * @return zero(0) on success or (-1) in case of nullptr argument.
|
|
|
+ */
|
|
|
+int a07_ecu_23_f_init(struct a07_ecu_23_f_t *msg_p);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Encode given signal by applying scaling and offset.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to encode.
|
|
|
+ *
|
|
|
+ * @return Encoded signal.
|
|
|
+ */
|
|
|
+uint8_t a07_ecu_23_f_apa_error_status_encode(double value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Decode given signal by applying scaling and offset.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to decode.
|
|
|
+ *
|
|
|
+ * @return Decoded signal.
|
|
|
+ */
|
|
|
+double a07_ecu_23_f_apa_error_status_decode(uint8_t value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Check that given signal is in allowed range.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to check.
|
|
|
+ *
|
|
|
+ * @return true if in range, false otherwise.
|
|
|
+ */
|
|
|
+bool a07_ecu_23_f_apa_error_status_is_in_range(uint8_t value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Encode given signal by applying scaling and offset.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to encode.
|
|
|
+ *
|
|
|
+ * @return Encoded signal.
|
|
|
+ */
|
|
|
+uint8_t a07_ecu_23_f_apa_steering_angle_req_protection_encode(double value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Decode given signal by applying scaling and offset.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to decode.
|
|
|
+ *
|
|
|
+ * @return Decoded signal.
|
|
|
+ */
|
|
|
+double a07_ecu_23_f_apa_steering_angle_req_protection_decode(uint8_t value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Check that given signal is in allowed range.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to check.
|
|
|
+ *
|
|
|
+ * @return true if in range, false otherwise.
|
|
|
+ */
|
|
|
+bool a07_ecu_23_f_apa_steering_angle_req_protection_is_in_range(uint8_t value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Encode given signal by applying scaling and offset.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to encode.
|
|
|
+ *
|
|
|
+ * @return Encoded signal.
|
|
|
+ */
|
|
|
+int16_t a07_ecu_23_f_apa_steering_angle_req_encode(double value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Decode given signal by applying scaling and offset.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to decode.
|
|
|
+ *
|
|
|
+ * @return Decoded signal.
|
|
|
+ */
|
|
|
+double a07_ecu_23_f_apa_steering_angle_req_decode(int16_t value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Check that given signal is in allowed range.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to check.
|
|
|
+ *
|
|
|
+ * @return true if in range, false otherwise.
|
|
|
+ */
|
|
|
+bool a07_ecu_23_f_apa_steering_angle_req_is_in_range(int16_t value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Pack message ECU_23C.
|
|
|
+ *
|
|
|
+ * @param[out] dst_p Buffer to pack the message into.
|
|
|
+ * @param[in] src_p Data to pack.
|
|
|
+ * @param[in] size Size of dst_p.
|
|
|
+ *
|
|
|
+ * @return Size of packed data, or negative error code.
|
|
|
+ */
|
|
|
+int a07_ecu_23_c_pack(
|
|
|
+ uint8_t *dst_p,
|
|
|
+ const struct a07_ecu_23_c_t *src_p,
|
|
|
+ size_t size);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Unpack message ECU_23C.
|
|
|
+ *
|
|
|
+ * @param[out] dst_p Object to unpack the message into.
|
|
|
+ * @param[in] src_p Message to unpack.
|
|
|
+ * @param[in] size Size of src_p.
|
|
|
+ *
|
|
|
+ * @return zero(0) or negative error code.
|
|
|
+ */
|
|
|
+int a07_ecu_23_c_unpack(
|
|
|
+ struct a07_ecu_23_c_t *dst_p,
|
|
|
+ const uint8_t *src_p,
|
|
|
+ size_t size);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Init message fields to default values from ECU_23C.
|
|
|
+ *
|
|
|
+ * @param[in] msg_p Message to init.
|
|
|
+ *
|
|
|
+ * @return zero(0) on success or (-1) in case of nullptr argument.
|
|
|
+ */
|
|
|
+int a07_ecu_23_c_init(struct a07_ecu_23_c_t *msg_p);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Encode given signal by applying scaling and offset.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to encode.
|
|
|
+ *
|
|
|
+ * @return Encoded signal.
|
|
|
+ */
|
|
|
+uint8_t a07_ecu_23_c_acc_acc_target_acceleration_encode(double value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Decode given signal by applying scaling and offset.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to decode.
|
|
|
+ *
|
|
|
+ * @return Decoded signal.
|
|
|
+ */
|
|
|
+double a07_ecu_23_c_acc_acc_target_acceleration_decode(uint8_t value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Check that given signal is in allowed range.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to check.
|
|
|
+ *
|
|
|
+ * @return true if in range, false otherwise.
|
|
|
+ */
|
|
|
+bool a07_ecu_23_c_acc_acc_target_acceleration_is_in_range(uint8_t value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Encode given signal by applying scaling and offset.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to encode.
|
|
|
+ *
|
|
|
+ * @return Encoded signal.
|
|
|
+ */
|
|
|
+uint8_t a07_ecu_23_c_apa_function_on_off_sts_encode(double value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Decode given signal by applying scaling and offset.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to decode.
|
|
|
+ *
|
|
|
+ * @return Decoded signal.
|
|
|
+ */
|
|
|
+double a07_ecu_23_c_apa_function_on_off_sts_decode(uint8_t value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Check that given signal is in allowed range.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to check.
|
|
|
+ *
|
|
|
+ * @return true if in range, false otherwise.
|
|
|
+ */
|
|
|
+bool a07_ecu_23_c_apa_function_on_off_sts_is_in_range(uint8_t value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Encode given signal by applying scaling and offset.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to encode.
|
|
|
+ *
|
|
|
+ * @return Encoded signal.
|
|
|
+ */
|
|
|
+uint8_t a07_ecu_23_c_acc_cdd_active_encode(double value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Decode given signal by applying scaling and offset.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to decode.
|
|
|
+ *
|
|
|
+ * @return Decoded signal.
|
|
|
+ */
|
|
|
+double a07_ecu_23_c_acc_cdd_active_decode(uint8_t value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Check that given signal is in allowed range.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to check.
|
|
|
+ *
|
|
|
+ * @return true if in range, false otherwise.
|
|
|
+ */
|
|
|
+bool a07_ecu_23_c_acc_cdd_active_is_in_range(uint8_t value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Encode given signal by applying scaling and offset.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to encode.
|
|
|
+ *
|
|
|
+ * @return Encoded signal.
|
|
|
+ */
|
|
|
+uint8_t a07_ecu_23_c_acc_driveoff_request_encode(double value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Decode given signal by applying scaling and offset.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to decode.
|
|
|
+ *
|
|
|
+ * @return Decoded signal.
|
|
|
+ */
|
|
|
+double a07_ecu_23_c_acc_driveoff_request_decode(uint8_t value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Check that given signal is in allowed range.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to check.
|
|
|
+ *
|
|
|
+ * @return true if in range, false otherwise.
|
|
|
+ */
|
|
|
+bool a07_ecu_23_c_acc_driveoff_request_is_in_range(uint8_t value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Encode given signal by applying scaling and offset.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to encode.
|
|
|
+ *
|
|
|
+ * @return Encoded signal.
|
|
|
+ */
|
|
|
+uint8_t a07_ecu_23_c_acc_acc_mode_encode(double value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Decode given signal by applying scaling and offset.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to decode.
|
|
|
+ *
|
|
|
+ * @return Decoded signal.
|
|
|
+ */
|
|
|
+double a07_ecu_23_c_acc_acc_mode_decode(uint8_t value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Check that given signal is in allowed range.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to check.
|
|
|
+ *
|
|
|
+ * @return true if in range, false otherwise.
|
|
|
+ */
|
|
|
+bool a07_ecu_23_c_acc_acc_mode_is_in_range(uint8_t value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Encode given signal by applying scaling and offset.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to encode.
|
|
|
+ *
|
|
|
+ * @return Encoded signal.
|
|
|
+ */
|
|
|
+uint8_t a07_ecu_23_c_acc_acc_trq_req_active_encode(double value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Decode given signal by applying scaling and offset.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to decode.
|
|
|
+ *
|
|
|
+ * @return Decoded signal.
|
|
|
+ */
|
|
|
+double a07_ecu_23_c_acc_acc_trq_req_active_decode(uint8_t value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Check that given signal is in allowed range.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to check.
|
|
|
+ *
|
|
|
+ * @return true if in range, false otherwise.
|
|
|
+ */
|
|
|
+bool a07_ecu_23_c_acc_acc_trq_req_active_is_in_range(uint8_t value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Encode given signal by applying scaling and offset.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to encode.
|
|
|
+ *
|
|
|
+ * @return Encoded signal.
|
|
|
+ */
|
|
|
+uint16_t a07_ecu_23_c_acc_acc_trq_req_encode(double value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Decode given signal by applying scaling and offset.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to decode.
|
|
|
+ *
|
|
|
+ * @return Decoded signal.
|
|
|
+ */
|
|
|
+double a07_ecu_23_c_acc_acc_trq_req_decode(uint16_t value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Check that given signal is in allowed range.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to check.
|
|
|
+ *
|
|
|
+ * @return true if in range, false otherwise.
|
|
|
+ */
|
|
|
+bool a07_ecu_23_c_acc_acc_trq_req_is_in_range(uint16_t value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Encode given signal by applying scaling and offset.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to encode.
|
|
|
+ *
|
|
|
+ * @return Encoded signal.
|
|
|
+ */
|
|
|
+uint8_t a07_ecu_23_c_adc_work_mode_encode(double value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Decode given signal by applying scaling and offset.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to decode.
|
|
|
+ *
|
|
|
+ * @return Decoded signal.
|
|
|
+ */
|
|
|
+double a07_ecu_23_c_adc_work_mode_decode(uint8_t value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Check that given signal is in allowed range.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to check.
|
|
|
+ *
|
|
|
+ * @return true if in range, false otherwise.
|
|
|
+ */
|
|
|
+bool a07_ecu_23_c_adc_work_mode_is_in_range(uint8_t value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Encode given signal by applying scaling and offset.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to encode.
|
|
|
+ *
|
|
|
+ * @return Encoded signal.
|
|
|
+ */
|
|
|
+uint8_t a07_ecu_23_c_apa_ep_brequest_encode(double value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Decode given signal by applying scaling and offset.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to decode.
|
|
|
+ *
|
|
|
+ * @return Decoded signal.
|
|
|
+ */
|
|
|
+double a07_ecu_23_c_apa_ep_brequest_decode(uint8_t value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Check that given signal is in allowed range.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to check.
|
|
|
+ *
|
|
|
+ * @return true if in range, false otherwise.
|
|
|
+ */
|
|
|
+bool a07_ecu_23_c_apa_ep_brequest_is_in_range(uint8_t value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Encode given signal by applying scaling and offset.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to encode.
|
|
|
+ *
|
|
|
+ * @return Encoded signal.
|
|
|
+ */
|
|
|
+uint8_t a07_ecu_23_c_apa_ep_brequest_valid_encode(double value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Decode given signal by applying scaling and offset.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to decode.
|
|
|
+ *
|
|
|
+ * @return Decoded signal.
|
|
|
+ */
|
|
|
+double a07_ecu_23_c_apa_ep_brequest_valid_decode(uint8_t value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Check that given signal is in allowed range.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to check.
|
|
|
+ *
|
|
|
+ * @return true if in range, false otherwise.
|
|
|
+ */
|
|
|
+bool a07_ecu_23_c_apa_ep_brequest_valid_is_in_range(uint8_t value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Encode given signal by applying scaling and offset.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to encode.
|
|
|
+ *
|
|
|
+ * @return Encoded signal.
|
|
|
+ */
|
|
|
+uint8_t a07_ecu_23_c_apa_esp_brake_function_mode_encode(double value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Decode given signal by applying scaling and offset.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to decode.
|
|
|
+ *
|
|
|
+ * @return Decoded signal.
|
|
|
+ */
|
|
|
+double a07_ecu_23_c_apa_esp_brake_function_mode_decode(uint8_t value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Check that given signal is in allowed range.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to check.
|
|
|
+ *
|
|
|
+ * @return true if in range, false otherwise.
|
|
|
+ */
|
|
|
+bool a07_ecu_23_c_apa_esp_brake_function_mode_is_in_range(uint8_t value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Encode given signal by applying scaling and offset.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to encode.
|
|
|
+ *
|
|
|
+ * @return Encoded signal.
|
|
|
+ */
|
|
|
+uint8_t a07_ecu_23_c_apa_target_acceleration_valid_encode(double value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Decode given signal by applying scaling and offset.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to decode.
|
|
|
+ *
|
|
|
+ * @return Decoded signal.
|
|
|
+ */
|
|
|
+double a07_ecu_23_c_apa_target_acceleration_valid_decode(uint8_t value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Check that given signal is in allowed range.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to check.
|
|
|
+ *
|
|
|
+ * @return true if in range, false otherwise.
|
|
|
+ */
|
|
|
+bool a07_ecu_23_c_apa_target_acceleration_valid_is_in_range(uint8_t value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Encode given signal by applying scaling and offset.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to encode.
|
|
|
+ *
|
|
|
+ * @return Encoded signal.
|
|
|
+ */
|
|
|
+uint8_t a07_ecu_23_c_apa_trans_prnd_shift_enable_encode(double value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Decode given signal by applying scaling and offset.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to decode.
|
|
|
+ *
|
|
|
+ * @return Decoded signal.
|
|
|
+ */
|
|
|
+double a07_ecu_23_c_apa_trans_prnd_shift_enable_decode(uint8_t value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Check that given signal is in allowed range.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to check.
|
|
|
+ *
|
|
|
+ * @return true if in range, false otherwise.
|
|
|
+ */
|
|
|
+bool a07_ecu_23_c_apa_trans_prnd_shift_enable_is_in_range(uint8_t value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Encode given signal by applying scaling and offset.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to encode.
|
|
|
+ *
|
|
|
+ * @return Encoded signal.
|
|
|
+ */
|
|
|
+uint8_t a07_ecu_23_c_apa_trans_prnd_shift_request_encode(double value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Decode given signal by applying scaling and offset.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to decode.
|
|
|
+ *
|
|
|
+ * @return Decoded signal.
|
|
|
+ */
|
|
|
+double a07_ecu_23_c_apa_trans_prnd_shift_request_decode(uint8_t value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Check that given signal is in allowed range.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to check.
|
|
|
+ *
|
|
|
+ * @return true if in range, false otherwise.
|
|
|
+ */
|
|
|
+bool a07_ecu_23_c_apa_trans_prnd_shift_request_is_in_range(uint8_t value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Encode given signal by applying scaling and offset.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to encode.
|
|
|
+ *
|
|
|
+ * @return Encoded signal.
|
|
|
+ */
|
|
|
+uint8_t a07_ecu_23_c_apa_trans_prnd_shift_req_valid_encode(double value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Decode given signal by applying scaling and offset.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to decode.
|
|
|
+ *
|
|
|
+ * @return Decoded signal.
|
|
|
+ */
|
|
|
+double a07_ecu_23_c_apa_trans_prnd_shift_req_valid_decode(uint8_t value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Check that given signal is in allowed range.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to check.
|
|
|
+ *
|
|
|
+ * @return true if in range, false otherwise.
|
|
|
+ */
|
|
|
+bool a07_ecu_23_c_apa_trans_prnd_shift_req_valid_is_in_range(uint8_t value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Encode given signal by applying scaling and offset.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to encode.
|
|
|
+ *
|
|
|
+ * @return Encoded signal.
|
|
|
+ */
|
|
|
+uint8_t a07_ecu_23_c_apa_vcu_ready_req_encode(double value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Decode given signal by applying scaling and offset.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to decode.
|
|
|
+ *
|
|
|
+ * @return Decoded signal.
|
|
|
+ */
|
|
|
+double a07_ecu_23_c_apa_vcu_ready_req_decode(uint8_t value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Check that given signal is in allowed range.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to check.
|
|
|
+ *
|
|
|
+ * @return true if in range, false otherwise.
|
|
|
+ */
|
|
|
+bool a07_ecu_23_c_apa_vcu_ready_req_is_in_range(uint8_t value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Pack message ECU_30A.
|
|
|
+ *
|
|
|
+ * @param[out] dst_p Buffer to pack the message into.
|
|
|
+ * @param[in] src_p Data to pack.
|
|
|
+ * @param[in] size Size of dst_p.
|
|
|
+ *
|
|
|
+ * @return Size of packed data, or negative error code.
|
|
|
+ */
|
|
|
+int a07_ecu_30_a_pack(
|
|
|
+ uint8_t *dst_p,
|
|
|
+ const struct a07_ecu_30_a_t *src_p,
|
|
|
+ size_t size);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Unpack message ECU_30A.
|
|
|
+ *
|
|
|
+ * @param[out] dst_p Object to unpack the message into.
|
|
|
+ * @param[in] src_p Message to unpack.
|
|
|
+ * @param[in] size Size of src_p.
|
|
|
+ *
|
|
|
+ * @return zero(0) or negative error code.
|
|
|
+ */
|
|
|
+int a07_ecu_30_a_unpack(
|
|
|
+ struct a07_ecu_30_a_t *dst_p,
|
|
|
+ const uint8_t *src_p,
|
|
|
+ size_t size);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Init message fields to default values from ECU_30A.
|
|
|
+ *
|
|
|
+ * @param[in] msg_p Message to init.
|
|
|
+ *
|
|
|
+ * @return zero(0) on success or (-1) in case of nullptr argument.
|
|
|
+ */
|
|
|
+int a07_ecu_30_a_init(struct a07_ecu_30_a_t *msg_p);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Encode given signal by applying scaling and offset.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to encode.
|
|
|
+ *
|
|
|
+ * @return Encoded signal.
|
|
|
+ */
|
|
|
+uint8_t a07_ecu_30_a_ads_udlc_turn_light_req_encode(double value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Decode given signal by applying scaling and offset.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to decode.
|
|
|
+ *
|
|
|
+ * @return Decoded signal.
|
|
|
+ */
|
|
|
+double a07_ecu_30_a_ads_udlc_turn_light_req_decode(uint8_t value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Check that given signal is in allowed range.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to check.
|
|
|
+ *
|
|
|
+ * @return true if in range, false otherwise.
|
|
|
+ */
|
|
|
+bool a07_ecu_30_a_ads_udlc_turn_light_req_is_in_range(uint8_t value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Pack message ECU_2BF.
|
|
|
+ *
|
|
|
+ * @param[out] dst_p Buffer to pack the message into.
|
|
|
+ * @param[in] src_p Data to pack.
|
|
|
+ * @param[in] size Size of dst_p.
|
|
|
+ *
|
|
|
+ * @return Size of packed data, or negative error code.
|
|
|
+ */
|
|
|
+int a07_ecu_2_bf_pack(
|
|
|
+ uint8_t *dst_p,
|
|
|
+ const struct a07_ecu_2_bf_t *src_p,
|
|
|
+ size_t size);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Unpack message ECU_2BF.
|
|
|
+ *
|
|
|
+ * @param[out] dst_p Object to unpack the message into.
|
|
|
+ * @param[in] src_p Message to unpack.
|
|
|
+ * @param[in] size Size of src_p.
|
|
|
+ *
|
|
|
+ * @return zero(0) or negative error code.
|
|
|
+ */
|
|
|
+int a07_ecu_2_bf_unpack(
|
|
|
+ struct a07_ecu_2_bf_t *dst_p,
|
|
|
+ const uint8_t *src_p,
|
|
|
+ size_t size);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Init message fields to default values from ECU_2BF.
|
|
|
+ *
|
|
|
+ * @param[in] msg_p Message to init.
|
|
|
+ *
|
|
|
+ * @return zero(0) on success or (-1) in case of nullptr argument.
|
|
|
+ */
|
|
|
+int a07_ecu_2_bf_init(struct a07_ecu_2_bf_t *msg_p);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Encode given signal by applying scaling and offset.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to encode.
|
|
|
+ *
|
|
|
+ * @return Encoded signal.
|
|
|
+ */
|
|
|
+uint8_t a07_ecu_2_bf_apa_bcm_horn_command_encode(double value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Decode given signal by applying scaling and offset.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to decode.
|
|
|
+ *
|
|
|
+ * @return Decoded signal.
|
|
|
+ */
|
|
|
+double a07_ecu_2_bf_apa_bcm_horn_command_decode(uint8_t value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Check that given signal is in allowed range.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to check.
|
|
|
+ *
|
|
|
+ * @return true if in range, false otherwise.
|
|
|
+ */
|
|
|
+bool a07_ecu_2_bf_apa_bcm_horn_command_is_in_range(uint8_t value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Pack message ECU_2CA.
|
|
|
+ *
|
|
|
+ * @param[out] dst_p Buffer to pack the message into.
|
|
|
+ * @param[in] src_p Data to pack.
|
|
|
+ * @param[in] size Size of dst_p.
|
|
|
+ *
|
|
|
+ * @return Size of packed data, or negative error code.
|
|
|
+ */
|
|
|
+int a07_ecu_2_ca_pack(
|
|
|
+ uint8_t *dst_p,
|
|
|
+ const struct a07_ecu_2_ca_t *src_p,
|
|
|
+ size_t size);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Unpack message ECU_2CA.
|
|
|
+ *
|
|
|
+ * @param[out] dst_p Object to unpack the message into.
|
|
|
+ * @param[in] src_p Message to unpack.
|
|
|
+ * @param[in] size Size of src_p.
|
|
|
+ *
|
|
|
+ * @return zero(0) or negative error code.
|
|
|
+ */
|
|
|
+int a07_ecu_2_ca_unpack(
|
|
|
+ struct a07_ecu_2_ca_t *dst_p,
|
|
|
+ const uint8_t *src_p,
|
|
|
+ size_t size);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Init message fields to default values from ECU_2CA.
|
|
|
+ *
|
|
|
+ * @param[in] msg_p Message to init.
|
|
|
+ *
|
|
|
+ * @return zero(0) on success or (-1) in case of nullptr argument.
|
|
|
+ */
|
|
|
+int a07_ecu_2_ca_init(struct a07_ecu_2_ca_t *msg_p);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Encode given signal by applying scaling and offset.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to encode.
|
|
|
+ *
|
|
|
+ * @return Encoded signal.
|
|
|
+ */
|
|
|
+uint8_t a07_ecu_2_ca_cdc_auto_head_li_set_encode(double value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Decode given signal by applying scaling and offset.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to decode.
|
|
|
+ *
|
|
|
+ * @return Decoded signal.
|
|
|
+ */
|
|
|
+double a07_ecu_2_ca_cdc_auto_head_li_set_decode(uint8_t value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Check that given signal is in allowed range.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to check.
|
|
|
+ *
|
|
|
+ * @return true if in range, false otherwise.
|
|
|
+ */
|
|
|
+bool a07_ecu_2_ca_cdc_auto_head_li_set_is_in_range(uint8_t value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Encode given signal by applying scaling and offset.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to encode.
|
|
|
+ *
|
|
|
+ * @return Encoded signal.
|
|
|
+ */
|
|
|
+uint8_t a07_ecu_2_ca_cdc_drvr_sld_fwd_st_encode(double value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Decode given signal by applying scaling and offset.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to decode.
|
|
|
+ *
|
|
|
+ * @return Decoded signal.
|
|
|
+ */
|
|
|
+double a07_ecu_2_ca_cdc_drvr_sld_fwd_st_decode(uint8_t value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Check that given signal is in allowed range.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to check.
|
|
|
+ *
|
|
|
+ * @return true if in range, false otherwise.
|
|
|
+ */
|
|
|
+bool a07_ecu_2_ca_cdc_drvr_sld_fwd_st_is_in_range(uint8_t value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Encode given signal by applying scaling and offset.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to encode.
|
|
|
+ *
|
|
|
+ * @return Encoded signal.
|
|
|
+ */
|
|
|
+uint8_t a07_ecu_2_ca_cdc_drvr_sld_backw_st_encode(double value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Decode given signal by applying scaling and offset.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to decode.
|
|
|
+ *
|
|
|
+ * @return Decoded signal.
|
|
|
+ */
|
|
|
+double a07_ecu_2_ca_cdc_drvr_sld_backw_st_decode(uint8_t value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Check that given signal is in allowed range.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to check.
|
|
|
+ *
|
|
|
+ * @return true if in range, false otherwise.
|
|
|
+ */
|
|
|
+bool a07_ecu_2_ca_cdc_drvr_sld_backw_st_is_in_range(uint8_t value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Encode given signal by applying scaling and offset.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to encode.
|
|
|
+ *
|
|
|
+ * @return Encoded signal.
|
|
|
+ */
|
|
|
+uint8_t a07_ecu_2_ca_cdc_drvr_re_upwd_st_encode(double value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Decode given signal by applying scaling and offset.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to decode.
|
|
|
+ *
|
|
|
+ * @return Decoded signal.
|
|
|
+ */
|
|
|
+double a07_ecu_2_ca_cdc_drvr_re_upwd_st_decode(uint8_t value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Check that given signal is in allowed range.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to check.
|
|
|
+ *
|
|
|
+ * @return true if in range, false otherwise.
|
|
|
+ */
|
|
|
+bool a07_ecu_2_ca_cdc_drvr_re_upwd_st_is_in_range(uint8_t value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Encode given signal by applying scaling and offset.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to encode.
|
|
|
+ *
|
|
|
+ * @return Encoded signal.
|
|
|
+ */
|
|
|
+uint8_t a07_ecu_2_ca_cdc_drvr_re_dwnwd_st_encode(double value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Decode given signal by applying scaling and offset.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to decode.
|
|
|
+ *
|
|
|
+ * @return Decoded signal.
|
|
|
+ */
|
|
|
+double a07_ecu_2_ca_cdc_drvr_re_dwnwd_st_decode(uint8_t value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Check that given signal is in allowed range.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to check.
|
|
|
+ *
|
|
|
+ * @return true if in range, false otherwise.
|
|
|
+ */
|
|
|
+bool a07_ecu_2_ca_cdc_drvr_re_dwnwd_st_is_in_range(uint8_t value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Encode given signal by applying scaling and offset.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to encode.
|
|
|
+ *
|
|
|
+ * @return Encoded signal.
|
|
|
+ */
|
|
|
+uint8_t a07_ecu_2_ca_cdc_drvr_back_fwd_st_encode(double value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Decode given signal by applying scaling and offset.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to decode.
|
|
|
+ *
|
|
|
+ * @return Decoded signal.
|
|
|
+ */
|
|
|
+double a07_ecu_2_ca_cdc_drvr_back_fwd_st_decode(uint8_t value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Check that given signal is in allowed range.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to check.
|
|
|
+ *
|
|
|
+ * @return true if in range, false otherwise.
|
|
|
+ */
|
|
|
+bool a07_ecu_2_ca_cdc_drvr_back_fwd_st_is_in_range(uint8_t value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Encode given signal by applying scaling and offset.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to encode.
|
|
|
+ *
|
|
|
+ * @return Encoded signal.
|
|
|
+ */
|
|
|
+uint8_t a07_ecu_2_ca_cdc_drvr_back_back_st_encode(double value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Decode given signal by applying scaling and offset.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to decode.
|
|
|
+ *
|
|
|
+ * @return Decoded signal.
|
|
|
+ */
|
|
|
+double a07_ecu_2_ca_cdc_drvr_back_back_st_decode(uint8_t value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Check that given signal is in allowed range.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to check.
|
|
|
+ *
|
|
|
+ * @return true if in range, false otherwise.
|
|
|
+ */
|
|
|
+bool a07_ecu_2_ca_cdc_drvr_back_back_st_is_in_range(uint8_t value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Encode given signal by applying scaling and offset.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to encode.
|
|
|
+ *
|
|
|
+ * @return Encoded signal.
|
|
|
+ */
|
|
|
+uint8_t a07_ecu_2_ca_cdc_re_mirr_fold_req_encode(double value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Decode given signal by applying scaling and offset.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to decode.
|
|
|
+ *
|
|
|
+ * @return Decoded signal.
|
|
|
+ */
|
|
|
+double a07_ecu_2_ca_cdc_re_mirr_fold_req_decode(uint8_t value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Check that given signal is in allowed range.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to check.
|
|
|
+ *
|
|
|
+ * @return true if in range, false otherwise.
|
|
|
+ */
|
|
|
+bool a07_ecu_2_ca_cdc_re_mirr_fold_req_is_in_range(uint8_t value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Encode given signal by applying scaling and offset.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to encode.
|
|
|
+ *
|
|
|
+ * @return Encoded signal.
|
|
|
+ */
|
|
|
+uint8_t a07_ecu_2_ca_cdc_central_ctr_right_rear_window_encode(double value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Decode given signal by applying scaling and offset.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to decode.
|
|
|
+ *
|
|
|
+ * @return Decoded signal.
|
|
|
+ */
|
|
|
+double a07_ecu_2_ca_cdc_central_ctr_right_rear_window_decode(uint8_t value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Check that given signal is in allowed range.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to check.
|
|
|
+ *
|
|
|
+ * @return true if in range, false otherwise.
|
|
|
+ */
|
|
|
+bool a07_ecu_2_ca_cdc_central_ctr_right_rear_window_is_in_range(uint8_t value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Encode given signal by applying scaling and offset.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to encode.
|
|
|
+ *
|
|
|
+ * @return Encoded signal.
|
|
|
+ */
|
|
|
+uint8_t a07_ecu_2_ca_cdc_central_ctr_left_rear_window_encode(double value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Decode given signal by applying scaling and offset.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to decode.
|
|
|
+ *
|
|
|
+ * @return Decoded signal.
|
|
|
+ */
|
|
|
+double a07_ecu_2_ca_cdc_central_ctr_left_rear_window_decode(uint8_t value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Check that given signal is in allowed range.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to check.
|
|
|
+ *
|
|
|
+ * @return true if in range, false otherwise.
|
|
|
+ */
|
|
|
+bool a07_ecu_2_ca_cdc_central_ctr_left_rear_window_is_in_range(uint8_t value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Encode given signal by applying scaling and offset.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to encode.
|
|
|
+ *
|
|
|
+ * @return Encoded signal.
|
|
|
+ */
|
|
|
+uint8_t a07_ecu_2_ca_cdc_central_ctr_passenger_window_encode(double value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Decode given signal by applying scaling and offset.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to decode.
|
|
|
+ *
|
|
|
+ * @return Decoded signal.
|
|
|
+ */
|
|
|
+double a07_ecu_2_ca_cdc_central_ctr_passenger_window_decode(uint8_t value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Check that given signal is in allowed range.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to check.
|
|
|
+ *
|
|
|
+ * @return true if in range, false otherwise.
|
|
|
+ */
|
|
|
+bool a07_ecu_2_ca_cdc_central_ctr_passenger_window_is_in_range(uint8_t value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Encode given signal by applying scaling and offset.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to encode.
|
|
|
+ *
|
|
|
+ * @return Encoded signal.
|
|
|
+ */
|
|
|
+uint8_t a07_ecu_2_ca_cdc_central_ctr_driver_window_encode(double value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Decode given signal by applying scaling and offset.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to decode.
|
|
|
+ *
|
|
|
+ * @return Decoded signal.
|
|
|
+ */
|
|
|
+double a07_ecu_2_ca_cdc_central_ctr_driver_window_decode(uint8_t value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Check that given signal is in allowed range.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to check.
|
|
|
+ *
|
|
|
+ * @return true if in range, false otherwise.
|
|
|
+ */
|
|
|
+bool a07_ecu_2_ca_cdc_central_ctr_driver_window_is_in_range(uint8_t value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Encode given signal by applying scaling and offset.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to encode.
|
|
|
+ *
|
|
|
+ * @return Encoded signal.
|
|
|
+ */
|
|
|
+uint8_t a07_ecu_2_ca_cdc_left_right_mirror_set_sts_encode(double value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Decode given signal by applying scaling and offset.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to decode.
|
|
|
+ *
|
|
|
+ * @return Decoded signal.
|
|
|
+ */
|
|
|
+double a07_ecu_2_ca_cdc_left_right_mirror_set_sts_decode(uint8_t value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Check that given signal is in allowed range.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to check.
|
|
|
+ *
|
|
|
+ * @return true if in range, false otherwise.
|
|
|
+ */
|
|
|
+bool a07_ecu_2_ca_cdc_left_right_mirror_set_sts_is_in_range(uint8_t value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Encode given signal by applying scaling and offset.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to encode.
|
|
|
+ *
|
|
|
+ * @return Encoded signal.
|
|
|
+ */
|
|
|
+uint8_t a07_ecu_2_ca_cdc_drvr_t_set_encode(double value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Decode given signal by applying scaling and offset.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to decode.
|
|
|
+ *
|
|
|
+ * @return Decoded signal.
|
|
|
+ */
|
|
|
+double a07_ecu_2_ca_cdc_drvr_t_set_decode(uint8_t value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Check that given signal is in allowed range.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to check.
|
|
|
+ *
|
|
|
+ * @return true if in range, false otherwise.
|
|
|
+ */
|
|
|
+bool a07_ecu_2_ca_cdc_drvr_t_set_is_in_range(uint8_t value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Encode given signal by applying scaling and offset.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to encode.
|
|
|
+ *
|
|
|
+ * @return Encoded signal.
|
|
|
+ */
|
|
|
+uint8_t a07_ecu_2_ca_cdc_frnt_wind_lvl_set_encode(double value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Decode given signal by applying scaling and offset.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to decode.
|
|
|
+ *
|
|
|
+ * @return Decoded signal.
|
|
|
+ */
|
|
|
+double a07_ecu_2_ca_cdc_frnt_wind_lvl_set_decode(uint8_t value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Check that given signal is in allowed range.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to check.
|
|
|
+ *
|
|
|
+ * @return true if in range, false otherwise.
|
|
|
+ */
|
|
|
+bool a07_ecu_2_ca_cdc_frnt_wind_lvl_set_is_in_range(uint8_t value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Encode given signal by applying scaling and offset.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to encode.
|
|
|
+ *
|
|
|
+ * @return Encoded signal.
|
|
|
+ */
|
|
|
+uint8_t a07_ecu_2_ca_cdc_front_ac_off_set_encode(double value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Decode given signal by applying scaling and offset.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to decode.
|
|
|
+ *
|
|
|
+ * @return Decoded signal.
|
|
|
+ */
|
|
|
+double a07_ecu_2_ca_cdc_front_ac_off_set_decode(uint8_t value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Check that given signal is in allowed range.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to check.
|
|
|
+ *
|
|
|
+ * @return true if in range, false otherwise.
|
|
|
+ */
|
|
|
+bool a07_ecu_2_ca_cdc_front_ac_off_set_is_in_range(uint8_t value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Pack message ECU_372.
|
|
|
+ *
|
|
|
+ * @param[out] dst_p Buffer to pack the message into.
|
|
|
+ * @param[in] src_p Data to pack.
|
|
|
+ * @param[in] size Size of dst_p.
|
|
|
+ *
|
|
|
+ * @return Size of packed data, or negative error code.
|
|
|
+ */
|
|
|
+int a07_ecu_372_pack(
|
|
|
+ uint8_t *dst_p,
|
|
|
+ const struct a07_ecu_372_t *src_p,
|
|
|
+ size_t size);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Unpack message ECU_372.
|
|
|
+ *
|
|
|
+ * @param[out] dst_p Object to unpack the message into.
|
|
|
+ * @param[in] src_p Message to unpack.
|
|
|
+ * @param[in] size Size of src_p.
|
|
|
+ *
|
|
|
+ * @return zero(0) or negative error code.
|
|
|
+ */
|
|
|
+int a07_ecu_372_unpack(
|
|
|
+ struct a07_ecu_372_t *dst_p,
|
|
|
+ const uint8_t *src_p,
|
|
|
+ size_t size);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Init message fields to default values from ECU_372.
|
|
|
+ *
|
|
|
+ * @param[in] msg_p Message to init.
|
|
|
+ *
|
|
|
+ * @return zero(0) on success or (-1) in case of nullptr argument.
|
|
|
+ */
|
|
|
+int a07_ecu_372_init(struct a07_ecu_372_t *msg_p);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Encode given signal by applying scaling and offset.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to encode.
|
|
|
+ *
|
|
|
+ * @return Encoded signal.
|
|
|
+ */
|
|
|
+uint8_t a07_ecu_372_cdc_mirr_up_key_sts_encode(double value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Decode given signal by applying scaling and offset.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to decode.
|
|
|
+ *
|
|
|
+ * @return Decoded signal.
|
|
|
+ */
|
|
|
+double a07_ecu_372_cdc_mirr_up_key_sts_decode(uint8_t value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Check that given signal is in allowed range.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to check.
|
|
|
+ *
|
|
|
+ * @return true if in range, false otherwise.
|
|
|
+ */
|
|
|
+bool a07_ecu_372_cdc_mirr_up_key_sts_is_in_range(uint8_t value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Encode given signal by applying scaling and offset.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to encode.
|
|
|
+ *
|
|
|
+ * @return Encoded signal.
|
|
|
+ */
|
|
|
+uint8_t a07_ecu_372_cdc_mirr_down_key_sts_encode(double value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Decode given signal by applying scaling and offset.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to decode.
|
|
|
+ *
|
|
|
+ * @return Decoded signal.
|
|
|
+ */
|
|
|
+double a07_ecu_372_cdc_mirr_down_key_sts_decode(uint8_t value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Check that given signal is in allowed range.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to check.
|
|
|
+ *
|
|
|
+ * @return true if in range, false otherwise.
|
|
|
+ */
|
|
|
+bool a07_ecu_372_cdc_mirr_down_key_sts_is_in_range(uint8_t value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Encode given signal by applying scaling and offset.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to encode.
|
|
|
+ *
|
|
|
+ * @return Encoded signal.
|
|
|
+ */
|
|
|
+uint8_t a07_ecu_372_cdc_mirr_ri_turn_key_sts_encode(double value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Decode given signal by applying scaling and offset.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to decode.
|
|
|
+ *
|
|
|
+ * @return Decoded signal.
|
|
|
+ */
|
|
|
+double a07_ecu_372_cdc_mirr_ri_turn_key_sts_decode(uint8_t value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Check that given signal is in allowed range.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to check.
|
|
|
+ *
|
|
|
+ * @return true if in range, false otherwise.
|
|
|
+ */
|
|
|
+bool a07_ecu_372_cdc_mirr_ri_turn_key_sts_is_in_range(uint8_t value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Encode given signal by applying scaling and offset.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to encode.
|
|
|
+ *
|
|
|
+ * @return Encoded signal.
|
|
|
+ */
|
|
|
+uint8_t a07_ecu_372_cdc_mirr_le_turn_key_sts_encode(double value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Decode given signal by applying scaling and offset.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to decode.
|
|
|
+ *
|
|
|
+ * @return Decoded signal.
|
|
|
+ */
|
|
|
+double a07_ecu_372_cdc_mirr_le_turn_key_sts_decode(uint8_t value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Check that given signal is in allowed range.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to check.
|
|
|
+ *
|
|
|
+ * @return true if in range, false otherwise.
|
|
|
+ */
|
|
|
+bool a07_ecu_372_cdc_mirr_le_turn_key_sts_is_in_range(uint8_t value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Pack message HGW_1CA.
|
|
|
+ *
|
|
|
+ * @param[out] dst_p Buffer to pack the message into.
|
|
|
+ * @param[in] src_p Data to pack.
|
|
|
+ * @param[in] size Size of dst_p.
|
|
|
+ *
|
|
|
+ * @return Size of packed data, or negative error code.
|
|
|
+ */
|
|
|
+int a07_hgw_1_ca_pack(
|
|
|
+ uint8_t *dst_p,
|
|
|
+ const struct a07_hgw_1_ca_t *src_p,
|
|
|
+ size_t size);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Unpack message HGW_1CA.
|
|
|
+ *
|
|
|
+ * @param[out] dst_p Object to unpack the message into.
|
|
|
+ * @param[in] src_p Message to unpack.
|
|
|
+ * @param[in] size Size of src_p.
|
|
|
+ *
|
|
|
+ * @return zero(0) or negative error code.
|
|
|
+ */
|
|
|
+int a07_hgw_1_ca_unpack(
|
|
|
+ struct a07_hgw_1_ca_t *dst_p,
|
|
|
+ const uint8_t *src_p,
|
|
|
+ size_t size);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Init message fields to default values from HGW_1CA.
|
|
|
+ *
|
|
|
+ * @param[in] msg_p Message to init.
|
|
|
+ *
|
|
|
+ * @return zero(0) on success or (-1) in case of nullptr argument.
|
|
|
+ */
|
|
|
+int a07_hgw_1_ca_init(struct a07_hgw_1_ca_t *msg_p);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Encode given signal by applying scaling and offset.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to encode.
|
|
|
+ *
|
|
|
+ * @return Encoded signal.
|
|
|
+ */
|
|
|
+uint8_t a07_hgw_1_ca_whl_spd_ri_re_data_vld_encode(double value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Decode given signal by applying scaling and offset.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to decode.
|
|
|
+ *
|
|
|
+ * @return Decoded signal.
|
|
|
+ */
|
|
|
+double a07_hgw_1_ca_whl_spd_ri_re_data_vld_decode(uint8_t value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Check that given signal is in allowed range.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to check.
|
|
|
+ *
|
|
|
+ * @return true if in range, false otherwise.
|
|
|
+ */
|
|
|
+bool a07_hgw_1_ca_whl_spd_ri_re_data_vld_is_in_range(uint8_t value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Encode given signal by applying scaling and offset.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to encode.
|
|
|
+ *
|
|
|
+ * @return Encoded signal.
|
|
|
+ */
|
|
|
+uint16_t a07_hgw_1_ca_whl_spd_ri_re_data_encode(double value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Decode given signal by applying scaling and offset.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to decode.
|
|
|
+ *
|
|
|
+ * @return Decoded signal.
|
|
|
+ */
|
|
|
+double a07_hgw_1_ca_whl_spd_ri_re_data_decode(uint16_t value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Check that given signal is in allowed range.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to check.
|
|
|
+ *
|
|
|
+ * @return true if in range, false otherwise.
|
|
|
+ */
|
|
|
+bool a07_hgw_1_ca_whl_spd_ri_re_data_is_in_range(uint16_t value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Encode given signal by applying scaling and offset.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to encode.
|
|
|
+ *
|
|
|
+ * @return Encoded signal.
|
|
|
+ */
|
|
|
+uint8_t a07_hgw_1_ca_whl_spd_le_re_data_vld_encode(double value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Decode given signal by applying scaling and offset.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to decode.
|
|
|
+ *
|
|
|
+ * @return Decoded signal.
|
|
|
+ */
|
|
|
+double a07_hgw_1_ca_whl_spd_le_re_data_vld_decode(uint8_t value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Check that given signal is in allowed range.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to check.
|
|
|
+ *
|
|
|
+ * @return true if in range, false otherwise.
|
|
|
+ */
|
|
|
+bool a07_hgw_1_ca_whl_spd_le_re_data_vld_is_in_range(uint8_t value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Encode given signal by applying scaling and offset.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to encode.
|
|
|
+ *
|
|
|
+ * @return Encoded signal.
|
|
|
+ */
|
|
|
+uint16_t a07_hgw_1_ca_whl_spd_le_re_data_encode(double value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Decode given signal by applying scaling and offset.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to decode.
|
|
|
+ *
|
|
|
+ * @return Decoded signal.
|
|
|
+ */
|
|
|
+double a07_hgw_1_ca_whl_spd_le_re_data_decode(uint16_t value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Check that given signal is in allowed range.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to check.
|
|
|
+ *
|
|
|
+ * @return true if in range, false otherwise.
|
|
|
+ */
|
|
|
+bool a07_hgw_1_ca_whl_spd_le_re_data_is_in_range(uint16_t value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Encode given signal by applying scaling and offset.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to encode.
|
|
|
+ *
|
|
|
+ * @return Encoded signal.
|
|
|
+ */
|
|
|
+uint8_t a07_hgw_1_ca_esp_veh_spd_vld_encode(double value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Decode given signal by applying scaling and offset.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to decode.
|
|
|
+ *
|
|
|
+ * @return Decoded signal.
|
|
|
+ */
|
|
|
+double a07_hgw_1_ca_esp_veh_spd_vld_decode(uint8_t value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Check that given signal is in allowed range.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to check.
|
|
|
+ *
|
|
|
+ * @return true if in range, false otherwise.
|
|
|
+ */
|
|
|
+bool a07_hgw_1_ca_esp_veh_spd_vld_is_in_range(uint8_t value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Encode given signal by applying scaling and offset.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to encode.
|
|
|
+ *
|
|
|
+ * @return Encoded signal.
|
|
|
+ */
|
|
|
+uint16_t a07_hgw_1_ca_esp_veh_spd_encode(double value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Decode given signal by applying scaling and offset.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to decode.
|
|
|
+ *
|
|
|
+ * @return Decoded signal.
|
|
|
+ */
|
|
|
+double a07_hgw_1_ca_esp_veh_spd_decode(uint16_t value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Check that given signal is in allowed range.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to check.
|
|
|
+ *
|
|
|
+ * @return true if in range, false otherwise.
|
|
|
+ */
|
|
|
+bool a07_hgw_1_ca_esp_veh_spd_is_in_range(uint16_t value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Encode given signal by applying scaling and offset.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to encode.
|
|
|
+ *
|
|
|
+ * @return Encoded signal.
|
|
|
+ */
|
|
|
+uint8_t a07_hgw_1_ca_whl_spd_ri_frnt_data_vld_encode(double value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Decode given signal by applying scaling and offset.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to decode.
|
|
|
+ *
|
|
|
+ * @return Decoded signal.
|
|
|
+ */
|
|
|
+double a07_hgw_1_ca_whl_spd_ri_frnt_data_vld_decode(uint8_t value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Check that given signal is in allowed range.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to check.
|
|
|
+ *
|
|
|
+ * @return true if in range, false otherwise.
|
|
|
+ */
|
|
|
+bool a07_hgw_1_ca_whl_spd_ri_frnt_data_vld_is_in_range(uint8_t value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Encode given signal by applying scaling and offset.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to encode.
|
|
|
+ *
|
|
|
+ * @return Encoded signal.
|
|
|
+ */
|
|
|
+uint16_t a07_hgw_1_ca_whl_spd_ri_frnt_data_encode(double value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Decode given signal by applying scaling and offset.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to decode.
|
|
|
+ *
|
|
|
+ * @return Decoded signal.
|
|
|
+ */
|
|
|
+double a07_hgw_1_ca_whl_spd_ri_frnt_data_decode(uint16_t value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Check that given signal is in allowed range.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to check.
|
|
|
+ *
|
|
|
+ * @return true if in range, false otherwise.
|
|
|
+ */
|
|
|
+bool a07_hgw_1_ca_whl_spd_ri_frnt_data_is_in_range(uint16_t value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Encode given signal by applying scaling and offset.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to encode.
|
|
|
+ *
|
|
|
+ * @return Encoded signal.
|
|
|
+ */
|
|
|
+uint8_t a07_hgw_1_ca_whl_spd_le_frnt_data_vld_encode(double value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Decode given signal by applying scaling and offset.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to decode.
|
|
|
+ *
|
|
|
+ * @return Decoded signal.
|
|
|
+ */
|
|
|
+double a07_hgw_1_ca_whl_spd_le_frnt_data_vld_decode(uint8_t value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Check that given signal is in allowed range.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to check.
|
|
|
+ *
|
|
|
+ * @return true if in range, false otherwise.
|
|
|
+ */
|
|
|
+bool a07_hgw_1_ca_whl_spd_le_frnt_data_vld_is_in_range(uint8_t value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Encode given signal by applying scaling and offset.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to encode.
|
|
|
+ *
|
|
|
+ * @return Encoded signal.
|
|
|
+ */
|
|
|
+uint16_t a07_hgw_1_ca_whl_spd_le_frnt_data_encode(double value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Decode given signal by applying scaling and offset.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to decode.
|
|
|
+ *
|
|
|
+ * @return Decoded signal.
|
|
|
+ */
|
|
|
+double a07_hgw_1_ca_whl_spd_le_frnt_data_decode(uint16_t value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Check that given signal is in allowed range.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to check.
|
|
|
+ *
|
|
|
+ * @return true if in range, false otherwise.
|
|
|
+ */
|
|
|
+bool a07_hgw_1_ca_whl_spd_le_frnt_data_is_in_range(uint16_t value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Pack message HGW_169.
|
|
|
+ *
|
|
|
+ * @param[out] dst_p Buffer to pack the message into.
|
|
|
+ * @param[in] src_p Data to pack.
|
|
|
+ * @param[in] size Size of dst_p.
|
|
|
+ *
|
|
|
+ * @return Size of packed data, or negative error code.
|
|
|
+ */
|
|
|
+int a07_hgw_169_pack(
|
|
|
+ uint8_t *dst_p,
|
|
|
+ const struct a07_hgw_169_t *src_p,
|
|
|
+ size_t size);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Unpack message HGW_169.
|
|
|
+ *
|
|
|
+ * @param[out] dst_p Object to unpack the message into.
|
|
|
+ * @param[in] src_p Message to unpack.
|
|
|
+ * @param[in] size Size of src_p.
|
|
|
+ *
|
|
|
+ * @return zero(0) or negative error code.
|
|
|
+ */
|
|
|
+int a07_hgw_169_unpack(
|
|
|
+ struct a07_hgw_169_t *dst_p,
|
|
|
+ const uint8_t *src_p,
|
|
|
+ size_t size);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Init message fields to default values from HGW_169.
|
|
|
+ *
|
|
|
+ * @param[in] msg_p Message to init.
|
|
|
+ *
|
|
|
+ * @return zero(0) on success or (-1) in case of nullptr argument.
|
|
|
+ */
|
|
|
+int a07_hgw_169_init(struct a07_hgw_169_t *msg_p);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Encode given signal by applying scaling and offset.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to encode.
|
|
|
+ *
|
|
|
+ * @return Encoded signal.
|
|
|
+ */
|
|
|
+uint8_t a07_hgw_169_vcu_gear_posn_encode(double value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Decode given signal by applying scaling and offset.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to decode.
|
|
|
+ *
|
|
|
+ * @return Decoded signal.
|
|
|
+ */
|
|
|
+double a07_hgw_169_vcu_gear_posn_decode(uint8_t value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Check that given signal is in allowed range.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to check.
|
|
|
+ *
|
|
|
+ * @return true if in range, false otherwise.
|
|
|
+ */
|
|
|
+bool a07_hgw_169_vcu_gear_posn_is_in_range(uint8_t value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Encode given signal by applying scaling and offset.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to encode.
|
|
|
+ *
|
|
|
+ * @return Encoded signal.
|
|
|
+ */
|
|
|
+uint8_t a07_hgw_169_vcu_pt_tq_real_vld_encode(double value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Decode given signal by applying scaling and offset.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to decode.
|
|
|
+ *
|
|
|
+ * @return Decoded signal.
|
|
|
+ */
|
|
|
+double a07_hgw_169_vcu_pt_tq_real_vld_decode(uint8_t value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Check that given signal is in allowed range.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to check.
|
|
|
+ *
|
|
|
+ * @return true if in range, false otherwise.
|
|
|
+ */
|
|
|
+bool a07_hgw_169_vcu_pt_tq_real_vld_is_in_range(uint8_t value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Encode given signal by applying scaling and offset.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to encode.
|
|
|
+ *
|
|
|
+ * @return Encoded signal.
|
|
|
+ */
|
|
|
+uint8_t a07_hgw_169_vcu_pt_tq_req_avl_encode(double value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Decode given signal by applying scaling and offset.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to decode.
|
|
|
+ *
|
|
|
+ * @return Decoded signal.
|
|
|
+ */
|
|
|
+double a07_hgw_169_vcu_pt_tq_req_avl_decode(uint8_t value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Check that given signal is in allowed range.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to check.
|
|
|
+ *
|
|
|
+ * @return true if in range, false otherwise.
|
|
|
+ */
|
|
|
+bool a07_hgw_169_vcu_pt_tq_req_avl_is_in_range(uint8_t value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Encode given signal by applying scaling and offset.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to encode.
|
|
|
+ *
|
|
|
+ * @return Encoded signal.
|
|
|
+ */
|
|
|
+uint8_t a07_hgw_169_vcu_shift_lvl_posn_encode(double value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Decode given signal by applying scaling and offset.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to decode.
|
|
|
+ *
|
|
|
+ * @return Decoded signal.
|
|
|
+ */
|
|
|
+double a07_hgw_169_vcu_shift_lvl_posn_decode(uint8_t value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Check that given signal is in allowed range.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to check.
|
|
|
+ *
|
|
|
+ * @return true if in range, false otherwise.
|
|
|
+ */
|
|
|
+bool a07_hgw_169_vcu_shift_lvl_posn_is_in_range(uint8_t value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Encode given signal by applying scaling and offset.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to encode.
|
|
|
+ *
|
|
|
+ * @return Encoded signal.
|
|
|
+ */
|
|
|
+uint16_t a07_hgw_169_vcu_pt_tq_real_encode(double value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Decode given signal by applying scaling and offset.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to decode.
|
|
|
+ *
|
|
|
+ * @return Decoded signal.
|
|
|
+ */
|
|
|
+double a07_hgw_169_vcu_pt_tq_real_decode(uint16_t value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Check that given signal is in allowed range.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to check.
|
|
|
+ *
|
|
|
+ * @return true if in range, false otherwise.
|
|
|
+ */
|
|
|
+bool a07_hgw_169_vcu_pt_tq_real_is_in_range(uint16_t value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Encode given signal by applying scaling and offset.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to encode.
|
|
|
+ *
|
|
|
+ * @return Encoded signal.
|
|
|
+ */
|
|
|
+uint8_t a07_hgw_169_vcu_rdy_sts_encode(double value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Decode given signal by applying scaling and offset.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to decode.
|
|
|
+ *
|
|
|
+ * @return Decoded signal.
|
|
|
+ */
|
|
|
+double a07_hgw_169_vcu_rdy_sts_decode(uint8_t value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Check that given signal is in allowed range.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to check.
|
|
|
+ *
|
|
|
+ * @return true if in range, false otherwise.
|
|
|
+ */
|
|
|
+bool a07_hgw_169_vcu_rdy_sts_is_in_range(uint8_t value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Pack message HGW_178.
|
|
|
+ *
|
|
|
+ * @param[out] dst_p Buffer to pack the message into.
|
|
|
+ * @param[in] src_p Data to pack.
|
|
|
+ * @param[in] size Size of dst_p.
|
|
|
+ *
|
|
|
+ * @return Size of packed data, or negative error code.
|
|
|
+ */
|
|
|
+int a07_hgw_178_pack(
|
|
|
+ uint8_t *dst_p,
|
|
|
+ const struct a07_hgw_178_t *src_p,
|
|
|
+ size_t size);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Unpack message HGW_178.
|
|
|
+ *
|
|
|
+ * @param[out] dst_p Object to unpack the message into.
|
|
|
+ * @param[in] src_p Message to unpack.
|
|
|
+ * @param[in] size Size of src_p.
|
|
|
+ *
|
|
|
+ * @return zero(0) or negative error code.
|
|
|
+ */
|
|
|
+int a07_hgw_178_unpack(
|
|
|
+ struct a07_hgw_178_t *dst_p,
|
|
|
+ const uint8_t *src_p,
|
|
|
+ size_t size);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Init message fields to default values from HGW_178.
|
|
|
+ *
|
|
|
+ * @param[in] msg_p Message to init.
|
|
|
+ *
|
|
|
+ * @return zero(0) on success or (-1) in case of nullptr argument.
|
|
|
+ */
|
|
|
+int a07_hgw_178_init(struct a07_hgw_178_t *msg_p);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Encode given signal by applying scaling and offset.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to encode.
|
|
|
+ *
|
|
|
+ * @return Encoded signal.
|
|
|
+ */
|
|
|
+uint16_t a07_hgw_178_eps_actual_motor_torq_encode(double value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Decode given signal by applying scaling and offset.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to decode.
|
|
|
+ *
|
|
|
+ * @return Decoded signal.
|
|
|
+ */
|
|
|
+double a07_hgw_178_eps_actual_motor_torq_decode(uint16_t value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Check that given signal is in allowed range.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to check.
|
|
|
+ *
|
|
|
+ * @return true if in range, false otherwise.
|
|
|
+ */
|
|
|
+bool a07_hgw_178_eps_actual_motor_torq_is_in_range(uint16_t value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Encode given signal by applying scaling and offset.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to encode.
|
|
|
+ *
|
|
|
+ * @return Encoded signal.
|
|
|
+ */
|
|
|
+uint16_t a07_hgw_178_eps_max_safety_torsion_bar_torq_encode(double value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Decode given signal by applying scaling and offset.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to decode.
|
|
|
+ *
|
|
|
+ * @return Decoded signal.
|
|
|
+ */
|
|
|
+double a07_hgw_178_eps_max_safety_torsion_bar_torq_decode(uint16_t value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Check that given signal is in allowed range.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to check.
|
|
|
+ *
|
|
|
+ * @return true if in range, false otherwise.
|
|
|
+ */
|
|
|
+bool a07_hgw_178_eps_max_safety_torsion_bar_torq_is_in_range(uint16_t value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Encode given signal by applying scaling and offset.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to encode.
|
|
|
+ *
|
|
|
+ * @return Encoded signal.
|
|
|
+ */
|
|
|
+uint16_t a07_hgw_178_eps_min_safety_torsion_bar_torq_encode(double value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Decode given signal by applying scaling and offset.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to decode.
|
|
|
+ *
|
|
|
+ * @return Decoded signal.
|
|
|
+ */
|
|
|
+double a07_hgw_178_eps_min_safety_torsion_bar_torq_decode(uint16_t value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Check that given signal is in allowed range.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to check.
|
|
|
+ *
|
|
|
+ * @return true if in range, false otherwise.
|
|
|
+ */
|
|
|
+bool a07_hgw_178_eps_min_safety_torsion_bar_torq_is_in_range(uint16_t value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Encode given signal by applying scaling and offset.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to encode.
|
|
|
+ *
|
|
|
+ * @return Encoded signal.
|
|
|
+ */
|
|
|
+uint16_t a07_hgw_178_eps_actual_torsion_bar_torq_encode(double value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Decode given signal by applying scaling and offset.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to decode.
|
|
|
+ *
|
|
|
+ * @return Decoded signal.
|
|
|
+ */
|
|
|
+double a07_hgw_178_eps_actual_torsion_bar_torq_decode(uint16_t value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Check that given signal is in allowed range.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to check.
|
|
|
+ *
|
|
|
+ * @return true if in range, false otherwise.
|
|
|
+ */
|
|
|
+bool a07_hgw_178_eps_actual_torsion_bar_torq_is_in_range(uint16_t value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Pack message HGW_188.
|
|
|
+ *
|
|
|
+ * @param[out] dst_p Buffer to pack the message into.
|
|
|
+ * @param[in] src_p Data to pack.
|
|
|
+ * @param[in] size Size of dst_p.
|
|
|
+ *
|
|
|
+ * @return Size of packed data, or negative error code.
|
|
|
+ */
|
|
|
+int a07_hgw_188_pack(
|
|
|
+ uint8_t *dst_p,
|
|
|
+ const struct a07_hgw_188_t *src_p,
|
|
|
+ size_t size);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Unpack message HGW_188.
|
|
|
+ *
|
|
|
+ * @param[out] dst_p Object to unpack the message into.
|
|
|
+ * @param[in] src_p Message to unpack.
|
|
|
+ * @param[in] size Size of src_p.
|
|
|
+ *
|
|
|
+ * @return zero(0) or negative error code.
|
|
|
+ */
|
|
|
+int a07_hgw_188_unpack(
|
|
|
+ struct a07_hgw_188_t *dst_p,
|
|
|
+ const uint8_t *src_p,
|
|
|
+ size_t size);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Init message fields to default values from HGW_188.
|
|
|
+ *
|
|
|
+ * @param[in] msg_p Message to init.
|
|
|
+ *
|
|
|
+ * @return zero(0) on success or (-1) in case of nullptr argument.
|
|
|
+ */
|
|
|
+int a07_hgw_188_init(struct a07_hgw_188_t *msg_p);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Encode given signal by applying scaling and offset.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to encode.
|
|
|
+ *
|
|
|
+ * @return Encoded signal.
|
|
|
+ */
|
|
|
+uint16_t a07_hgw_188_eps_sas_steer_ag_encode(double value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Decode given signal by applying scaling and offset.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to decode.
|
|
|
+ *
|
|
|
+ * @return Decoded signal.
|
|
|
+ */
|
|
|
+double a07_hgw_188_eps_sas_steer_ag_decode(uint16_t value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Check that given signal is in allowed range.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to check.
|
|
|
+ *
|
|
|
+ * @return true if in range, false otherwise.
|
|
|
+ */
|
|
|
+bool a07_hgw_188_eps_sas_steer_ag_is_in_range(uint16_t value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Encode given signal by applying scaling and offset.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to encode.
|
|
|
+ *
|
|
|
+ * @return Encoded signal.
|
|
|
+ */
|
|
|
+uint8_t a07_hgw_188_eps_steer_ag_rate_encode(double value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Decode given signal by applying scaling and offset.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to decode.
|
|
|
+ *
|
|
|
+ * @return Decoded signal.
|
|
|
+ */
|
|
|
+double a07_hgw_188_eps_steer_ag_rate_decode(uint8_t value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Check that given signal is in allowed range.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to check.
|
|
|
+ *
|
|
|
+ * @return true if in range, false otherwise.
|
|
|
+ */
|
|
|
+bool a07_hgw_188_eps_steer_ag_rate_is_in_range(uint8_t value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Encode given signal by applying scaling and offset.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to encode.
|
|
|
+ *
|
|
|
+ * @return Encoded signal.
|
|
|
+ */
|
|
|
+uint8_t a07_hgw_188_eps_sas_steer_ag_vld_encode(double value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Decode given signal by applying scaling and offset.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to decode.
|
|
|
+ *
|
|
|
+ * @return Decoded signal.
|
|
|
+ */
|
|
|
+double a07_hgw_188_eps_sas_steer_ag_vld_decode(uint8_t value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Check that given signal is in allowed range.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to check.
|
|
|
+ *
|
|
|
+ * @return true if in range, false otherwise.
|
|
|
+ */
|
|
|
+bool a07_hgw_188_eps_sas_steer_ag_vld_is_in_range(uint8_t value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Encode given signal by applying scaling and offset.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to encode.
|
|
|
+ *
|
|
|
+ * @return Encoded signal.
|
|
|
+ */
|
|
|
+uint8_t a07_hgw_188_eps_sas_cal_sts_encode(double value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Decode given signal by applying scaling and offset.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to decode.
|
|
|
+ *
|
|
|
+ * @return Decoded signal.
|
|
|
+ */
|
|
|
+double a07_hgw_188_eps_sas_cal_sts_decode(uint8_t value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Check that given signal is in allowed range.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to check.
|
|
|
+ *
|
|
|
+ * @return true if in range, false otherwise.
|
|
|
+ */
|
|
|
+bool a07_hgw_188_eps_sas_cal_sts_is_in_range(uint8_t value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Pack message HGW_280.
|
|
|
+ *
|
|
|
+ * @param[out] dst_p Buffer to pack the message into.
|
|
|
+ * @param[in] src_p Data to pack.
|
|
|
+ * @param[in] size Size of dst_p.
|
|
|
+ *
|
|
|
+ * @return Size of packed data, or negative error code.
|
|
|
+ */
|
|
|
+int a07_hgw_280_pack(
|
|
|
+ uint8_t *dst_p,
|
|
|
+ const struct a07_hgw_280_t *src_p,
|
|
|
+ size_t size);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Unpack message HGW_280.
|
|
|
+ *
|
|
|
+ * @param[out] dst_p Object to unpack the message into.
|
|
|
+ * @param[in] src_p Message to unpack.
|
|
|
+ * @param[in] size Size of src_p.
|
|
|
+ *
|
|
|
+ * @return zero(0) or negative error code.
|
|
|
+ */
|
|
|
+int a07_hgw_280_unpack(
|
|
|
+ struct a07_hgw_280_t *dst_p,
|
|
|
+ const uint8_t *src_p,
|
|
|
+ size_t size);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Init message fields to default values from HGW_280.
|
|
|
+ *
|
|
|
+ * @param[in] msg_p Message to init.
|
|
|
+ *
|
|
|
+ * @return zero(0) on success or (-1) in case of nullptr argument.
|
|
|
+ */
|
|
|
+int a07_hgw_280_init(struct a07_hgw_280_t *msg_p);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Encode given signal by applying scaling and offset.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to encode.
|
|
|
+ *
|
|
|
+ * @return Encoded signal.
|
|
|
+ */
|
|
|
+uint16_t a07_hgw_280_esp_long_accel_encode(double value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Decode given signal by applying scaling and offset.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to decode.
|
|
|
+ *
|
|
|
+ * @return Decoded signal.
|
|
|
+ */
|
|
|
+double a07_hgw_280_esp_long_accel_decode(uint16_t value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Check that given signal is in allowed range.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to check.
|
|
|
+ *
|
|
|
+ * @return true if in range, false otherwise.
|
|
|
+ */
|
|
|
+bool a07_hgw_280_esp_long_accel_is_in_range(uint16_t value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Pack message HGW_213.
|
|
|
+ *
|
|
|
+ * @param[out] dst_p Buffer to pack the message into.
|
|
|
+ * @param[in] src_p Data to pack.
|
|
|
+ * @param[in] size Size of dst_p.
|
|
|
+ *
|
|
|
+ * @return Size of packed data, or negative error code.
|
|
|
+ */
|
|
|
+int a07_hgw_213_pack(
|
|
|
+ uint8_t *dst_p,
|
|
|
+ const struct a07_hgw_213_t *src_p,
|
|
|
+ size_t size);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Unpack message HGW_213.
|
|
|
+ *
|
|
|
+ * @param[out] dst_p Object to unpack the message into.
|
|
|
+ * @param[in] src_p Message to unpack.
|
|
|
+ * @param[in] size Size of src_p.
|
|
|
+ *
|
|
|
+ * @return zero(0) or negative error code.
|
|
|
+ */
|
|
|
+int a07_hgw_213_unpack(
|
|
|
+ struct a07_hgw_213_t *dst_p,
|
|
|
+ const uint8_t *src_p,
|
|
|
+ size_t size);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Init message fields to default values from HGW_213.
|
|
|
+ *
|
|
|
+ * @param[in] msg_p Message to init.
|
|
|
+ *
|
|
|
+ * @return zero(0) on success or (-1) in case of nullptr argument.
|
|
|
+ */
|
|
|
+int a07_hgw_213_init(struct a07_hgw_213_t *msg_p);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Encode given signal by applying scaling and offset.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to encode.
|
|
|
+ *
|
|
|
+ * @return Encoded signal.
|
|
|
+ */
|
|
|
+uint8_t a07_hgw_213_esp_brake_force_encode(double value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Decode given signal by applying scaling and offset.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to decode.
|
|
|
+ *
|
|
|
+ * @return Decoded signal.
|
|
|
+ */
|
|
|
+double a07_hgw_213_esp_brake_force_decode(uint8_t value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Check that given signal is in allowed range.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to check.
|
|
|
+ *
|
|
|
+ * @return true if in range, false otherwise.
|
|
|
+ */
|
|
|
+bool a07_hgw_213_esp_brake_force_is_in_range(uint8_t value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Encode given signal by applying scaling and offset.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to encode.
|
|
|
+ *
|
|
|
+ * @return Encoded signal.
|
|
|
+ */
|
|
|
+uint8_t a07_hgw_213_esp_cdd_active_apa_encode(double value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Decode given signal by applying scaling and offset.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to decode.
|
|
|
+ *
|
|
|
+ * @return Decoded signal.
|
|
|
+ */
|
|
|
+double a07_hgw_213_esp_cdd_active_apa_decode(uint8_t value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Check that given signal is in allowed range.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to check.
|
|
|
+ *
|
|
|
+ * @return true if in range, false otherwise.
|
|
|
+ */
|
|
|
+bool a07_hgw_213_esp_cdd_active_apa_is_in_range(uint8_t value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Encode given signal by applying scaling and offset.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to encode.
|
|
|
+ *
|
|
|
+ * @return Encoded signal.
|
|
|
+ */
|
|
|
+uint8_t a07_hgw_213_esp_cdd_available_apa_encode(double value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Decode given signal by applying scaling and offset.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to decode.
|
|
|
+ *
|
|
|
+ * @return Decoded signal.
|
|
|
+ */
|
|
|
+double a07_hgw_213_esp_cdd_available_apa_decode(uint8_t value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Check that given signal is in allowed range.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to check.
|
|
|
+ *
|
|
|
+ * @return true if in range, false otherwise.
|
|
|
+ */
|
|
|
+bool a07_hgw_213_esp_cdd_available_apa_is_in_range(uint8_t value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Pack message HGW_257.
|
|
|
+ *
|
|
|
+ * @param[out] dst_p Buffer to pack the message into.
|
|
|
+ * @param[in] src_p Data to pack.
|
|
|
+ * @param[in] size Size of dst_p.
|
|
|
+ *
|
|
|
+ * @return Size of packed data, or negative error code.
|
|
|
+ */
|
|
|
+int a07_hgw_257_pack(
|
|
|
+ uint8_t *dst_p,
|
|
|
+ const struct a07_hgw_257_t *src_p,
|
|
|
+ size_t size);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Unpack message HGW_257.
|
|
|
+ *
|
|
|
+ * @param[out] dst_p Object to unpack the message into.
|
|
|
+ * @param[in] src_p Message to unpack.
|
|
|
+ * @param[in] size Size of src_p.
|
|
|
+ *
|
|
|
+ * @return zero(0) or negative error code.
|
|
|
+ */
|
|
|
+int a07_hgw_257_unpack(
|
|
|
+ struct a07_hgw_257_t *dst_p,
|
|
|
+ const uint8_t *src_p,
|
|
|
+ size_t size);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Init message fields to default values from HGW_257.
|
|
|
+ *
|
|
|
+ * @param[in] msg_p Message to init.
|
|
|
+ *
|
|
|
+ * @return zero(0) on success or (-1) in case of nullptr argument.
|
|
|
+ */
|
|
|
+int a07_hgw_257_init(struct a07_hgw_257_t *msg_p);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Encode given signal by applying scaling and offset.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to encode.
|
|
|
+ *
|
|
|
+ * @return Encoded signal.
|
|
|
+ */
|
|
|
+uint8_t a07_hgw_257_eps_iacc_abortreason_encode(double value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Decode given signal by applying scaling and offset.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to decode.
|
|
|
+ *
|
|
|
+ * @return Decoded signal.
|
|
|
+ */
|
|
|
+double a07_hgw_257_eps_iacc_abortreason_decode(uint8_t value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Check that given signal is in allowed range.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to check.
|
|
|
+ *
|
|
|
+ * @return true if in range, false otherwise.
|
|
|
+ */
|
|
|
+bool a07_hgw_257_eps_iacc_abortreason_is_in_range(uint8_t value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Pack message HGW_186.
|
|
|
+ *
|
|
|
+ * @param[out] dst_p Buffer to pack the message into.
|
|
|
+ * @param[in] src_p Data to pack.
|
|
|
+ * @param[in] size Size of dst_p.
|
|
|
+ *
|
|
|
+ * @return Size of packed data, or negative error code.
|
|
|
+ */
|
|
|
+int a07_hgw_186_pack(
|
|
|
+ uint8_t *dst_p,
|
|
|
+ const struct a07_hgw_186_t *src_p,
|
|
|
+ size_t size);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Unpack message HGW_186.
|
|
|
+ *
|
|
|
+ * @param[out] dst_p Object to unpack the message into.
|
|
|
+ * @param[in] src_p Message to unpack.
|
|
|
+ * @param[in] size Size of src_p.
|
|
|
+ *
|
|
|
+ * @return zero(0) or negative error code.
|
|
|
+ */
|
|
|
+int a07_hgw_186_unpack(
|
|
|
+ struct a07_hgw_186_t *dst_p,
|
|
|
+ const uint8_t *src_p,
|
|
|
+ size_t size);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Init message fields to default values from HGW_186.
|
|
|
+ *
|
|
|
+ * @param[in] msg_p Message to init.
|
|
|
+ *
|
|
|
+ * @return zero(0) on success or (-1) in case of nullptr argument.
|
|
|
+ */
|
|
|
+int a07_hgw_186_init(struct a07_hgw_186_t *msg_p);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Encode given signal by applying scaling and offset.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to encode.
|
|
|
+ *
|
|
|
+ * @return Encoded signal.
|
|
|
+ */
|
|
|
+uint16_t a07_hgw_186_eps_measured_torsion_bar_torque_encode(double value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Decode given signal by applying scaling and offset.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to decode.
|
|
|
+ *
|
|
|
+ * @return Decoded signal.
|
|
|
+ */
|
|
|
+double a07_hgw_186_eps_measured_torsion_bar_torque_decode(uint16_t value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Check that given signal is in allowed range.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to check.
|
|
|
+ *
|
|
|
+ * @return true if in range, false otherwise.
|
|
|
+ */
|
|
|
+bool a07_hgw_186_eps_measured_torsion_bar_torque_is_in_range(uint16_t value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Encode given signal by applying scaling and offset.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to encode.
|
|
|
+ *
|
|
|
+ * @return Encoded signal.
|
|
|
+ */
|
|
|
+uint8_t a07_hgw_186_eps_lat_ctrl_active_encode(double value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Decode given signal by applying scaling and offset.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to decode.
|
|
|
+ *
|
|
|
+ * @return Decoded signal.
|
|
|
+ */
|
|
|
+double a07_hgw_186_eps_lat_ctrl_active_decode(uint8_t value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Check that given signal is in allowed range.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to check.
|
|
|
+ *
|
|
|
+ * @return true if in range, false otherwise.
|
|
|
+ */
|
|
|
+bool a07_hgw_186_eps_lat_ctrl_active_is_in_range(uint8_t value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Encode given signal by applying scaling and offset.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to encode.
|
|
|
+ *
|
|
|
+ * @return Encoded signal.
|
|
|
+ */
|
|
|
+uint8_t a07_hgw_186_eps_lat_ctrl_availability_status_encode(double value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Decode given signal by applying scaling and offset.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to decode.
|
|
|
+ *
|
|
|
+ * @return Decoded signal.
|
|
|
+ */
|
|
|
+double a07_hgw_186_eps_lat_ctrl_availability_status_decode(uint8_t value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Check that given signal is in allowed range.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to check.
|
|
|
+ *
|
|
|
+ * @return true if in range, false otherwise.
|
|
|
+ */
|
|
|
+bool a07_hgw_186_eps_lat_ctrl_availability_status_is_in_range(uint8_t value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Pack message HGW_58.
|
|
|
+ *
|
|
|
+ * @param[out] dst_p Buffer to pack the message into.
|
|
|
+ * @param[in] src_p Data to pack.
|
|
|
+ * @param[in] size Size of dst_p.
|
|
|
+ *
|
|
|
+ * @return Size of packed data, or negative error code.
|
|
|
+ */
|
|
|
+int a07_hgw_58_pack(
|
|
|
+ uint8_t *dst_p,
|
|
|
+ const struct a07_hgw_58_t *src_p,
|
|
|
+ size_t size);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Unpack message HGW_58.
|
|
|
+ *
|
|
|
+ * @param[out] dst_p Object to unpack the message into.
|
|
|
+ * @param[in] src_p Message to unpack.
|
|
|
+ * @param[in] size Size of src_p.
|
|
|
+ *
|
|
|
+ * @return zero(0) or negative error code.
|
|
|
+ */
|
|
|
+int a07_hgw_58_unpack(
|
|
|
+ struct a07_hgw_58_t *dst_p,
|
|
|
+ const uint8_t *src_p,
|
|
|
+ size_t size);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Init message fields to default values from HGW_58.
|
|
|
+ *
|
|
|
+ * @param[in] msg_p Message to init.
|
|
|
+ *
|
|
|
+ * @return zero(0) on success or (-1) in case of nullptr argument.
|
|
|
+ */
|
|
|
+int a07_hgw_58_init(struct a07_hgw_58_t *msg_p);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Encode given signal by applying scaling and offset.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to encode.
|
|
|
+ *
|
|
|
+ * @return Encoded signal.
|
|
|
+ */
|
|
|
+uint8_t a07_hgw_58_srs_crash_outp_sts_encode(double value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Decode given signal by applying scaling and offset.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to decode.
|
|
|
+ *
|
|
|
+ * @return Decoded signal.
|
|
|
+ */
|
|
|
+double a07_hgw_58_srs_crash_outp_sts_decode(uint8_t value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Check that given signal is in allowed range.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to check.
|
|
|
+ *
|
|
|
+ * @return true if in range, false otherwise.
|
|
|
+ */
|
|
|
+bool a07_hgw_58_srs_crash_outp_sts_is_in_range(uint8_t value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Encode given signal by applying scaling and offset.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to encode.
|
|
|
+ *
|
|
|
+ * @return Encoded signal.
|
|
|
+ */
|
|
|
+uint8_t a07_hgw_58_srs_drvr_buc_swt_sts_encode(double value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Decode given signal by applying scaling and offset.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to decode.
|
|
|
+ *
|
|
|
+ * @return Decoded signal.
|
|
|
+ */
|
|
|
+double a07_hgw_58_srs_drvr_buc_swt_sts_decode(uint8_t value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Check that given signal is in allowed range.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to check.
|
|
|
+ *
|
|
|
+ * @return true if in range, false otherwise.
|
|
|
+ */
|
|
|
+bool a07_hgw_58_srs_drvr_buc_swt_sts_is_in_range(uint8_t value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Encode given signal by applying scaling and offset.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to encode.
|
|
|
+ *
|
|
|
+ * @return Encoded signal.
|
|
|
+ */
|
|
|
+uint8_t a07_hgw_58_srs_pass_buc_swt_sts_encode(double value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Decode given signal by applying scaling and offset.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to decode.
|
|
|
+ *
|
|
|
+ * @return Decoded signal.
|
|
|
+ */
|
|
|
+double a07_hgw_58_srs_pass_buc_swt_sts_decode(uint8_t value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Check that given signal is in allowed range.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to check.
|
|
|
+ *
|
|
|
+ * @return true if in range, false otherwise.
|
|
|
+ */
|
|
|
+bool a07_hgw_58_srs_pass_buc_swt_sts_is_in_range(uint8_t value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Encode given signal by applying scaling and offset.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to encode.
|
|
|
+ *
|
|
|
+ * @return Encoded signal.
|
|
|
+ */
|
|
|
+uint8_t a07_hgw_58_srs_le_re_buc_swt_sts_encode(double value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Decode given signal by applying scaling and offset.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to decode.
|
|
|
+ *
|
|
|
+ * @return Decoded signal.
|
|
|
+ */
|
|
|
+double a07_hgw_58_srs_le_re_buc_swt_sts_decode(uint8_t value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Check that given signal is in allowed range.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to check.
|
|
|
+ *
|
|
|
+ * @return true if in range, false otherwise.
|
|
|
+ */
|
|
|
+bool a07_hgw_58_srs_le_re_buc_swt_sts_is_in_range(uint8_t value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Encode given signal by applying scaling and offset.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to encode.
|
|
|
+ *
|
|
|
+ * @return Encoded signal.
|
|
|
+ */
|
|
|
+uint8_t a07_hgw_58_srs_mid_re_buc_swt_sts_encode(double value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Decode given signal by applying scaling and offset.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to decode.
|
|
|
+ *
|
|
|
+ * @return Decoded signal.
|
|
|
+ */
|
|
|
+double a07_hgw_58_srs_mid_re_buc_swt_sts_decode(uint8_t value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Check that given signal is in allowed range.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to check.
|
|
|
+ *
|
|
|
+ * @return true if in range, false otherwise.
|
|
|
+ */
|
|
|
+bool a07_hgw_58_srs_mid_re_buc_swt_sts_is_in_range(uint8_t value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Encode given signal by applying scaling and offset.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to encode.
|
|
|
+ *
|
|
|
+ * @return Encoded signal.
|
|
|
+ */
|
|
|
+uint8_t a07_hgw_58_srs_ri_re_buc_swt_sts_encode(double value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Decode given signal by applying scaling and offset.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to decode.
|
|
|
+ *
|
|
|
+ * @return Decoded signal.
|
|
|
+ */
|
|
|
+double a07_hgw_58_srs_ri_re_buc_swt_sts_decode(uint8_t value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Check that given signal is in allowed range.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to check.
|
|
|
+ *
|
|
|
+ * @return true if in range, false otherwise.
|
|
|
+ */
|
|
|
+bool a07_hgw_58_srs_ri_re_buc_swt_sts_is_in_range(uint8_t value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Pack message HGW_2DA.
|
|
|
+ *
|
|
|
+ * @param[out] dst_p Buffer to pack the message into.
|
|
|
+ * @param[in] src_p Data to pack.
|
|
|
+ * @param[in] size Size of dst_p.
|
|
|
+ *
|
|
|
+ * @return Size of packed data, or negative error code.
|
|
|
+ */
|
|
|
+int a07_hgw_2_da_pack(
|
|
|
+ uint8_t *dst_p,
|
|
|
+ const struct a07_hgw_2_da_t *src_p,
|
|
|
+ size_t size);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Unpack message HGW_2DA.
|
|
|
+ *
|
|
|
+ * @param[out] dst_p Object to unpack the message into.
|
|
|
+ * @param[in] src_p Message to unpack.
|
|
|
+ * @param[in] size Size of src_p.
|
|
|
+ *
|
|
|
+ * @return zero(0) or negative error code.
|
|
|
+ */
|
|
|
+int a07_hgw_2_da_unpack(
|
|
|
+ struct a07_hgw_2_da_t *dst_p,
|
|
|
+ const uint8_t *src_p,
|
|
|
+ size_t size);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Init message fields to default values from HGW_2DA.
|
|
|
+ *
|
|
|
+ * @param[in] msg_p Message to init.
|
|
|
+ *
|
|
|
+ * @return zero(0) on success or (-1) in case of nullptr argument.
|
|
|
+ */
|
|
|
+int a07_hgw_2_da_init(struct a07_hgw_2_da_t *msg_p);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Encode given signal by applying scaling and offset.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to encode.
|
|
|
+ *
|
|
|
+ * @return Encoded signal.
|
|
|
+ */
|
|
|
+uint8_t a07_hgw_2_da_cdc_auto_head_li_set_encode(double value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Decode given signal by applying scaling and offset.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to decode.
|
|
|
+ *
|
|
|
+ * @return Decoded signal.
|
|
|
+ */
|
|
|
+double a07_hgw_2_da_cdc_auto_head_li_set_decode(uint8_t value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Check that given signal is in allowed range.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to check.
|
|
|
+ *
|
|
|
+ * @return true if in range, false otherwise.
|
|
|
+ */
|
|
|
+bool a07_hgw_2_da_cdc_auto_head_li_set_is_in_range(uint8_t value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Encode given signal by applying scaling and offset.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to encode.
|
|
|
+ *
|
|
|
+ * @return Encoded signal.
|
|
|
+ */
|
|
|
+uint32_t a07_hgw_2_da_cdc_tot_milg_encode(double value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Decode given signal by applying scaling and offset.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to decode.
|
|
|
+ *
|
|
|
+ * @return Decoded signal.
|
|
|
+ */
|
|
|
+double a07_hgw_2_da_cdc_tot_milg_decode(uint32_t value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Check that given signal is in allowed range.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to check.
|
|
|
+ *
|
|
|
+ * @return true if in range, false otherwise.
|
|
|
+ */
|
|
|
+bool a07_hgw_2_da_cdc_tot_milg_is_in_range(uint32_t value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Encode given signal by applying scaling and offset.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to encode.
|
|
|
+ *
|
|
|
+ * @return Encoded signal.
|
|
|
+ */
|
|
|
+uint8_t a07_hgw_2_da_hu_sentry_mode_st_encode(double value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Decode given signal by applying scaling and offset.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to decode.
|
|
|
+ *
|
|
|
+ * @return Decoded signal.
|
|
|
+ */
|
|
|
+double a07_hgw_2_da_hu_sentry_mode_st_decode(uint8_t value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Check that given signal is in allowed range.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to check.
|
|
|
+ *
|
|
|
+ * @return true if in range, false otherwise.
|
|
|
+ */
|
|
|
+bool a07_hgw_2_da_hu_sentry_mode_st_is_in_range(uint8_t value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Pack message HGW_290.
|
|
|
+ *
|
|
|
+ * @param[out] dst_p Buffer to pack the message into.
|
|
|
+ * @param[in] src_p Data to pack.
|
|
|
+ * @param[in] size Size of dst_p.
|
|
|
+ *
|
|
|
+ * @return Size of packed data, or negative error code.
|
|
|
+ */
|
|
|
+int a07_hgw_290_pack(
|
|
|
+ uint8_t *dst_p,
|
|
|
+ const struct a07_hgw_290_t *src_p,
|
|
|
+ size_t size);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Unpack message HGW_290.
|
|
|
+ *
|
|
|
+ * @param[out] dst_p Object to unpack the message into.
|
|
|
+ * @param[in] src_p Message to unpack.
|
|
|
+ * @param[in] size Size of src_p.
|
|
|
+ *
|
|
|
+ * @return zero(0) or negative error code.
|
|
|
+ */
|
|
|
+int a07_hgw_290_unpack(
|
|
|
+ struct a07_hgw_290_t *dst_p,
|
|
|
+ const uint8_t *src_p,
|
|
|
+ size_t size);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Init message fields to default values from HGW_290.
|
|
|
+ *
|
|
|
+ * @param[in] msg_p Message to init.
|
|
|
+ *
|
|
|
+ * @return zero(0) on success or (-1) in case of nullptr argument.
|
|
|
+ */
|
|
|
+int a07_hgw_290_init(struct a07_hgw_290_t *msg_p);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Encode given signal by applying scaling and offset.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to encode.
|
|
|
+ *
|
|
|
+ * @return Encoded signal.
|
|
|
+ */
|
|
|
+uint8_t a07_hgw_290_bcm_turn_indcr_le_encode(double value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Decode given signal by applying scaling and offset.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to decode.
|
|
|
+ *
|
|
|
+ * @return Decoded signal.
|
|
|
+ */
|
|
|
+double a07_hgw_290_bcm_turn_indcr_le_decode(uint8_t value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Check that given signal is in allowed range.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to check.
|
|
|
+ *
|
|
|
+ * @return true if in range, false otherwise.
|
|
|
+ */
|
|
|
+bool a07_hgw_290_bcm_turn_indcr_le_is_in_range(uint8_t value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Encode given signal by applying scaling and offset.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to encode.
|
|
|
+ *
|
|
|
+ * @return Encoded signal.
|
|
|
+ */
|
|
|
+uint8_t a07_hgw_290_bcm_turn_indcr_ri_encode(double value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Decode given signal by applying scaling and offset.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to decode.
|
|
|
+ *
|
|
|
+ * @return Decoded signal.
|
|
|
+ */
|
|
|
+double a07_hgw_290_bcm_turn_indcr_ri_decode(uint8_t value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Check that given signal is in allowed range.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to check.
|
|
|
+ *
|
|
|
+ * @return true if in range, false otherwise.
|
|
|
+ */
|
|
|
+bool a07_hgw_290_bcm_turn_indcr_ri_is_in_range(uint8_t value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Encode given signal by applying scaling and offset.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to encode.
|
|
|
+ *
|
|
|
+ * @return Encoded signal.
|
|
|
+ */
|
|
|
+uint8_t a07_hgw_290_bcm_posn_lmp_sts_encode(double value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Decode given signal by applying scaling and offset.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to decode.
|
|
|
+ *
|
|
|
+ * @return Decoded signal.
|
|
|
+ */
|
|
|
+double a07_hgw_290_bcm_posn_lmp_sts_decode(uint8_t value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Check that given signal is in allowed range.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to check.
|
|
|
+ *
|
|
|
+ * @return true if in range, false otherwise.
|
|
|
+ */
|
|
|
+bool a07_hgw_290_bcm_posn_lmp_sts_is_in_range(uint8_t value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Encode given signal by applying scaling and offset.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to encode.
|
|
|
+ *
|
|
|
+ * @return Encoded signal.
|
|
|
+ */
|
|
|
+uint8_t a07_hgw_290_bcm_drvr_door_sts_encode(double value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Decode given signal by applying scaling and offset.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to decode.
|
|
|
+ *
|
|
|
+ * @return Decoded signal.
|
|
|
+ */
|
|
|
+double a07_hgw_290_bcm_drvr_door_sts_decode(uint8_t value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Check that given signal is in allowed range.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to check.
|
|
|
+ *
|
|
|
+ * @return true if in range, false otherwise.
|
|
|
+ */
|
|
|
+bool a07_hgw_290_bcm_drvr_door_sts_is_in_range(uint8_t value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Encode given signal by applying scaling and offset.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to encode.
|
|
|
+ *
|
|
|
+ * @return Encoded signal.
|
|
|
+ */
|
|
|
+uint8_t a07_hgw_290_bcm_pass_door_sts_encode(double value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Decode given signal by applying scaling and offset.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to decode.
|
|
|
+ *
|
|
|
+ * @return Decoded signal.
|
|
|
+ */
|
|
|
+double a07_hgw_290_bcm_pass_door_sts_decode(uint8_t value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Check that given signal is in allowed range.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to check.
|
|
|
+ *
|
|
|
+ * @return true if in range, false otherwise.
|
|
|
+ */
|
|
|
+bool a07_hgw_290_bcm_pass_door_sts_is_in_range(uint8_t value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Encode given signal by applying scaling and offset.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to encode.
|
|
|
+ *
|
|
|
+ * @return Encoded signal.
|
|
|
+ */
|
|
|
+uint8_t a07_hgw_290_bcm_le_re_door_sts_encode(double value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Decode given signal by applying scaling and offset.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to decode.
|
|
|
+ *
|
|
|
+ * @return Decoded signal.
|
|
|
+ */
|
|
|
+double a07_hgw_290_bcm_le_re_door_sts_decode(uint8_t value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Check that given signal is in allowed range.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to check.
|
|
|
+ *
|
|
|
+ * @return true if in range, false otherwise.
|
|
|
+ */
|
|
|
+bool a07_hgw_290_bcm_le_re_door_sts_is_in_range(uint8_t value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Encode given signal by applying scaling and offset.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to encode.
|
|
|
+ *
|
|
|
+ * @return Encoded signal.
|
|
|
+ */
|
|
|
+uint8_t a07_hgw_290_bcm_ri_re_door_sts_encode(double value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Decode given signal by applying scaling and offset.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to decode.
|
|
|
+ *
|
|
|
+ * @return Decoded signal.
|
|
|
+ */
|
|
|
+double a07_hgw_290_bcm_ri_re_door_sts_decode(uint8_t value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Check that given signal is in allowed range.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to check.
|
|
|
+ *
|
|
|
+ * @return true if in range, false otherwise.
|
|
|
+ */
|
|
|
+bool a07_hgw_290_bcm_ri_re_door_sts_is_in_range(uint8_t value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Encode given signal by applying scaling and offset.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to encode.
|
|
|
+ *
|
|
|
+ * @return Encoded signal.
|
|
|
+ */
|
|
|
+uint8_t a07_hgw_290_bdc_drvr_sts_encode(double value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Decode given signal by applying scaling and offset.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to decode.
|
|
|
+ *
|
|
|
+ * @return Decoded signal.
|
|
|
+ */
|
|
|
+double a07_hgw_290_bdc_drvr_sts_decode(uint8_t value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Check that given signal is in allowed range.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to check.
|
|
|
+ *
|
|
|
+ * @return true if in range, false otherwise.
|
|
|
+ */
|
|
|
+bool a07_hgw_290_bdc_drvr_sts_is_in_range(uint8_t value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Encode given signal by applying scaling and offset.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to encode.
|
|
|
+ *
|
|
|
+ * @return Encoded signal.
|
|
|
+ */
|
|
|
+uint8_t a07_hgw_290_bcm_pass_door_lck_sts_encode(double value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Decode given signal by applying scaling and offset.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to decode.
|
|
|
+ *
|
|
|
+ * @return Decoded signal.
|
|
|
+ */
|
|
|
+double a07_hgw_290_bcm_pass_door_lck_sts_decode(uint8_t value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Check that given signal is in allowed range.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to check.
|
|
|
+ *
|
|
|
+ * @return true if in range, false otherwise.
|
|
|
+ */
|
|
|
+bool a07_hgw_290_bcm_pass_door_lck_sts_is_in_range(uint8_t value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Encode given signal by applying scaling and offset.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to encode.
|
|
|
+ *
|
|
|
+ * @return Encoded signal.
|
|
|
+ */
|
|
|
+uint8_t a07_hgw_290_bcm_pwr_sts_fb_encode(double value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Decode given signal by applying scaling and offset.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to decode.
|
|
|
+ *
|
|
|
+ * @return Decoded signal.
|
|
|
+ */
|
|
|
+double a07_hgw_290_bcm_pwr_sts_fb_decode(uint8_t value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Check that given signal is in allowed range.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to check.
|
|
|
+ *
|
|
|
+ * @return true if in range, false otherwise.
|
|
|
+ */
|
|
|
+bool a07_hgw_290_bcm_pwr_sts_fb_is_in_range(uint8_t value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Encode given signal by applying scaling and offset.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to encode.
|
|
|
+ *
|
|
|
+ * @return Encoded signal.
|
|
|
+ */
|
|
|
+uint8_t a07_hgw_290_bcm_drvr_door_lck_sts_encode(double value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Decode given signal by applying scaling and offset.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to decode.
|
|
|
+ *
|
|
|
+ * @return Decoded signal.
|
|
|
+ */
|
|
|
+double a07_hgw_290_bcm_drvr_door_lck_sts_decode(uint8_t value);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Check that given signal is in allowed range.
|
|
|
+ *
|
|
|
+ * @param[in] value Signal to check.
|
|
|
+ *
|
|
|
+ * @return true if in range, false otherwise.
|
|
|
+ */
|
|
|
+bool a07_hgw_290_bcm_drvr_door_lck_sts_is_in_range(uint8_t value);
|
|
|
+
|
|
|
+
|
|
|
+#ifdef __cplusplus
|
|
|
+}
|
|
|
+#endif
|
|
|
+
|
|
|
+#endif
|