The class which defines a BCAN client which inherits CanClient.
More...
#include <hermes_can_client.h>
The class which defines a BCAN client which inherits CanClient.
◆ ~HermesCanClient()
virtual apollo::drivers::canbus::can::HermesCanClient::~HermesCanClient |
( |
| ) |
|
|
virtual |
Initialize the BCAN client by specified CAN card parameters.
- Parameters
-
parameter | CAN card parameters to initialize the CAN client. Destructor |
◆ GetErrorString()
virtual std::string apollo::drivers::canbus::can::HermesCanClient::GetErrorString |
( |
const int32_t |
status | ) |
|
|
virtual |
◆ Init()
bool apollo::drivers::canbus::can::HermesCanClient::Init |
( |
const CANCardParameter & |
parameter | ) |
|
|
overridevirtual |
◆ Receive()
virtual apollo::common::ErrorCode apollo::drivers::canbus::can::HermesCanClient::Receive |
( |
std::vector< CanFrame > *const |
frames, |
|
|
int32_t *const |
frame_num |
|
) |
| |
|
virtual |
Receive messages.
- Parameters
-
frames | The messages to receive. |
frame_num | The amount of messages to receive. |
- Returns
- The status of the receiving action which is defined by apollo::common::ErrorCode.
Implements apollo::drivers::canbus::CanClient.
◆ Send()
virtual apollo::common::ErrorCode apollo::drivers::canbus::can::HermesCanClient::Send |
( |
const std::vector< CanFrame > & |
frames, |
|
|
int32_t *const |
frame_num |
|
) |
| |
|
virtual |
Send messages.
- Parameters
-
frames | The messages to send. |
frame_num | The amount of messages to send. |
- Returns
- The status of the sending action which is defined by apollo::common::ErrorCode.
Implements apollo::drivers::canbus::CanClient.
◆ SetInited()
void apollo::drivers::canbus::can::HermesCanClient::SetInited |
( |
bool |
init | ) |
|
Set inited status.
- Parameters
-
◆ Start()
apollo::common::ErrorCode apollo::drivers::canbus::can::HermesCanClient::Start |
( |
| ) |
|
|
overridevirtual |
◆ Stop()
virtual void apollo::drivers::canbus::can::HermesCanClient::Stop |
( |
| ) |
|
|
virtual |
The documentation for this class was generated from the following file: