.\"******************************************************************* .\" .\" This file was extracted from hal/components/toggle.comp using halcompile.g. .\" Modify the source file. .\" .\"******************************************************************* .TH TOGGLE "9" "2024-03-13" "LinuxCNC Documentation" "HAL Component" .SH NAME toggle \- 'push-on, push-off' from momentary pushbuttons .SH SYNOPSIS .HP .B loadrt toggle [count=\fIN\fB|names=\fIname1\fB[,\fIname2...\fB]] .SH DESCRIPTION ┐ ┏──┐ ┏──┐ .br in : └─────┛ └────────┛ └── .br ┐ ┌───────────┐ .br out: └─────┘ └───── .SH FUNCTIONS .TP \fBtoggle.\fIN\fB\fR .SH PINS .TP .B toggle.\fIN\fB.in\fR bit in \fR button input .TP .B toggle.\fIN\fB.out\fR bit io \fR on/off output .SH PARAMETERS .TP .B toggle.\fIN\fB.debounce\fR u32 rw \fR(default: \fI2\fR) debounce delay in periods .SH AUTHOR John Kasunich .SH LICENSE GPL