27#include "esd_can/include/ntcan.h"
28#include "gflags/gflags.h"
29#include "modules/common_msgs/basic_msgs/error_code.pb.h"
32#include "modules/common_msgs/drivers_msgs/can_card_parameter.pb.h"
81 int32_t *
const frame_num)
override;
91 int32_t *
const frame_num)
override;
100 NTCAN_HANDLE dev_handler_;
Defines the CanFrame struct and CanClient interface.
The class which defines the CAN client to send and receive message.
The class which defines an ESD CAN client which inherits CanClient.
void Stop() override
Stop the ESD CAN client.
apollo::common::ErrorCode Receive(std::vector< CanFrame > *const frames, int32_t *const frame_num) override
Receive messages
bool Init(const CANCardParameter ¶meter) override
Initialize the ESD CAN client by specified CAN card parameters.
apollo::common::ErrorCode Send(const std::vector< CanFrame > &frames, int32_t *const frame_num) override
Send messages
apollo::common::ErrorCode Start() override
Start the ESD CAN client.
std::string GetErrorString(const int32_t status) override
Get the error string.
virtual ~EsdCanClient()
Destructor
const int32_t MAX_CAN_RECV_FRAME_LEN
const int32_t MAX_CAN_SEND_FRAME_LEN