stepper_macros 0.1.0

Macros for the stepper_lib
Documentation
stepper_macros-0.1.0 has been yanked.

stepper_macros

A helper crate for proc-macros used by the stepper_lib.

SyncCompGroup

Includes a derive proc-macro to implement SyncCompGroup for a struct consisting of only fields that include SyncComp.

use stepper_lib::prelude::*;

#[derive(SyncCompGroup)]
struct TestGroup {
    pub base : StepperCtrl,
    pub arm1 : StepperCtrl
}

fn main() {
    let test = TestGroup {
        base: StepperCtrl::new_sim(StepperConst::GEN),
        arm1: StepperCtrl::new_sim(StepperConst::GEN)
    };

    let _test_ref : &dyn SyncCompGroup<2> = &test;
}