Motion Master 6.0.0-alpha.86
Next-generation motion control software
Loading...
Searching...
No Matches
mm::node::ProcedureContext Struct Reference

What a procedure body is given: the device it runs on, and the manager that owns it. More...

#include <procedure_manager.h>

Collaboration diagram for mm::node::ProcedureContext:
[legend]

Public Attributes

DeviceManagermanager
 
Devicedevice
 
uint16_t devicePosition = 0
 

Detailed Description

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.

Member Data Documentation

◆ device

Device& mm::node::ProcedureContext::device

◆ devicePosition

uint16_t mm::node::ProcedureContext::devicePosition = 0

◆ manager

DeviceManager& mm::node::ProcedureContext::manager

The documentation for this struct was generated from the following file: