unpack-imu-device

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

No description
unpack-imu-device
@/unpack-imu-device
DEV@/imu-device
unpack-imu-device
ADDR
I2C
MULT
DEV
MULTnumber
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);
        emitValue<output_MULT>(ctx, dev->mult);
    }
}