The class which defines an ESD CAN client which inherites CanClient.
More...
#include <socket_can_client_raw.h>
The class which defines an ESD CAN client which inherites CanClient.
◆ ~SocketCanClientRaw()
virtual apollo::drivers::canbus::can::SocketCanClientRaw::~SocketCanClientRaw |
( |
| ) |
|
|
virtual |
◆ GetErrorString()
std::string apollo::drivers::canbus::can::SocketCanClientRaw::GetErrorString |
( |
const int32_t |
status | ) |
|
|
overridevirtual |
◆ Init()
bool apollo::drivers::canbus::can::SocketCanClientRaw::Init |
( |
const CANCardParameter & |
parameter | ) |
|
|
overridevirtual |
Initialize the ESD CAN client by specified CAN card parameters.
- Parameters
-
parameter | CAN card parameters to initialize the CAN client. |
- Returns
- If the initialization is successful.
Implements apollo::drivers::canbus::CanClient.
◆ Receive()
apollo::common::ErrorCode apollo::drivers::canbus::can::SocketCanClientRaw::Receive |
( |
std::vector< CanFrame > *const |
frames, |
|
|
int32_t *const |
frame_num |
|
) |
| |
|
overridevirtual |
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()
apollo::common::ErrorCode apollo::drivers::canbus::can::SocketCanClientRaw::Send |
( |
const std::vector< CanFrame > & |
frames, |
|
|
int32_t *const |
frame_num |
|
) |
| |
|
overridevirtual |
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.
◆ Start()
apollo::common::ErrorCode apollo::drivers::canbus::can::SocketCanClientRaw::Start |
( |
| ) |
|
|
overridevirtual |
◆ Stop()
void apollo::drivers::canbus::can::SocketCanClientRaw::Stop |
( |
| ) |
|
|
overridevirtual |
The documentation for this class was generated from the following file: