Machinekit

Machinekit

Machinekit Documentation

HAL Component — TRISTATE_BIT

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

tristate_bit — Place a signal on an I/O pin only when enabled, similar to a tristate buffer in electronics

SYNOPSIS

tristate_bit

USAGE SYNOPSIS

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

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

FUNCTIONS

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

If \fBenable\fR is TRUE, copy \fBin\fR to \fBout\fR.

PINS

tristate_bit.N.in bit in ( OR <newinstname>.in bit in ) - Input value

tristate_bit.N.out bit io ( OR <newinstname>.out bit io ) - Output value

tristate_bit.N.enable bit in ( OR <newinstname>.enable bit in ) - When TRUE, copy in to out

LICENCE

GPL