Machinekit Documentation
HAL Component — ONESHOTV2
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
oneshotv2 — one-shot pulse generator
SYNOPSIS
oneshotv2
USAGE SYNOPSIS
loadrt oneshotv2
OR
newinst oneshotv2 <newinstname> [ pincount=N | iprefix=prefix ] [instanceparamX=X | argX=X ]
( args in [ ] denote possible args and parameters, may not be used in all components )
DESCRIPTION
creates a variable-length output pulse when the input changes state. This function needs to run in a thread which supports floating point (typically the servo thread). This means that the pulse length has to be a multiple of that thread period, typically 1mS. For a similar function that can run in the base thread, and which offers higher resolution, see "edge".
FUNCTIONS
oneshotv2.N.funct ( OR <newinstname>.funct (requires a floating-point thread) )
Produce output pulses from input edges
PINS
LICENCE
GPL