Apollo 10.0
自动驾驶开放平台
wiper_cmd_90.h
浏览该文件的文档.
1/******************************************************************************
2 * Copyright 2018 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/gem/proto/gem.pb.h"
21
22namespace apollo {
23namespace canbus {
24namespace gem {
25
27 ::apollo::canbus::Gem> {
28 public:
29 static const int32_t ID;
30
31 Wipercmd90();
32
33 uint32_t GetPeriod() const override;
34
35 void UpdateData(uint8_t* data) override;
36
37 void Reset() override;
38
39 // config detail: {'name': 'WIPER_CMD', 'enum': {0: 'WIPER_CMD_WIPERS_OFF', 1:
40 // 'WIPER_CMD_INTERMITTENT_1', 2: 'WIPER_CMD_INTERMITTENT_2', 3:
41 // 'WIPER_CMD_INTERMITTENT_3', 4: 'WIPER_CMD_INTERMITTENT_4', 5:
42 // 'WIPER_CMD_INTERMITTENT_5', 6: 'WIPER_CMD_LOW', 7: 'WIPER_CMD_HIGH'},
43 // 'precision': 1.0, 'len': 8, 'is_signed_var': False, 'offset': 0.0,
44 // 'physical_range': '[0|7]', 'bit': 7, 'type': 'enum', 'order': 'motorola',
45 // 'physical_unit': ''}
47
48 private:
49 // config detail: {'name': 'WIPER_CMD', 'enum': {0: 'WIPER_CMD_WIPERS_OFF', 1:
50 // 'WIPER_CMD_INTERMITTENT_1', 2: 'WIPER_CMD_INTERMITTENT_2', 3:
51 // 'WIPER_CMD_INTERMITTENT_3', 4: 'WIPER_CMD_INTERMITTENT_4', 5:
52 // 'WIPER_CMD_INTERMITTENT_5', 6: 'WIPER_CMD_LOW', 7: 'WIPER_CMD_HIGH'},
53 // 'precision': 1.0, 'len': 8, 'is_signed_var': False, 'offset': 0.0,
54 // 'physical_range': '[0|7]', 'bit': 7, 'type': 'enum', 'order': 'motorola',
55 // 'physical_unit': ''}
56 void set_p_wiper_cmd(uint8_t* data, Wiper_cmd_90::Wiper_cmdType wiper_cmd);
57
58 private:
60};
61
62} // namespace gem
63} // namespace canbus
64} // namespace apollo
void UpdateData(uint8_t *data) override
Wipercmd90 * set_wiper_cmd(Wiper_cmd_90::Wiper_cmdType wiper_cmd)
uint32_t GetPeriod() const override
This is the base class of protocol data.
class register implement
Definition arena_queue.h:37
The class of ProtocolData