not entirely certain the best way to implement this, because it may vary between transports.
maybe some sort of hook / callback.
but, calculating registry ranges based on data type would allow for a bit of short hand.
ie,
in modbus, where each register holds 2 bytes.
UINT @ x01 would be interepreted as UINT @ x01~x02
but in say canbus, this would be ignored, since the "registers" hold more than 4 bytes.
not entirely certain the best way to implement this, because it may vary between transports.
maybe some sort of hook / callback.
but, calculating registry ranges based on data type would allow for a bit of short hand.
ie,
in modbus, where each register holds 2 bytes.
UINT @ x01 would be interepreted as UINT @ x01~x02
but in say canbus, this would be ignored, since the "registers" hold more than 4 bytes.