unpack-barometer-device

xod-dev/st-mems/unpack-barometer-device

No description
unpack-barometer-device
@/unpack-barometer-device
DEV@/barometer-device
unpack-barometer-device
ADDR
I2C
DEV
I2Cxod/i2c/i2c
ADDRbyte
I²C address. 6Ah by default. Some board configurations use 6Bh instead.
To use the node in your project you should have the xod-dev/st-mems 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) {
        auto dev = getValue<input_DEV>(ctx);
        emitValue<output_I2C>(ctx, dev->i2c);
        emitValue<output_ADDR>(ctx, dev->addr);
    }
}