Mistake on this page?
Report an issue in GitHub or email us
Public Member Functions
CANMessage Class Reference

CANMessage class. More...

#include <InterfaceCAN.h>

Inheritance diagram for CANMessage:
CAN_Message

Public Member Functions

 CANMessage ()
 Creates empty CAN message. More...
 
 CANMessage (unsigned int _id, const unsigned char *_data, unsigned char _len=8, CANType _type=CANData, CANFormat _format=CANStandard)
 Creates CAN message with specific content. More...
 
 CANMessage (unsigned int _id, const char *_data, unsigned char _len=8, CANType _type=CANData, CANFormat _format=CANStandard)
 Creates CAN message with specific content. More...
 
 CANMessage (unsigned int _id, CANFormat _format=CANStandard)
 Creates CAN remote message. More...
 
bool operator== (const CANMessage &b) const
 "Deep" comparison operator (ie: compare value of each data member) More...
 

Detailed Description

CANMessage class.

Note
Synchronization level: Thread safe

Definition at line 50 of file InterfaceCAN.h.

Constructor & Destructor Documentation

Creates empty CAN message.

Definition at line 55 of file InterfaceCAN.h.

CANMessage ( unsigned int  _id,
const unsigned char *  _data,
unsigned char  _len = 8,
CANType  _type = CANData,
CANFormat  _format = CANStandard 
)

Creates CAN message with specific content.

Parameters
_idMessage ID
_dataMesaage Data
_lenMessage Data length
_typeType of Data: Use enum CANType for valid parameter values
_formatData Format: Use enum CANFormat for valid parameter values

Definition at line 72 of file InterfaceCAN.h.

CANMessage ( unsigned int  _id,
const char *  _data,
unsigned char  _len = 8,
CANType  _type = CANData,
CANFormat  _format = CANStandard 
)

Creates CAN message with specific content.

Parameters
_idMessage ID
_dataMesaage Data
_lenMessage Data length
_typeType of Data: Use enum CANType for valid parameter values
_formatData Format: Use enum CANFormat for valid parameter values

Definition at line 90 of file InterfaceCAN.h.

CANMessage ( unsigned int  _id,
CANFormat  _format = CANStandard 
)

Creates CAN remote message.

Parameters
_idMessage ID
_formatData Format: Use enum CANType for valid parameter values

Definition at line 104 of file InterfaceCAN.h.

Member Function Documentation

bool operator== ( const CANMessage b) const

"Deep" comparison operator (ie: compare value of each data member)

Definition at line 116 of file InterfaceCAN.h.

Important Information for this Arm website

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies. If you are not happy with the use of these cookies, please review our Cookie Policy to learn how they can be disabled. By disabling cookies, some features of the site will not work.