Skip to content

Latest commit

 

History

History
39 lines (23 loc) · 1.04 KB

class1.measurement32x1.md

File metadata and controls

39 lines (23 loc) · 1.04 KB

Class=71 (0x47) - Single precision floating point measurement

CLASS1.MEASUREMENT32X1

Description

Floating point single precision measurements. This class mirrors the standard measurement events is CLASS1.MEASUREMENT=11. The measurement unit is always the standard unit.

The value is a "float" - IEEE-754, 32 Bits, single precision.

s eeeeeeeeeee mmmmmmmmmmmmmmmmmmmmmmm
s = sign bit ( 1-bit )
e = exponent ( 8-bits )
m = mantissa ( 23-bits )

That is a total of 32-bits. The most significant byte is stored in byte 0.

Byte Description
0 s e7 e6 e5 e4 e3 e2 e1
1 e0 m22 m21 m20 m19 m18 m17 m16
2 m15 m14 m13 m12 m11 m19 m9 m8
3 m7 m6 m5 m4 m3 m2 m1 m0

Type=0 (0x00) - General event :id=type0

VSCP_TYPE_MEASUREMENTX1_GENERAL

This is a general (custom) event that can be used if no other event is suitable.


filename