Kenji Arai / mbed-os_TYBLE16

Dependents:   TYBLE16_simple_data_logger TYBLE16_MP3_Air

Embed: (wiki syntax)

« Back to documentation index

CANMessage Class Reference

CANMessage Class Reference
[CANMessage class]

CANMessage class. More...

#include <CAN.h>

Inherits CAN_Message.

Public Member Functions

 CANMessage ()
 Creates empty CAN message.
 CANMessage (unsigned int _id, const unsigned char *_data, unsigned char _len=8, CANType _type=CANData, CANFormat _format=CANStandard)
 Creates CAN message with specific content.
 CANMessage (unsigned int _id, const char *_data, unsigned char _len=8, CANType _type=CANData, CANFormat _format=CANStandard)
 Creates CAN message with specific content.
 CANMessage (unsigned int _id, CANFormat _format=CANStandard)
 Creates CAN remote message.

Detailed Description

CANMessage class.

Note:
Synchronization level: Thread safe

Definition at line 44 of file CAN.h.


Constructor & Destructor Documentation

CANMessage (  )

Creates empty CAN message.

Definition at line 49 of file CAN.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 66 of file CAN.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 84 of file CAN.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 98 of file CAN.h.