Machinekit Documentation
HAL Component — MUX4
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
mux4 — Select from one of four input values
SYNOPSIS
mux4
USAGE SYNOPSIS
loadrt mux4
OR
newinst mux4 <newinstname> [ pincount=N | iprefix=prefix ] [instanceparamX=X | argX=X ]
( args in [ ] denote possible args and parameters, may not be used in all components )
FUNCTIONS
mux4.N.funct ( OR <newinstname>.funct (requires a floating-point thread) )
PINS
mux4.N.sel0 bit in ( OR <newinstname>.sel0 bit in )
mux4.N.sel1 bit in ( OR <newinstname>.sel1 bit in ) - Together, these determine which \fBin\fIN\fR value is copied to \fBout\fR.
mux4.N.out float out ( OR <newinstname>.out float out ) - Follows the value of one of the \fBin\fIN\fR values according to the two \fBsel\fR values .RS .TP \fBsel1=FALSE\fR, \fBsel0=FALSE\fR \fBout\fR follows \fBin0\fR .TP \fBsel1=FALSE\fR, \fBsel0=TRUE\fR \fBout\fR follows \fBin1\fR .TP \fBsel1=TRUE\fR, \fBsel0=FALSE\fR \fBout\fR follows \fBin2\fR .TP \fBsel1=TRUE\fR, \fBsel0=TRUE\fR \fBout\fR follows \fBin3\fR .RE
mux4.N.in0 float in ( OR <newinstname>.in0 float in )
mux4.N.in1 float in ( OR <newinstname>.in1 float in )
mux4.N.in2 float in ( OR <newinstname>.in2 float in )
mux4.N.in3 float in ( OR <newinstname>.in3 float in )
LICENCE
GPL