logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

multiswitch - This component toggles between a specified number of output bits.

Author

Functions

multiswitch.N (requires a floating-point thread)

License

       GPL

LinuxCNC Documentation                             2025-06-19                                     MULTISWITCH(9)

Name

       multiswitch - This component toggles between a specified number of output bits.

Parameters

multiswitch.N.top-position u32 rw
              Number of positions

       multiswitch.N.position s32 rw
              Current state (may be set in the HAL)

Pins

multiswitch.N.up bit in (default: false)
              Receives signal to toggle up

       multiswitch.N.down bit in (default: false)
              Receives signal to toggle down

       multiswitch.N.bit-MM bit out (MM=00..personality) (default: false)
              Output bits

Synopsis

loadrtmultiswitchpersonality=P[cfg=N]cfg    cfg  should be a comma-separated list of sizes, for example cfg=2,4,6 would create 3 instances
                  of 2, 4 and 6 bits respectively.  Ignore the "personality" parameter, that is auto-generated.

See Also