CONV_U32_BIT(9)
π« 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 atinand refreshesout. 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:outandout-of-rangeare two different pins and they are bothbit 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
- 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