.\"******************************************************************* .\" .\" This file was extracted from hal/components/and2.comp using halcompile.g. .\" Modify the source file. .\" .\"******************************************************************* .TH AND2 "9" "2024-03-13" "LinuxCNC Documentation" "HAL Component" .SH NAME and2 \- Two-input AND gate .SH SYNOPSIS .HP .B loadrt and2 [count=\fIN\fB|names=\fIname1\fB[,\fIname2...\fB]] .SH FUNCTIONS .TP \fBand2.\fIN\fB\fR .SH PINS .TP .B and2.\fIN\fB.in0\fR bit in \fR .br .ns .TP .B and2.\fIN\fB.in1\fR bit in \fR .br .ns .TP .B and2.\fIN\fB.out\fR bit out \fR .P The \fBout\fR pin is computed from the value of the \fBin0\fR and \fBin1\fR pins according to the following rule: .RS .TP \fBin0=TRUE in1=TRUE\fB \fBout=TRUE\fR .TP Otherwise, \fBout=FALSE\fR .RE .SH SEE ALSO \fBlogic\fR(9), \fBlut5\fR(9), \fBnot\fR(9), \fBor2\fR(9), \fBxor2\fR(9). .SH AUTHOR Jeff Epler .SH LICENSE GPL