Apollo
10.0
自动驾驶开放平台
vcu_vehicle_info_response_502.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"
20
#include "
modules/drivers/canbus/can_comm/protocol_data.h
"
21
22
namespace
apollo
{
23
namespace
canbus {
24
namespace
neolix_edu {
25
26
class
Vcuvehicleinforesponse502
27
:
public
::apollo::drivers::canbus::ProtocolData
<
28
::apollo::canbus::Neolix_edu> {
29
public
:
30
static
const
int32_t
ID
;
31
Vcuvehicleinforesponse502
();
32
void
Parse
(
const
std::uint8_t* bytes, int32_t length,
33
Neolix_edu
* chassis)
const override
;
34
35
private
:
36
// config detail: {'name': 'Vehicle_Softwareversion_Indicati', 'offset': 0.0,
37
// 'precision': 1.0, 'len': 24, 'is_signed_var': False, 'physical_range':
38
// '[0|16777215]', 'bit': 7, 'type': 'int', 'order': 'motorola',
39
// 'physical_unit': ''}
40
int
vehicle_softwareversion_indicati(
const
std::uint8_t* bytes,
41
const
int32_t length)
const
;
42
43
// config detail: {'name': 'Project', 'offset': 0.0, 'precision': 1.0, 'len':
44
// 4, 'is_signed_var': False, 'physical_range': '[0|15]', 'bit': 27, 'type':
45
// 'int', 'order': 'motorola', 'physical_unit': ''}
46
int
project(
const
std::uint8_t* bytes,
const
int32_t length)
const
;
47
48
// config detail: {'name': 'Manufacturer', 'offset': 0.0, 'precision': 1.0,
49
// 'len': 4, 'is_signed_var': False, 'physical_range': '[0|15]', 'bit': 31,
50
// 'type': 'int', 'order': 'motorola', 'physical_unit': ''}
51
int
manufacturer(
const
std::uint8_t* bytes,
const
int32_t length)
const
;
52
53
// config detail: {'name': 'Year', 'offset': 0.0, 'precision': 1.0, 'len': 8,
54
// 'is_signed_var': False, 'physical_range': '[0|255]', 'bit': 39, 'type':
55
// 'int', 'order': 'motorola', 'physical_unit': ''}
56
int
year(
const
std::uint8_t* bytes,
const
int32_t length)
const
;
57
58
// config detail: {'name': 'Month', 'offset': 0.0, 'precision': 1.0, 'len': 4,
59
// 'is_signed_var': False, 'physical_range': '[1|12]', 'bit': 47, 'type':
60
// 'int', 'order': 'motorola', 'physical_unit': ''}
61
int
month(
const
std::uint8_t* bytes,
const
int32_t length)
const
;
62
63
// config detail: {'name': 'Day', 'offset': 0.0, 'precision': 1.0, 'len': 5,
64
// 'is_signed_var': False, 'physical_range': '[1|31]', 'bit': 43, 'type':
65
// 'int', 'order': 'motorola', 'physical_unit': ''}
66
int
day(
const
std::uint8_t* bytes,
const
int32_t length)
const
;
67
68
// config detail: {'name': 'Vehicle_Serial_Number', 'offset': 0.0,
69
// 'precision': 1.0, 'len': 15, 'is_signed_var': False, 'physical_range':
70
// '[0|32767]', 'bit': 54, 'type': 'int', 'order': 'motorola',
71
// 'physical_unit': ''}
72
int
vehicle_serial_number(
const
std::uint8_t* bytes,
73
const
int32_t length)
const
;
74
};
75
76
}
// namespace neolix_edu
77
}
// namespace canbus
78
}
// namespace apollo
apollo::canbus::neolix_edu::Vcuvehicleinforesponse502
Definition
vcu_vehicle_info_response_502.h:28
apollo::canbus::neolix_edu::Vcuvehicleinforesponse502::ID
static const int32_t ID
Definition
vcu_vehicle_info_response_502.h:30
apollo::canbus::neolix_edu::Vcuvehicleinforesponse502::Parse
void Parse(const std::uint8_t *bytes, int32_t length, Neolix_edu *chassis) const override
Definition
vcu_vehicle_info_response_502.cc:33
apollo::canbus::neolix_edu::Vcuvehicleinforesponse502::Vcuvehicleinforesponse502
Vcuvehicleinforesponse502()
Definition
vcu_vehicle_info_response_502.cc:30
apollo::drivers::canbus::ProtocolData
This is the base class of protocol data.
Definition
protocol_data.h:44
apollo
class register implement
Definition
arena_queue.h:37
protocol_data.h
The class of ProtocolData
apollo::canbus::Neolix_edu
Definition
neolix_edu.proto:512
modules
canbus_vehicle
neolix_edu
protocol
vcu_vehicle_info_response_502.h