Machinekit Documentation
HAL Component — ABS_S64
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
abs_s64 — Compute the absolute value and sign of the input signal
SYNOPSIS
abs_s64
USAGE SYNOPSIS
loadrt abs_s64
OR
newinst abs_s64 <newinstname> [ pincount=N | iprefix=prefix ] [instanceparamX=X | argX=X ]
( args in [ ] denote possible args and parameters, may not be used in all components )
FUNCTIONS
abs_s64.N.funct ( OR <newinstname>.funct )
PINS
abs_s64.N.in s64 in ( OR <newinstname>.in s64 in ) - input value
abs_s64.N.out s64 out ( OR <newinstname>.out s64 out ) - output value, always non-negative
abs_s64.N.sign bit out ( OR <newinstname>.sign bit out ) - Sign of input, false for positive, true for negative
abs_s64.N.is-positive bit out ( OR <newinstname>.is-positive bit out ) - true if input is positive, false if input is 0 or negative
abs_s64.N.is-negative bit out ( OR <newinstname>.is-negative bit out ) - true if input is negative, false if input is 0 or positive
LICENCE
GPL