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

Method SetCallback

src/Movement/StepTimer.cpp:446–450  ·  view source on GitHub ↗

Set up the callback function and parameter

Source from the content-addressed store, hash-verified

444
445// Set up the callback function and parameter
446void StepTimer::SetCallback(TimerCallbackFunction cb, CallbackParameter param) noexcept
447{
448 callback = cb;
449 cbParam = param;
450}
451
452// Schedule a callback at a particular tick count, returning true if it was not scheduled because it is already due or imminent.
453bool StepTimer::ScheduleCallbackFromIsr(Ticks when) noexcept

Callers 4

SendProgramMethod · 0.80
MoveLoopMethod · 0.80
TmcLoopFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected