CONV_BIT_FLOAT(9)
π conv_bit_float β HAL Component π
okay bestie, pull up a chair because we're talking about conv_bit_float, and she is literally the simplest girl in the whole HAL friend group. She takes a bit and she turns it into a float. that's it. that's the whole personality. and honestly? iconic. π
no cap: this is a realtime HAL component from LinuxCNC, manual section 9, and she's about as low-drama as a kernel module can be.
β¨ NAME β¨
conv_bit_float β convert a value from bit to float π¦
like the name says. bit goes in, float comes out. no plot twists.
πΈ SYNOPSIS πΈ
loadrt conv_bit_float [count=N|names=name1[,name2...]]
load her into your realtime thread with loadrt, and you get to pick how many copies you want (count=N) or name them yourself (names=name1[,name2...]). your component, your rules. π
π FUNCTIONS π
conv-bit-float.Nβ updateoutbased onin. (yes, she requires a floating-point thread β she will not hang out in an integer-only thread, she has standards π)
every instance gets its own numbered function, where .N is just the instance number. NGL the function description is basically "read the input, write the output," which is giving minimal-effort-but-still-slaying energy. and we respect it.
π«Ά PINS π«Ά
conv-bit-float.N.inβ bit β input. this is the vibe she's checking.conv-bit-float.N.outβ float β output. this is the vibe she's serving back.
again, .N is the instance number, so if you loaded her with count=3 you get conv-bit-float.0, conv-bit-float.1, conv-bit-float.2, each minding her own business with her own pins. no shared drama. π
π AUTHOR π
Jeff Epler. the legend. the moment. the way he gave us a whole component that just... does one thing. periodt. π
β LICENSE β
GPL. she's free, she's open, she's for the people. π
that's the whole page bestie, she's short and she's perfect. conv_bit_float stays winning πβ¨
LinuxCNC Documentation β dated 2026-03-17. mwah, go convert something. π πΈ
π¦ 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