Machinekit

Machinekit

Machinekit Documentation

HAL Component — TRISTATE_FLOAT

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_float — Place a signal on an I/O pin only when enabled, similar to a tristate buffer in electronics

SYNOPSIS

tristate_float

USAGE SYNOPSIS

loadrt tristate_float
OR
newinst tristate_float <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_float.N.funct ( OR <newinstname>.funct (requires a floating-point thread) )

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

PINS

tristate_float.N.in float in ( OR <newinstname>.in float in ) - Input value

tristate_float.N.out float io ( OR <newinstname>.out float io ) - Output value

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

LICENCE

GPL