TRISTATE_FLOAT(9)

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

✨ 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. If enable is TRUE, copy in to out.

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.in float in β€” input value. this is the thing you're passing along πŸ’œ
  • tristate-float.N.out float io β€” output value. this is the thing that comes out the other side (but only sometimes, see below). note the type is io, not out, so it's got main character dual energy ✨
  • tristate-float.N.enable bit in β€” when TRUE, copy in to out. 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