Machinekit

Machinekit

Machinekit Documentation

HAL Component — OR2

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

or2 — Two-input OR gate

SYNOPSIS

or2

USAGE SYNOPSIS

loadrt or2
OR
newinst or2 <newinstname> [ pincount=N | iprefix=prefix ] [instanceparamX=X | argX=X ]

( args in [ ] denote possible args and parameters, may not be used in all components )

FUNCTIONS

or2.N.funct ( OR <newinstname>.funct )

PINS

or2.N.in0 bit in ( OR <newinstname>.in0 bit in )

or2.N.in1 bit in ( OR <newinstname>.in1 bit in )

or2.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=FALSE in1=FALSE\fB \fBout=FALSE\fR .TP Otherwise, \fBout=TRUE\fR .RE

LICENCE

GPL