Apollo  6.0
Open source self driving car software
Public Member Functions | Public Attributes | List of all members
apollo::drivers::canbus::CanFrame Class Reference

The class which defines the information to send and receive. More...

#include <can_client.h>

Collaboration diagram for apollo::drivers::canbus::CanFrame:
Collaboration graph

Public Member Functions

 CanFrame ()
 Constructor. More...
 
std::string CanFrameString () const
 CanFrame string including essential information about the message. More...
 

Public Attributes

uint32_t id
 Message id. More...
 
uint8_t len
 Message length. More...
 
uint8_t data [8]
 Message content. More...
 
struct timeval timestamp
 Time stamp. More...
 

Detailed Description

The class which defines the information to send and receive.

Constructor & Destructor Documentation

◆ CanFrame()

apollo::drivers::canbus::CanFrame::CanFrame ( )
inline

Constructor.

Member Function Documentation

◆ CanFrameString()

std::string apollo::drivers::canbus::CanFrame::CanFrameString ( ) const
inline

CanFrame string including essential information about the message.

Returns
The info string.

Member Data Documentation

◆ data

uint8_t apollo::drivers::canbus::CanFrame::data[8]

Message content.

◆ id

uint32_t apollo::drivers::canbus::CanFrame::id

Message id.

◆ len

uint8_t apollo::drivers::canbus::CanFrame::len

Message length.

◆ timestamp

struct timeval apollo::drivers::canbus::CanFrame::timestamp

Time stamp.


The documentation for this class was generated from the following file: