MULTISWITCH(9)

πŸ“¦
version 2.9.4 Β· 4 versions
, in ubuntu resolute, ubuntu stonking

πŸ’– MULTISWITCH(9) β€” the HAL component πŸ’–

okay bestie, so this is multiswitch, a HAL component, and honestly? she's giving selector switch energy. What she does is toggle between a specified number of output bits. That's the whole vibe. Iconic, honestly. πŸŽ€


✨ SYNOPSIS ✨

loadrt multiswitch personality=P [cfg=N]
  • cfg β€” bestie this is the important one. 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. 🫢
not me telling you to ignore the personality parameter πŸ’€ β€” that one is auto-generated, so just leave her alone, she's doing her own thing.

πŸ¦‹ FUNCTIONS πŸ¦‹

  • multiswitch.N β€” and girl, this requires a floating-point thread. no faking it, she needs the real thing.

🌸 PINS 🌸

  • multiswitch.N.up β€” bit in (default: false). She receives signal to toggle up. ⬆️
  • multiswitch.N.down β€” bit in (default: false). She receives signal to toggle down. ⬇️
  • multiswitch.N.bit-MM β€” bit out (MM=00..personality) (default: false). These are the output bits, and there are as many as her personality says. periodt. πŸ’…

πŸ’œ PARAMETERS πŸ’œ

  • multiswitch.N.top-position β€” u32 rw. Number of positions. Like, how many stops on the ride. 🎑
  • multiswitch.N.position β€” s32 rw. Current state (may be set in the HAL). So you can poke her from the HAL, she doesn't mind. πŸ‘‘

πŸ‘‘ AUTHOR πŸ‘‘

ArcEye schooner30@tiscali.co.uk / Andy Pugh andy@bodgesoc.org

πŸ“œ LICENSE πŸ“œ

GPL


lowkey the most important part: <rainbow>no cap, every single one of these options is real and every detail matters β€” don't come for me if you skip one</rainbow> 🌈

and that's the whole page, bestie! πŸ’– this one's from the LinuxCNC Documentation, dated 2026-03-17, and she lives in section 9 of the manual, MULTISWITCH(9). slay, go toggle some bits, ily 🫢✨

πŸ“¦ where this page comes from