|
| TestingCanConnector (modm_test::platform::CanDriver *driver) |
|
virtual void | dropPacket () |
|
virtual const Header & | getPacketHeader () const |
| Access the packet.
|
|
virtual const modm::SmartPointer | getPacketPayload () const |
|
virtual bool | isPacketAvailable () const |
| Check if a new packet was received by the backend.
|
|
virtual void | sendPacket (const Header &header, modm::SmartPointer payload) |
| Send a Message.
|
|
virtual void | update () |
|
|
bool | retrieveMessage () |
|
bool | sendMessage (const uint32_t &identifier, const uint8_t *data, uint8_t size) |
| Try to send a CAN message via CAN Driver. More...
|
|
void | sendWaitingMessages () |
|
|
static bool | convertToHeader (const uint32_t &identifier, Header &header) |
| Convert a can identifier to a packet header. More...
|
|
static uint32_t | convertToIdentifier (const Header &header, bool fragmentated) |
| Convert a packet header to a can identifier.
|
|
static uint8_t | getNumberOfFragments (uint8_t messageSize) |
| Calculate the number of fragments needed to send a message with a length of messageSize .
|
|
static bool | isFragment (const uint32_t &identifier) |
|
|
static uint8_t | messageCounter = 0 |
|
bool xpcc::CanConnectorBase::convertToHeader |
( |
const uint32_t & |
identifier, |
|
|
xpcc::Header & |
header |
|
) |
| |
|
inheritedstatic |
Convert a can identifier to a packet header.
- Parameters
-
[in] | identifier | 29-bit CAN identifier |
[out] | header | Packet header |
- Returns
true
if the message is part of a fragmented packet, false
otherwise.
Try to send a CAN message via CAN Driver.
- Returns
- true if the message could be send, false otherwise
The documentation for this class was generated from the following files:
- testing_can_connector.hpp
- testing_can_connector.cpp