modm API documentation
xpcc::CanConnectorBase Class Reference
Inheritance diagram for xpcc::CanConnectorBase:
xpcc::CanConnector< modm_test::platform::CanDriver > xpcc::CanConnector< Driver > TestingCanConnector

Static Public Member Functions

static uint32_t convertToIdentifier (const Header &header, bool fragmentated)
 Convert a packet header to a can identifier.
 
static bool convertToHeader (const uint32_t &identifier, Header &header)
 Convert a can identifier to a packet header. More...
 
static bool isFragment (const uint32_t &identifier)
 
static uint8_t getNumberOfFragments (uint8_t messageSize)
 Calculate the number of fragments needed to send a message with a length of messageSize.
 

Static Protected Attributes

static uint8_t messageCounter = 0
 

Member Function Documentation

bool xpcc::CanConnectorBase::convertToHeader ( const uint32_t &  identifier,
xpcc::Header header 
)
static

Convert a can identifier to a packet header.

Parameters
[in]identifier29-bit CAN identifier
[out]headerPacket header
Returns
true if the message is part of a fragmented packet, false otherwise.

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