Apollo 10.0
自动驾驶开放平台
vcu_powerstatus_214.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;
31 void Parse(const std::uint8_t* bytes, int32_t length,
32 Neolix_edu* chassis) const override;
33
34 private:
35 // config detail: {'description':
36 // '0x0:OFF;0x1:IG_ON;0x2:Power_ON;0x3:Auto_ON;0x4:Reserved;0x5:Reserved;0x6:Reserved;0x7:Reserved',
37 // 'offset': 0.0, 'precision': 1.0, 'len': 3, 'name': 'VCU_PowerMode',
38 // 'is_signed_var': False, 'physical_range': '[0|7]', 'bit': 11, 'type':
39 // 'int', 'order': 'motorola', 'physical_unit': 'bit'}
40 int vcu_powermode(const std::uint8_t* bytes, const int32_t length) const;
41
42 // config detail: {'description': '0x0:Not
43 // Available;0x1:Invalid;0x2:Valid;0x3:Reserved', 'offset': 0.0,
44 // 'precision': 1.0, 'len': 2, 'name': 'VCU_PowerModeValid', 'is_signed_var':
45 // False, 'physical_range': '[0|3]', 'bit': 13, 'type': 'int', 'order':
46 // 'motorola', 'physical_unit': 'bit'}
47 int vcu_powermodevalid(const std::uint8_t* bytes, const int32_t length) const;
48
49 // config detail: {'description': '0x0:NotActivate;0x1:Activate', 'offset':
50 // 0.0, 'precision': 1.0, 'len': 1, 'name': 'ReplaceBatteryStateIndication',
51 // 'is_signed_var': False, 'physical_range': '[0|1]', 'bit': 14, 'type':
52 // 'bool', 'order': 'motorola', 'physical_unit': 'bit'}
53 bool replacebatterystateindication(const std::uint8_t* bytes,
54 const int32_t length) const;
55
56 // config detail: {'description': '0x0:Normal AEB;0x1:Forbidden', 'offset':
57 // 0.0, 'precision': 1.0, 'len': 1, 'name': 'forbidden_aeb_signal',
58 // 'is_signed_var': False, 'physical_range': '[0|1]', 'bit': 15, 'type':
59 // 'bool', 'order': 'motorola', 'physical_unit': 'bit'}
60 bool forbidden_aeb_signal(const std::uint8_t* bytes,
61 const int32_t length) const;
62
63 // config detail: {'description': ';', 'offset': -400, 'precision': 0.02,
64 // 'len': 16, 'name': 'chargedischargecurrent', 'is_signed_var': False,
65 // 'physical_range': '[-400|910.68]', 'bit': 40, 'type': 'double', 'order':
66 // 'motorola', 'physical_unit': ''}
67 float bcu_chargedischargecurrent(const std::uint8_t* bytes,
68 const int32_t length) const;
69
70 // config detail: {'description': ';', 'offset': 0, 'precision': 0.01,
71 // 'len': 16, 'name': 'batt_internalvoltage', 'is_signed_var': False,
72 // 'physical_range': '[0|655.35]', 'bit': 54, 'type': 'double', 'order':
73 // 'motorola', 'physical_unit': ''}
74 float bcu_batt_internalvoltage(const std::uint8_t* bytes,
75 const int32_t length) const;
76
77 // config detail: {'name': 'VCU_DriverInfo_AliveCounter', 'offset': 0.0,
78 // 'precision': 1.0, 'len': 4, 'is_signed_var': False, 'physical_range':
79 // '[0|15]', 'bit': 55, 'type': 'int', 'order': 'motorola', 'physical_unit':
80 // 'bit'}
81 int vcu_driverinfo_alivecounter(const std::uint8_t* bytes,
82 const int32_t length) const;
83
84 // config detail: {'name': 'VCU_DriverInfo_CheckSum', 'offset': 0.0,
85 // 'precision': 1.0, 'len': 8, 'is_signed_var': False, 'physical_range':
86 // '[0|255]', 'bit': 63, 'type': 'int', 'order': 'motorola', 'physical_unit':
87 // 'bit'}
88 int vcu_driverinfo_checksum(const std::uint8_t* bytes,
89 const int32_t length) const;
90};
91
92} // namespace neolix_edu
93} // namespace canbus
94} // namespace apollo
void Parse(const std::uint8_t *bytes, int32_t length, Neolix_edu *chassis) const override
This is the base class of protocol data.
class register implement
Definition arena_queue.h:37
The class of ProtocolData