dimm-set-power

cesars/rbd-dimm/dimm-set-power

Set power 0...100%
dimm-set-power
@/dimm-set-power
Set power 0...100%
DIMM@/dimm-dev
Intput to dev
Powernumber
Power value 0-100
Setpulse
Pulse for set power value
dimm-set-power
DIMM
Power
Set
Dev
Done
Donepulse
Pulse done
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_Set>(ctx))
        return;

    auto dimm = getValue<input_DIMM>(ctx);
    uint8_t val = getValue<input_Power>(ctx);
    dimm->setPower(val);
    emitValue<output_Done>(ctx, 1);
}