decode_registers()#

decode_registers(
registers: list[int],
data_type: Literal['uint16', 'int16', 'uint32', 'int32', 'uint64', 'int64', 'float32', 'float64', 'bool'],
byte_swap: bool = False,
word_swap: bool = False,
long_swap: bool = False,
) → int | float[source]#

Decode raw 16-bit registers into a typed value, applying byte/word/long swaps as configured.