latch-byte-v

cesars/data-latch/latch-byte-v

No description
latch-byte-v
@/latch-byte-v
Deprecated:
B1byte
LT1pulse
B2byte (variadic)
LT2pulse (variadic)
latch-byte-v
B1
LT1
B2
LT2
B
DONE
DONEpulse
Bbyte
To use the node in your project you should have the cesars/data-latch 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 (isInputDirty<input_LT1>(ctx)){
       emitValue<output_B>(ctx, getValue<input_B1>(ctx));
       emitValue<output_DONE>(ctx, 1);
   }else if (isInputDirty<input_LT2>(ctx)){
       emitValue<output_B>(ctx, getValue<input_B2>(ctx));
       emitValue<output_DONE>(ctx, 1);
    }
}