Machinekit Documentation
HAL Component — MUX2
INSTANTIABLE COMPONENTS — General
All instantiable components can be loaded in two manners
Using loadrt with or without count= | names= parameters as per legacy components
Using newinst, which names the instance and allows further parameters and arguments
primarily pincount= which can set the number of pins created for that instance (where applicable)
NAME
mux2 — Select from one of two input values
SYNOPSIS
mux2
USAGE SYNOPSIS
loadrt mux2
OR
newinst mux2 <newinstname> [ pincount=N | iprefix=prefix ] [instanceparamX=X | argX=X ]
( args in [ ] denote possible args and parameters, may not be used in all components )
FUNCTIONS
mux2.N.funct ( OR <newinstname>.funct (requires a floating-point thread) )
PINS
mux2.N.sel bit in ( OR <newinstname>.sel bit in )
mux2.N.out float out ( OR <newinstname>.out float out ) - Follows the value of in0 if sel is FALSE, or in1 if sel is TRUE
mux2.N.in1 float in ( OR <newinstname>.in1 float in )
mux2.N.in0 float in ( OR <newinstname>.in0 float in )
LICENCE
GPL