MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / getRegisterConfig

Function getRegisterConfig

app/rcc/scripts/parser/js/modbus.js:137–139  ·  view source on GitHub ↗

* Returns the register config for the given index, with sensible defaults.

(index)

Source from the content-addressed store, hash-verified

135 * Returns the register config for the given index, with sensible defaults.
136 */
137function getRegisterConfig(index) {
138 return CONFIG.registers[index] || { name: "Register " + index, scale: 1, signed: false };
139}
140
141/**
142 * Applies scaling and sign conversion to a raw 16-bit register value.

Callers 2

processValueFunction · 0.85
parseFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected