TOGGLE2NIST(9)
β¨ TOGGLE2NIST β¨
okay bestie, so this is a HAL Component page from section 9, and it's literally called toggle2nist π
π NAME π
toggle2nist β turning a toggle button into nist logic, and yes that's the whole vibe π¦
πΈ SYNOPSIS πΈ
loadrt toggle2nist [count=N|names=name1[,name2...]]
π DESCRIPTION π
So basically, Toggle2nist is what you call when you've got a momentary push button and you're trying to drive a device that β annoyingly β has its on and off inputs living separately AND an is-on output just chillin' over there doing its own thing. No cap, she's a little translator π§
Here's the tea:
- On a rising edge on pin
inwhenis-onis low: it setsonuntilis-onbecomes high. π - On a rising edge on pin
inwhenis-onis high: it setsoffuntilis-onbecomes low. π
And here's the picture, because a diagram ate and left no crumbs:
β ββββββxxxxxxxxxxxxβ ββββββxxxxxxxxxxxxβ
in : βββββββ xxxxxxxxxxxxβββββββββββββ xxxxxxxxxxxxββββββ
β βββββββββββββ
on : βββββββ ββββββββββββββββββββββββββββββββββββββββββ
β βββββββββββββ
off : βββββββββββββββββββββββββββββββββββββ ββββββββββββ
β βββββββββββββββββββββββββββββββ
is-on: βββββββββββββββββββ ββββββββββββ
β FUNCTIONS β
toggle2nist.N
π PINS π
toggle2nist.N.inbit in β the input, bestie π«Άtoggle2nist.N.is-onbit in β the is-on input πtoggle2nist.N.onbit out β the on output β¨toggle2nist.N.offbit out β the off output π₯
π AUTHOR π
Anders Wallin
π LICENSE π
GPL
and that's the whole page, periodt π β¨ shoutout to the LinuxCNC Documentation for this one, dated 2026-03-17 β go forth and toggle, icon ππ¦
π¦ 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