Apollo  6.0
Open source self driving car software
Namespaces | Classes | Typedefs | Variables
apollo::drivers::canbus Namespace Reference

apollo::drivers::canbus More...

Namespaces

 can
 apollo::drivers::canbus::can
 

Classes

class  Byte
 The class of one byte, which is 8 bits. It includes some operations on one byte. More...
 
class  CanClient
 The class which defines the CAN client to send and receive message. More...
 
class  CanClientFactory
 CanClientFactory inherites apollo::common::util::Factory. More...
 
class  CanFrame
 The class which defines the information to send and receive. More...
 
class  CanReceiver
 CAN receiver. More...
 
class  CanSender
 CAN sender. More...
 
struct  CheckIdArg
 this struct include data for check ids. More...
 
class  MessageManager
 message manager manages protocols. It supports parse and can get protocol data by message id. More...
 
class  ProtocolData
 This is the base class of protocol data. More...
 
class  SenderMessage
 This class defines the message to send. More...
 

Typedefs

using micros = std::chrono::microseconds
 

Variables

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
 

Detailed Description

apollo::drivers::canbus

Typedef Documentation

◆ micros

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

Variable Documentation

◆ CAN_ERROR_BASE

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

◆ CAN_ERROR_FRAME_NUM

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

◆ CAN_ERROR_OPEN_DEVICE_FAILED

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

◆ CAN_ERROR_RECV_FAILED

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

◆ CAN_ERROR_SEND_FAILED

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

◆ CAN_FRAME_SIZE

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

◆ CAN_RESULT_SUCC

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

◆ CANBUS_MESSAGE_LENGTH

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

◆ kSenderInterval

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

◆ MAX_CAN_RECV_FRAME_LEN

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

◆ MAX_CAN_SEND_FRAME_LEN

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