Apollo 10.0
自动驾驶开放平台
ads_diagnosis_628.h
浏览该文件的文档.
1/******************************************************************************
2 * Copyright 2020 The Apollo Authors. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 *****************************************************************************/
16
17#pragma once
18
19#include "modules/canbus_vehicle/neolix_edu/proto/neolix_edu.pb.h"
21
22namespace apollo {
23namespace canbus {
24namespace neolix_edu {
25
27 ::apollo::canbus::Neolix_edu> {
28 public:
29 static const int32_t ID;
30
32
33 uint32_t GetPeriod() const override;
34
35 void UpdateData(uint8_t* data) override;
36
37 void Reset() override;
38
39 // config detail: {'description': '0x0:Nomal;0x1:Level 1;0x2:Level 2;0x3:Level
40 // 3;0x4:Level 4;0x5:Level 5;0x6:Reserved;0x7:Reserved', 'offset': 0.0,
41 // 'precision': 1.0, 'len': 4, 'name': 'FaultRank', 'is_signed_var': False,
42 // 'physical_range': '[0|5]', 'bit': 7, 'type': 'int', 'order': 'motorola',
43 // 'physical_unit': 'bit'}
44 Adsdiagnosis628* set_faultrank(int faultrank);
45
46 // config detail: {'name': 'ADAS_Fault_Code', 'offset': 0.0, 'precision': 1.0,
47 // 'len': 24, 'is_signed_var': False, 'physical_range': '[0|65535]', 'bit': 3,
48 // 'type': 'int', 'order': 'motorola', 'physical_unit': ''}
49 Adsdiagnosis628* set_adas_fault_code(int adas_fault_code);
50
51 // config detail: {'name': 'ADAS_SoftwareVersion', 'offset': 0.0,
52 // 'precision': 1.0, 'len': 8, 'is_signed_var': False, 'physical_range':
53 // '[0|255]', 'bit': 55, 'type': 'int', 'order': 'motorola', 'physical_unit':
54 // 'bit'}
55 Adsdiagnosis628* set_adas_softwareversion(int adas_softwareversion);
56
57 // config detail: {'name': 'ADAS_HardwareVersion', 'offset': 0.0,
58 // 'precision': 1.0, 'len': 8, 'is_signed_var': False, 'physical_range':
59 // '[0|255]', 'bit': 63, 'type': 'int', 'order': 'motorola', 'physical_unit':
60 // 'bit'}
61 Adsdiagnosis628* set_adas_hardwareversion(int adas_hardwareversion);
62
63 private:
64 // config detail: {'description': '0x0:Nomal;0x1:Level 1;0x2:Level 2;0x3:Level
65 // 3;0x4:Level 4;0x5:Level 5;0x6:Reserved;0x7:Reserved', 'offset': 0.0,
66 // 'precision': 1.0, 'len': 4, 'name': 'FaultRank', 'is_signed_var': False,
67 // 'physical_range': '[0|5]', 'bit': 7, 'type': 'int', 'order': 'motorola',
68 // 'physical_unit': 'bit'}
69 void set_p_faultrank(uint8_t* data, int faultrank);
70
71 // config detail: {'name': 'ADAS_Fault_Code', 'offset': 0.0, 'precision': 1.0,
72 // 'len': 24, 'is_signed_var': False, 'physical_range': '[0|65535]', 'bit': 3,
73 // 'type': 'int', 'order': 'motorola', 'physical_unit': ''}
74 void set_p_adas_fault_code(uint8_t* data, int adas_fault_code);
75
76 // config detail: {'name': 'ADAS_SoftwareVersion', 'offset': 0.0,
77 // 'precision': 1.0, 'len': 8, 'is_signed_var': False, 'physical_range':
78 // '[0|255]', 'bit': 55, 'type': 'int', 'order': 'motorola', 'physical_unit':
79 // 'bit'}
80 void set_p_adas_softwareversion(uint8_t* data, int adas_softwareversion);
81
82 // config detail: {'name': 'ADAS_HardwareVersion', 'offset': 0.0,
83 // 'precision': 1.0, 'len': 8, 'is_signed_var': False, 'physical_range':
84 // '[0|255]', 'bit': 63, 'type': 'int', 'order': 'motorola', 'physical_unit':
85 // 'bit'}
86 void set_p_adas_hardwareversion(uint8_t* data, int adas_hardwareversion);
87
88 private:
89 int faultrank_;
90 int adas_fault_code_;
91 int adas_softwareversion_;
92 int adas_hardwareversion_;
93};
94
95} // namespace neolix_edu
96} // namespace canbus
97} // namespace apollo
Adsdiagnosis628 * set_faultrank(int faultrank)
Adsdiagnosis628 * set_adas_hardwareversion(int adas_hardwareversion)
Adsdiagnosis628 * set_adas_fault_code(int adas_fault_code)
Adsdiagnosis628 * set_adas_softwareversion(int adas_softwareversion)
This is the base class of protocol data.
class register implement
Definition arena_queue.h:37
The class of ProtocolData