Apollo 10.0
自动驾驶开放平台
apollo::canbus::neolix_edu::Vcuvehiclefaultresponse201类 参考

#include <vcu_vehicle_fault_response_201.h>

类 apollo::canbus::neolix_edu::Vcuvehiclefaultresponse201 继承关系图:
apollo::canbus::neolix_edu::Vcuvehiclefaultresponse201 的协作图:

Public 成员函数

 Vcuvehiclefaultresponse201 ()
 
void Parse (const std::uint8_t *bytes, int32_t length, Neolix_edu *chassis) const override
 
- Public 成员函数 继承自 apollo::drivers::canbus::ProtocolData< ::apollo::canbus::Neolix_edu >
 ProtocolData ()=default
 construct protocol data.
 
virtual ~ProtocolData ()=default
 destruct protocol data.
 
virtual uint32_t GetPeriod () const
 
virtual int32_t GetLength () const
 
virtual void Parse (const uint8_t *bytes, int32_t length, ::apollo::canbus::Neolix_edu *sensor_data) const
 
virtual void UpdateData (uint8_t *data)
 
virtual void UpdateData_Heartbeat (uint8_t *data)
 
virtual void Reset ()
 

静态 Public 属性

static const int32_t ID = 0x201
 

额外继承的成员函数

- 静态 Public 成员函数 继承自 apollo::drivers::canbus::ProtocolData< ::apollo::canbus::Neolix_edu >
static std::uint8_t CalculateCheckSum (const uint8_t *input, const uint32_t length)
 static function, used to calculate the checksum of input array.
 
static T BoundedValue (T lower, T upper, T val)
 

详细描述

在文件 vcu_vehicle_fault_response_201.h26 行定义.

构造及析构函数说明

◆ Vcuvehiclefaultresponse201()

apollo::canbus::neolix_edu::Vcuvehiclefaultresponse201::Vcuvehiclefaultresponse201 ( )

在文件 vcu_vehicle_fault_response_201.cc30 行定义.

30{}

成员函数说明

◆ Parse()

void apollo::canbus::neolix_edu::Vcuvehiclefaultresponse201::Parse ( const std::uint8_t *  bytes,
int32_t  length,
Neolix_edu chassis 
) const
override

在文件 vcu_vehicle_fault_response_201.cc33 行定义.

35 {
36 chassis->mutable_vcu_vehicle_fault_response_201()
37 ->set_vehicle_error_indicationsvcu(
38 vehicle_error_indicationsvcu(bytes, length));
39 chassis->mutable_vcu_vehicle_fault_response_201()
40 ->set_brake_system_errorehb(
41 brake_system_errorehb(bytes, length));
42 chassis->mutable_vcu_vehicle_fault_response_201()
43 ->set_eps_error(eps_error(bytes, length));
44 chassis->mutable_vcu_vehicle_fault_response_201()
45 ->set_motor_error(motor_error(bytes, length));
46 chassis->mutable_vcu_vehicle_fault_response_201()
47 ->set_epb_error(epb_error(bytes, length));
48 chassis->mutable_vcu_vehicle_fault_response_201()
49 ->set_high_voltage_battery_errorbcu(
50 high_voltage_battery_errorbcu(bytes, length));
51 chassis->mutable_vcu_vehicle_fault_response_201()
52 ->set_automode_exit_reason_losscommuni(
53 automode_exit_reason_losscommuni(bytes, length));
54 chassis->mutable_vcu_vehicle_fault_response_201()
55 ->set_automode_exit_reason_reqsignalno(
56 automode_exit_reason_reqsignalno(bytes, length));
57 chassis->mutable_vcu_vehicle_fault_response_201()
58 ->set_automode_exit_reason_low_power(
59 automode_exit_reason_low_power(bytes, length));
60 chassis->mutable_vcu_vehicle_fault_response_201()
61 ->set_automode_exit_reason_highvolt(
62 automode_exit_reason_highvolt(bytes, length));
63 chassis->mutable_vcu_vehicle_fault_response_201()
64 ->set_automode_exit_reason_vehicle_flt(
65 automode_exit_reason_vehicle_flt(bytes, length));
66 chassis->mutable_vcu_vehicle_fault_response_201()
67 ->set_automode_exit_reason_press_emerg(
68 automode_exit_reason_press_emerg(bytes, length));
69 chassis->mutable_vcu_vehicle_fault_response_201()
70 ->set_automode_exit_reason_press_remot(
71 automode_exit_reason_press_remot(bytes, length));
72 chassis->mutable_vcu_vehicle_fault_response_201()
73 ->set_automode_exit_reason_pdu_control(
74 automode_exit_reason_pdu_control(bytes, length));
75 chassis->mutable_vcu_vehicle_fault_response_201()
76 ->set_vcu_faultrept_alivecounter(
77 vcu_faultrept_alivecounter(bytes, length));
78 chassis->mutable_vcu_vehicle_fault_response_201()
79 ->set_vcu_faultrept_checksum(
80 vcu_faultrept_checksum(bytes, length));
81}

类成员变量说明

◆ ID

const int32_t apollo::canbus::neolix_edu::Vcuvehiclefaultresponse201::ID = 0x201
static

在文件 vcu_vehicle_fault_response_201.h30 行定义.


该类的文档由以下文件生成: