gate(buffer1)

awgrover/buffer1/gate(buffer1)

Allows values to pass through only if EN pin is set to true
gate(buffer1)
@/gate(buffer1)
Allows values to pass through only if EN pin is set to true
IN@/buffer1
ENboolean
Whether values should pass through
gate(buffer1)
IN
EN
OUT
OUT@/buffer1
To use the node in your project you should have the awgrover/buffer1 library installed. Use the “File → Add Library” menu item in XOD IDE if you don’t have it yet. See Using libraries for more info.

C++ implementation

struct State {
};

{{ GENERATED_CODE }}

void evaluate(Context ctx) {
    if (getValue<input_EN>(ctx))
        emitValue<output_OUT>(ctx, getValue<input_IN>(ctx));

}