|
Motion Master 6.0.0-alpha.86
Next-generation motion control software
|
What a procedure body is given: the device it runs on, and the manager that owns it. More...
#include <procedure_manager.h>
Public Attributes | |
| DeviceManager & | manager |
| Device & | device |
| uint16_t | devicePosition = 0 |
What a procedure body is given: the device it runs on, and the manager that owns it.
device is valid for the whole run. The run holds a DeviceHandle on it, so a rescan mid-procedure cannot destroy it — it publishes a new device set instead, and the next bus transaction against this (now retired) device fails cleanly.
manager is here for the one thing a device cannot do for itself: change AL state. transitionToState is a whole-bus operation, so it belongs to the manager, and a body that installs firmware is defined by its transitions.
| Device& mm::node::ProcedureContext::device |
| uint16_t mm::node::ProcedureContext::devicePosition = 0 |
| DeviceManager& mm::node::ProcedureContext::manager |