blob: aaa4e0e2996f2d1d2f1741ae81ab51a11e68f829 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
component tristate_float "Place a signal on an I/O pin only when enabled, similar to a tristate buffer in electronics";
pin in float in_ "Input value";
pin io float out "Output value";
pin in bit enable "When TRUE, copy in to out";
function _ "If \\fBenable\\fR is TRUE, copy \\fBin\\fR to \\fBout\\fR.";
license "GPL";
;;
FUNCTION(_) { if(enable) out = in_; }
|