CONV_U32_BIT(9)

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

πŸ’« CONV_U32_BIT πŸ’«

okay bestie, welcome to the HAL Component page for conv_u32_bit β€” section 9 of the manual, so you know it's kernel/HAL business. this lil guy does exactly one thing and it does it gorgeously: takes a u32 and turns it into a bit. glow up, honestly. ✨


🌸 NAME 🌸

conv_u32_bit β€” Convert a value from u32 to bit πŸ¦‹

the vibe? numbers go in, one single bit comes out. it's giving funnel. it's giving entrance. πŸ’…


πŸŽ€ SYNOPSIS πŸŽ€

loadrt conv_u32_bit [count=N|names=name1[,name2...]]

so you load it into HAL with loadrt, and you can either ask for count=N copies or hand-pick your names like names=name1[,name2...]. choose your fighter. 🫢


✨ FUNCTIONS ✨

  • conv-u32-bit.N β€” Update 'out' based on 'in'. yeah that's it, that's the whole job. every cycle it peeks at in and refreshes out. consistent queen. πŸ‘‘

πŸ’– PINS πŸ’–

  • conv-u32-bit.N.in β€” u32 in. the input, the moment, the main character. this is the u32 you're converting. πŸ“
  • conv-u32-bit.N.out β€” bit out. the result! the bit! the finale! 🌈
  • conv-u32-bit.N.out-of-range β€” bit out. TRUE when 'in' is not in the range of bit. so when your input wandered off somewhere it had no business being, this pin tattles on it. not me being a snitch 😭 it's literally just doing its job.
bestie reminder: out and out-of-range are two different pins and they are both bit out. don't mix them up, i'm begging. πŸ™ˆ

🧚 PARAMETERS 🧚

  • conv-u32-bit.N.clamp β€” bit rw. this is the ~behaviour switch~ and it hits different depending on what you set it to:
    • if TRUE, then clamp to the range of bit. your value gets gently sat down at the edge of the bit range like "okay we're done here, sit." 🫢
    • if FALSE, then allow the value to "wrap around". yes, that kind of wrap around. it just keeps going and loops back like nothing happened. chaos. iconic. πŸ’€
fr fr, read that parameter description twice β€” the two settings do genuinely different things and one of them is the wild one.

πŸ‘‘ AUTHOR πŸ‘‘

Jeff Epler β€” a legend, no cap. πŸ’œ


πŸ“œ LICENSE πŸ“œ

GPL β€” free as in freedom, slay. 🌸


and that's the whole page, bestie!! this doc came from the LinuxCNC Documentation crew, dated 2026-03-17, so if you're reading this way later than that, hi, hope the u32s are treating you well. go convert some bits. i'm obsessed with you. bye!! πŸ’–βœ¨πŸ¦‹πŸ’…

πŸ“¦ where this page comes from