08_sensors.md 1.7 KB

Sensors

Node format

Offset Size Description
0 1 type = 0x08
1 1 flags
2 2 parent node
4 4 sensor node
8 8 sensor bitmask

When not inlined, then it is usually an indirect node, specifies a sensor with a state pointer. See flags.

Offset Size Description
0 1 type = 0x08
1 1 flags (bit 0..3: item size, bit 4..7: number of items)
2 2 parent node
4 12 inlined data

Each item in the inlined array is a sensor id. There's no particular context, you can attach these nodes to any kind of device.

JSON format

Sensor definition:

{
    "type": "SENSORS",
    "parent": (string) parent device's name,
    "unit": "indirect",
    "node": (number) pointed node,
    "mask": (number) bitmask
}

Sensor reference:

{
    "type": "SENSORS",
    "parent": (string) parent device's name,
    "unit": "byte" / "word" / "dword" / "qword",
    "data": [ (number) list of sensor ids ]
}