Machinekit Documentation
HAL Component — XOR2
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
xor2 — Two-input XOR (exclusive OR) gate
SYNOPSIS
xor2
USAGE SYNOPSIS
loadrt xor2
OR
newinst xor2 <newinstname> [ pincount=N | iprefix=prefix ] [instanceparamX=X | argX=X ]
( args in [ ] denote possible args and parameters, may not be used in all components )
FUNCTIONS
xor2.N.funct ( OR <newinstname>.funct )
PINS
xor2.N.in0 bit in ( OR <newinstname>.in0 bit in )
xor2.N.in1 bit in ( OR <newinstname>.in1 bit in )
xor2.N.out bit out ( OR <newinstname>.out bit out ) - \fBout\fR is computed from the value of \fBin0\fR and \fBin1\fR according to the following rule: .RS .TP \fBin0=true in1=false\fR .TQ \fBin0=false in1=true\fR \fBout=true\fR .TP Otherwise, \fBout=false\fR
LICENCE
GPL