Machinekit Documentation
HAL Component — DEMUX16
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
demux16 — Turn on one of 16 outputs depending on one input
SYNOPSIS
demux16
USAGE SYNOPSIS
loadrt demux16
OR
newinst demux16 <newinstname> [ pincount=N | iprefix=prefix ] [instanceparamX=X | argX=X ]
( args in [ ] denote possible args and parameters, may not be used in all components )
FUNCTIONS
demux16.N.funct ( OR <newinstname>.funct (requires a floating-point thread) )
PINS
demux16.N.in u32 in ( OR <newinstname>.in u32 in ) - input in the range 0-15.
demux16.N.out%02d bit out (MM=00..pincount) ( OR <newinstname>.out%02d bit out (MM=00..pincount) ) - One output goes on if the input is in the range 0-15. Any other value results in no outputs on
demux16.N.bargraph bit io (default: 0) ( OR <newinstname>.bargraph bit io (default: 0) ) - If true the all outputs up to the input value turn on. Note in bargraph mode the range is 0-16 where 0= all off. In normal mode the range is 0-15 where 0= output 0 on
INST_PARAMETERS
pincount int (default: 16)
AUTHOR
Les Newell, adapted by ArcEye
LICENCE
GPL