Machinekit Documentation
HAL Component — TOGGLE2NIST
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
toggle2nist — toggle button to nist logic
SYNOPSIS
toggle2nist
USAGE SYNOPSIS
loadrt toggle2nist
OR
newinst toggle2nist <newinstname> [ pincount=N | iprefix=prefix ] [instanceparamX=X | argX=X ]
( args in [ ] denote possible args and parameters, may not be used in all components )
DESCRIPTION
toggle2nist can be used with a momentary push button connected to a toggle component to control a device that has seperate on and off inputs and has an is-on output. If in changes states via the toggle output If is-on is true then on is false and off is true. If is-on is false the on true and off is false.
FUNCTIONS
toggle2nist.N.funct ( OR <newinstname>.funct (requires a floating-point thread) )
PINS
toggle2nist.N.in bit in ( OR <newinstname>.in bit in )
toggle2nist.N.is-on bit in ( OR <newinstname>.is-on bit in )
toggle2nist.N.on bit out ( OR <newinstname>.on bit out )
toggle2nist.N.off bit out ( OR <newinstname>.off bit out )
LICENCE
GPL