dimm-get-mode

cesars/rbd-dimm/dimm-get-mode

Reading request of the current mode
dimm-get-mode
@/dimm-get-mode
Reading request of the current mode
DIMM@/dimm-dev
Input to Dev
Getpulse
Pulse for get current mode
dimm-get-mode
Dev
Val
Done
DIMM
Get
Donepulse
Pulse done
Valnumber
Value mode set
Dev@/dimm-dev
Output Dev to DIMM
To use the node in your project you should have the cesars/rbd-dimm 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) {

    emitValue<output_Dev>(ctx, getValue<input_DIMM>(ctx));
    if (!isInputDirty<input_Get>(ctx))
        return;

    auto dimm = getValue<input_DIMM>(ctx);
    int val = dimm->getMode();
    emitValue<output_Val>(ctx, val);
    emitValue<output_Done>(ctx, 1);
}