Apollo 10.0
自动驾驶开放平台
|
The class which defines a BCAN client which inherits CanClient. 更多...
#include <hermes_can_client.h>
Public 成员函数 | |
virtual | ~HermesCanClient () |
Initialize the BCAN client by specified CAN card parameters. | |
bool | Init (const CANCardParameter ¶meter) override |
Start the ESD CAN client. | |
apollo::common::ErrorCode | Start () override |
Start the ESD CAN client. | |
virtual void | Stop () |
Stop the ESD CAN client. | |
virtual apollo::common::ErrorCode | Send (const std::vector< CanFrame > &frames, int32_t *const frame_num) |
Send messages | |
virtual apollo::common::ErrorCode | Receive (std::vector< CanFrame > *const frames, int32_t *const frame_num) |
Receive messages | |
virtual std::string | GetErrorString (const int32_t status) |
Get the error string. | |
void | SetInited (bool init) |
Set inited status. | |
![]() | |
CanClient ()=default | |
Constructor | |
virtual | ~CanClient ()=default |
Destructor | |
virtual apollo::common::ErrorCode | SendSingleFrame (const std::vector< CanFrame > &frames) |
Send a single message. | |
额外继承的成员函数 | |
![]() | |
bool | is_started_ = false |
The CAN client is started. | |
The class which defines a BCAN client which inherits CanClient.
在文件 hermes_can_client.h 第 46 行定义.
|
virtual |
Initialize the BCAN client by specified CAN card parameters.
parameter | CAN card parameters to initialize the CAN client. |
Destructor
在文件 hermes_can_client.cc 第 31 行定义.
|
virtual |
Get the error string.
status | The status to get the error string. |
实现了 apollo::drivers::canbus::CanClient.
在文件 hermes_can_client.cc 第 186 行定义.
|
overridevirtual |
Start the ESD CAN client.
实现了 apollo::drivers::canbus::CanClient.
在文件 hermes_can_client.cc 第 37 行定义.
|
virtual |
Receive messages
frames | The messages to receive. |
frame_num | The amount of messages to receive. |
实现了 apollo::drivers::canbus::CanClient.
在文件 hermes_can_client.cc 第 146 行定义.
|
virtual |
Send messages
frames | The messages to send. |
frame_num | The amount of messages to send. |
实现了 apollo::drivers::canbus::CanClient.
在文件 hermes_can_client.cc 第 101 行定义.
void apollo::drivers::canbus::can::HermesCanClient::SetInited | ( | bool | init | ) |
Set inited status.
if | status is inited. |
在文件 hermes_can_client.cc 第 188 行定义.
|
overridevirtual |
Start the ESD CAN client.
实现了 apollo::drivers::canbus::CanClient.
在文件 hermes_can_client.cc 第 55 行定义.
|
virtual |
Stop the ESD CAN client.
实现了 apollo::drivers::canbus::CanClient.
在文件 hermes_can_client.cc 第 90 行定义.