BITSLICE(9)

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

πŸ’… bitslice β€” the HAL component that's literally just "one u32 in, a whole lil squad of bits out"

okay bestie so this is a page from the HAL Component manual, section 9, and it's all about a component called bitslice. Not me being obsessed with a bit-slicer but here we are πŸŽ€


✨ NAME ✨

bitslice β€” takes one unsigned-32 input and splits it into individual bits, no cap πŸ’–


🌸 SYNOPSIS 🌸

loadrt bitslice [count=N|names=name1[,name2...]] [personality=P1,P2,...]

πŸ¦‹ DESCRIPTION πŸ¦‹

so basically? this component makes one little bit-output for every single bit of an unsigned-32 input. iconic behaviour tbh πŸ‘‘

The number of bits can be limited by the "personality" modparam β€” like, you can tell it "bestie, we're only doing a few of these" and it respects that 🌈

and if you ever need to go the other way around? the inverse process can be done by the weighted_sum HAL component. the way they're a matched set fr fr 🫢


πŸ’… FUNCTIONS πŸ’…

  • bitslice.N

(yes that's the whole list. short king behaviour but valid.)


πŸŽ€ PINS πŸŽ€

  • bitslice.N.in u32 in β€” the input value πŸ’– drop your u32 right here bestie, it's the whole point of the operation
  • bitslice.N.out-MM bit out (MM=00..personality) β€” the bits, freshly sliced and served one per pin. the range of MM goes from 00 up to whatever your personality setting allows ✨

πŸ‘‘ AUTHOR πŸ‘‘

Andy Pugh β€” shoutout to the author, absolute legend for this one πŸ’œ


⭐ LICENSE ⭐

GPL2+ β€” yeah it's the license, respect it, that's periodt πŸ’€


just a little heads up: this is real HAL stuff, so keep your option names and pin names exactly as written, okay? no renaming, no "fixing", no vibes-based guessing 🌸

and that's the whole page bestie!! this one came straight outta the LinuxCNC Documentation, dated 2026-03-17, and yes the manpage footer really does say BITSLICE(9) β€” we love a consistent brand πŸ’–βœ¨πŸ¦‹ slay, go slice some bits πŸŽ€

πŸ“¦ where this page comes from