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