MCPcopy Create free account
hub / github.com/Duet3D/RepRapFirmware / SendCanMessage

Function SendCanMessage

src/CAN/CanInterface.cpp:477–485  ·  view source on GitHub ↗

Send a message on the CAN FD channel and record any errors

Source from the content-addressed store, hash-verified

475
476// Send a message on the CAN FD channel and record any errors
477static void SendCanMessage(CanDevice::TxBufferNumber whichBuffer, uint32_t timeout, CanMessageBuffer *buffer) noexcept
478{
479 const uint32_t cancelledId = can0dev->SendMessage(whichBuffer, timeout, buffer);
480 if (cancelledId != 0)
481 {
482 ++txTimeouts[(unsigned int)whichBuffer];
483 lastCancelledId = cancelledId;
484 }
485}
486
487// This task picks up motion messages and sends them
488extern "C" [[noreturn]] void CanSenderLoop(void *) noexcept

Callers 6

CanSenderLoopFunction · 0.85
CanClockLoopFunction · 0.85
SendResponseNoFreeMethod · 0.85
SendBroadcastNoFreeMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected