Apollo 10.0
自动驾驶开放平台
apollo::drivers::canbus 命名空间参考

apollo::drivers::canbus 更多...

命名空间

namespace  can
 apollo::drivers::canbus::can
 

class  Byte
 The class of one byte, which is 8 bits. 更多...
 
class  CanAgent
 
struct  CANCardParameter
 
class  CanClient
 The class which defines the CAN client to send and receive message. 更多...
 
class  CanClientFactory
 CanClientFactory inherites apollo::common::util::Factory. 更多...
 
class  CanFrame
 The class which defines the information to send and receive. 更多...
 
class  CanReceiver
 CAN receiver. 更多...
 
class  CanSender
 CAN sender. 更多...
 
struct  CheckIdArg
 this struct include data for check ids. 更多...
 
class  MessageManager
 message manager manages protocols. 更多...
 
class  ProtocolData
 This is the base class of protocol data. 更多...
 
class  SenderMessage
 This class defines the message to send. 更多...
 
struct  SensorCanbusConf
 
struct  TestCanParam
 

类型定义

using micros = std::chrono::microseconds
 

变量

const int CAN_RESULT_SUCC = 0
 
const int CAN_ERROR_BASE = 2000
 
const int CAN_ERROR_OPEN_DEVICE_FAILED = CAN_ERROR_BASE + 1
 
const int CAN_ERROR_FRAME_NUM = CAN_ERROR_BASE + 2
 
const int CAN_ERROR_SEND_FAILED = CAN_ERROR_BASE + 3
 
const int CAN_ERROR_RECV_FAILED = CAN_ERROR_BASE + 4
 
const uint32_t kSenderInterval = 6000
 
const int32_t CAN_FRAME_SIZE = 8
 
const int32_t MAX_CAN_SEND_FRAME_LEN = 1
 
const int32_t MAX_CAN_RECV_FRAME_LEN = 10
 
const int32_t CANBUS_MESSAGE_LENGTH = 8
 

详细描述

类型定义说明

◆ micros

using apollo::drivers::canbus::micros = typedef std::chrono::microseconds

在文件 message_manager.h48 行定义.

变量说明

◆ CAN_ERROR_BASE

const int apollo::drivers::canbus::CAN_ERROR_BASE = 2000

在文件 can_client.h82 行定义.

◆ CAN_ERROR_FRAME_NUM

const int apollo::drivers::canbus::CAN_ERROR_FRAME_NUM = CAN_ERROR_BASE + 2

在文件 can_client.h84 行定义.

◆ CAN_ERROR_OPEN_DEVICE_FAILED

const int apollo::drivers::canbus::CAN_ERROR_OPEN_DEVICE_FAILED = CAN_ERROR_BASE + 1

在文件 can_client.h83 行定义.

◆ CAN_ERROR_RECV_FAILED

const int apollo::drivers::canbus::CAN_ERROR_RECV_FAILED = CAN_ERROR_BASE + 4

在文件 can_client.h86 行定义.

◆ CAN_ERROR_SEND_FAILED

const int apollo::drivers::canbus::CAN_ERROR_SEND_FAILED = CAN_ERROR_BASE + 3

在文件 can_client.h85 行定义.

◆ CAN_FRAME_SIZE

const int32_t apollo::drivers::canbus::CAN_FRAME_SIZE = 8

在文件 canbus_consts.h33 行定义.

◆ CAN_RESULT_SUCC

const int apollo::drivers::canbus::CAN_RESULT_SUCC = 0

在文件 can_client.h81 行定义.

◆ CANBUS_MESSAGE_LENGTH

const int32_t apollo::drivers::canbus::CANBUS_MESSAGE_LENGTH = 8

在文件 canbus_consts.h37 行定义.

◆ kSenderInterval

const uint32_t apollo::drivers::canbus::kSenderInterval = 6000

在文件 can_sender.h224 行定义.

◆ MAX_CAN_RECV_FRAME_LEN

const int32_t apollo::drivers::canbus::MAX_CAN_RECV_FRAME_LEN = 10

在文件 canbus_consts.h35 行定义.

◆ MAX_CAN_SEND_FRAME_LEN

const int32_t apollo::drivers::canbus::MAX_CAN_SEND_FRAME_LEN = 1

在文件 canbus_consts.h34 行定义.