MUX4(9)
π NAME π
mux4 β bestie, it picks ONE of four input values and sends it through. That's it, that's the whole vibe. A four-way switcheroo β¨
π SYNOPSIS π
loadrt mux4 [count=N|names=name1[,name2...]]
okay so you load it, and you either say how many copies you want with count=N or you name them yourself with names=name1[,name2...] β pick your fighter, don't do both π«Ά
πΈ FUNCTIONS πΈ
mux4.Nβ this one needs a floating-point thread, no cap. It literally will not run in an integer thread, so check your thread type before you come crying to me π
π PINS π
mux4.N.sel0bit inmux4.N.sel1bit in
ngl these two are the whole decision-making committee π
Together, they determine which inN value gets copied over to out. Two bits, four outcomes, main character energy.
mux4.N.outfloat out
This one just follows whichever of the inN values the two sel values point at. The way it works:
sel1=FALSE,sel0=FALSEβoutfollowsin0πsel1=FALSE,sel0=TRUEβoutfollowsin1πsel1=TRUE,sel0=FALSEβoutfollowsin2πsel1=TRUE,sel0=TRUEβoutfollowsin3β
mux4.N.in0float inmux4.N.in1float inmux4.N.in2float inmux4.N.in3float in
The four candidates. Four float inputs, all just sitting there waiting to be the chosen one π§
π¦ SEE ALSO π¦
mux2(9), mux8(9), mux16(9), mux_generic(9) β the whole mux family, iykyk π
β¨ AUTHOR β¨
Jeff Epler π
π LICENSE π
GPL
and that's a wrap bestie!! this page came out of the LinuxCNC Documentation, dated 2026-03-17 π go forth and multiplex, you absolute 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