TRISTATE_FLOAT(9)
β¨ TRISTATE_FLOAT β¨
okay bestie, welcome to the HAL Component manual page for tristate_float π this is section 9, we're in kernel-adjacent territory, and honestly? it's giving icon energy.
πΈ NAME πΈ
tristate_float β place a signal on an I/O pin only when enabled, similar to a tristate buffer in electronics.
like. literally a tristate buffer. but for HAL. no cap π
π SYNOPSIS π
loadrt tristate_float [count=N|names=name1[,name2...]]
yep that's it, that's the whole load line. count=N or names=name1[,name2...] β pick your fighter, you don't need both π«Ά
π¦ FUNCTIONS π¦
tristate-float.Nβ requires a floating-point thread. yes, a floating-point thread, don't try to sneak it into an integer one, it will not slay. Ifenableis TRUE, copyintoout.
so the function is just: is enable true? then do the copy. otherwise it's vibing in silence, doing absolutely nothing, and that's the whole point π§
π PINS π
tristate-float.N.infloat in β input value. this is the thing you're passing along πtristate-float.N.outfloat io β output value. this is the thing that comes out the other side (but only sometimes, see below). note the type isio, notout, so it's got main character dual energy β¨tristate-float.N.enablebit in β when TRUE, copyintoout. when it's not TRUE? the output is just... not being driven by this. that's the tristate part, iykyk π
lowkey the whole personality of this component is that enable bit. TRUE = copy happens. anything else = hands off. periodt.
π AUTHOR π
Jeff Epler β the legend, the moment, the author of record π«Ά
π LICENSE π
GPL β free software, fr fr, take it, use it, share it, respect the license π
π SEE ALSO π
nothing listed here bestie, this page is a standalone baddie. go read the rest of the HAL docs if you want more, but this one? complete on its own πΈ
anyway that's the whole page π tristate_float is small, it's cute, it does exactly one thing and it does it flawlessly β and honestly that's the biggest slay of all π
β¨
this vibe check was brought to you by LinuxCNC Documentation, dated 2026-03-17, and the page you just read is TRISTATE_FLOAT(9). drink water, thread your floating-point stuff properly, bye bestie π¦π
π¦ 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