EDGE(9)
π EDGE(9) β HAL Component π
okay bestie, gather round, because we're talking about edge β the Edge detector for HAL. yes it's a whole manual page for a component that just... looks at edges. and honestly? iconic. β¨
β¨ NAME β¨
edge β Edge detector π¦
β¨ SYNOPSIS β¨
loadrt edge [count=N|names=name1[,name2...]]
that's it. that's the whole vibe. load it with a count or give your instances cute little names, your call π
β¨ FUNCTIONS β¨
edge.Nβ Produce output pulses from input edges. that's the entire job description and she does it flawlessly π₯
β¨ PINS β¨
edge.N.inbit in β the input. she's watching this one. πedge.N.outbit out β Goes high when the desired edge is seen oninβedge.N.out-invertbit out β Goes low when the desired edge is seen oninπ (yes, the opposite. that's the bit. literally the inverse twin.)
β¨ PARAMETERS β¨
edge.N.bothbit rw (default:FALSE) β IfTRUE, selects both edges. Otherwise, selects one edge according toin-edge. lowkey a choose-your-own-adventure πedge.N.in-edgebit rw (default:TRUE) β IfbothisFALSE, selects the one desired edge:TRUEmeans falling,FALSEmeans rising π (yes bestie,TRUEis falling. no cap, that's just how it is.)edge.N.out-width-nss32 rw (default:0) β Time in nanoseconds of the output pulse β±οΈedge.N.time-left-nss32 r β Time left in this output pulse πΈedge.N.last-inbit r β Previous input value, for when you wanna remember what just happened π
β¨ AUTHOR β¨
Jeff Epler π
β¨ LICENSE β¨
GPL π
and that's the whole page, bestie β written up by the LinuxCNC Documentation crew, dated 2026-03-17, for EDGE(9) in the HAL Component lineup. go forth and detect some edges, you absolute main character π«Άπ
π¦ 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