Machinekit Documentation
HAL Component — DEBOUNCE
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
debounce — Debounce filter for Machinekit HAL
SYNOPSIS
debounce
USAGE SYNOPSIS
loadrt debounce
OR
newinst debounce <newinstname> [ pincount=N | iprefix=prefix ] [instanceparamX=X | argX=X ]
( args in [ ] denote possible args and parameters, may not be used in all components )
FUNCTIONS
debounce.N.funct ( OR <newinstname>.funct (requires a floating-point thread) )
PINS
debounce.N.%01d.in bit in (M=0..pincount) ( OR <newinstname>.%01d.in bit in (M=0..pincount) )
debounce.N.%01d.out bit out (M=0..pincount) ( OR <newinstname>.%01d.out bit out (M=0..pincount) )
debounce.N.%01d.state s32 io (M=0..pincount) ( OR <newinstname>.%01d.state s32 io (M=0..pincount) )
debounce.N.delay s32 io (default: 5) ( OR <newinstname>.delay s32 io (default: 5) )
INST_PARAMETERS
pincount int (default: 8)
AUTHOR
John Kasunich, adapted by ArcEye
LICENCE
GPL