Machinekit Documentation
HAL Component — BIN2GRAY
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
bin2gray — convert a number to the gray-code representation
SYNOPSIS
bin2gray
USAGE SYNOPSIS
loadrt bin2gray
OR
newinst bin2gray <newinstname> [ pincount=N | iprefix=prefix ] [instanceparamX=X | argX=X ]
( args in [ ] denote possible args and parameters, may not be used in all components )
DESCRIPTION
Converts a number into gray-code
FUNCTIONS
bin2gray.N.funct ( OR <newinstname>.funct )
PINS
bin2gray.N.in u32 in ( OR <newinstname>.in u32 in ) - binary code in
bin2gray.N.out u32 out ( OR <newinstname>.out u32 out ) - gray code out
AUTHOR
andy pugh
LICENCE
GPL