macro_rules! teknic_pp_view {
($gm:expr, $prefix:ident) => { ... };
}Expand description
Create a TeknicPpView by projecting GlobalMemory fields with a common prefix.
Fields must follow the naming convention {prefix}_control_word,
{prefix}_target_position, etc.
§Example
ⓘ
let mut view = teknic_pp_view!(ctx.gm, axis1);
view.ensure_pp_mode();
view.cmd_enable_operation();
view.set_target(10_000, 5_000, 1_000, 1_000);
view.trigger_move();