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

#include <shift_cmd_65.h>

类 apollo::canbus::gem::Shiftcmd65 继承关系图:
apollo::canbus::gem::Shiftcmd65 的协作图:

Public 成员函数

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

静态 Public 属性

static const int32_t ID = 0x65
 

额外继承的成员函数

- 静态 Public 成员函数 继承自 apollo::drivers::canbus::ProtocolData< ::apollo::canbus::Gem >
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)
 

详细描述

在文件 shift_cmd_65.h26 行定义.

构造及析构函数说明

◆ Shiftcmd65()

apollo::canbus::gem::Shiftcmd65::Shiftcmd65 ( )

在文件 shift_cmd_65.cc30 行定义.

30{ Reset(); }

成员函数说明

◆ GetPeriod()

uint32_t apollo::canbus::gem::Shiftcmd65::GetPeriod ( ) const
overridevirtual

重载 apollo::drivers::canbus::ProtocolData< ::apollo::canbus::Gem > .

在文件 shift_cmd_65.cc32 行定义.

32 {
33 // TODO(QiL) :modify every protocol's period manually
34 static const uint32_t PERIOD = 20 * 1000;
35 return PERIOD;
36}

◆ Reset()

void apollo::canbus::gem::Shiftcmd65::Reset ( )
overridevirtual

重载 apollo::drivers::canbus::ProtocolData< ::apollo::canbus::Gem > .

在文件 shift_cmd_65.cc42 行定义.

42 {
43 // TODO(QiL) :you should check this manually
45}

◆ set_shift_cmd()

Shiftcmd65 * apollo::canbus::gem::Shiftcmd65::set_shift_cmd ( Shift_cmd_65::Shift_cmdType  shift_cmd)

在文件 shift_cmd_65.cc47 行定义.

47 {
48 shift_cmd_ = shift_cmd;
49 return this;
50}

◆ UpdateData()

void apollo::canbus::gem::Shiftcmd65::UpdateData ( uint8_t *  data)
overridevirtual

重载 apollo::drivers::canbus::ProtocolData< ::apollo::canbus::Gem > .

在文件 shift_cmd_65.cc38 行定义.

38 {
39 set_p_shift_cmd(data, shift_cmd_);
40}

类成员变量说明

◆ ID

const int32_t apollo::canbus::gem::Shiftcmd65::ID = 0x65
static

在文件 shift_cmd_65.h29 行定义.


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