Provided by: linuxcnc-uspace_2.9.0~pre0+git20220402.2500863908-4build1_amd64
NAME
logic - LinuxCNC HAL component providing configurable logic functions
SYNOPSIS
loadrt logic [count=N|names=name1[,name2...]] [personality=P,P,...]
DESCRIPTION
General `logic function' component. Can perform `and', `or', `nand', `nor' and `xor' of up to 16 inputs. Determine the proper value for `personality' by adding the inputs and outputs then convert to hex: • The number of input pins, usually from 2 to 16 • 256 (0x100) if the `and' output is desired • 512 (0x200) if the `or' output is desired • 1024 (0x400) if the `xor' (exclusive or) output is desired • 2048 (0x800) if the `nand' output is desired • 4096 (0x1000) if the `nor' output is desired Outputs can be combined, for example 2 + 256 + 1024 = 1282 converted to hex would be 0x502 and would have two inputs and have both `xor' and `and' outputs.
FUNCTIONS
logic.N
PINS
logic.N.in-MM bit in (MM=00..personality & 0xff) logic.N.and bit out [if personality & 0x100] logic.N.or bit out [if personality & 0x200] logic.N.xor bit out [if personality & 0x400] logic.N.nand bit out [if personality & 0x800] logic.N.nor bit out [if personality & 0x1000]
LICENSE
GPL