BITSLICE(9)
π 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.inu32 in β the input value π drop your u32 right here bestie, it's the whole point of the operationbitslice.N.out-MMbit out (MM=00..personality) β the bits, freshly sliced and served one per pin. the range ofMMgoes from00up to whatever yourpersonalitysetting 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
- ubuntu resolute: linuxcnc-uspace 1:2.9.4-2ubuntu4 Β· GFDL-1.1-or-later
- ubuntu stonking: linuxcnc-uspace 1:2.9.4-2ubuntu4 Β· GFDL-1.1-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms