Phase 3 PR 46 -- DL205 BCD decoder #45
Reference in New Issue
Block a user
Delete Branch "phase-3-pr46-dl205-bcd"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Stacked on PR 45. Adds
ModbusDataType.Bcd16+Bcd32for DirectLOGIC binary-coded-decimal numerics.0x1234= decimal 1234, NOT 4660).DecodeBcdwalks nibbles MSB→LSB; rejects any nibble > 9 withInvalidDataException(prevents silent data corruption on transient garbage).Bcd32respectsModbusByteOrderso word-swap families can use it.Validation
Bcd16_decodes_DL205_register_1234_as_decimal_1234with control vs Int16)Test plan