dimm-get-power

cesars/dimmer/dimm-get-power

Power adjustment value reading
dimm-get-power
@/dimm-get-power
Power adjustment value reading
DIMM@/dimm-dev
Input to dev
GETpulse
Pulse for get power value
dimm-get-power
DIMM'
VAL
DONE
DIMM
GET
DONEpulse
Pulse done
VALnumber
Value power set
DIMM'@/dimm-dev
Output Dev to DIMM
To use the node in your project you should have the cesars/dimmer 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

node {
    void evaluate(Context ctx) {
        emitValue<output_DIMMU0027>(ctx, getValue<input_DIMM>(ctx));
        if (!isInputDirty<input_GET>(ctx))return;

        auto dimm = getValue<input_DIMM>(ctx);
        uint8_t val = dimm->getPower();
        emitValue<output_VAL>(ctx, val);
        emitValue<output_DONE>(ctx, 1);
    }
}