* Applies scaling and sign conversion to a raw 16-bit register value.
(index, rawValue)
| 142 | * Applies scaling and sign conversion to a raw 16-bit register value. |
| 143 | */ |
| 144 | function processValue(index, rawValue) { |
| 145 | var config = getRegisterConfig(index); |
| 146 | var value = config.signed ? toSigned16(rawValue) : rawValue; |
| 147 | return value / (config.scale || 1); |
| 148 | } |
| 149 | |
| 150 | //------------------------------------------------------------------------------ |
| 151 | // Main Parser Function |
no test coverage detected