Unpack integer value encoded at bit level
function integerBitUnpack import Modelica_DeviceDrivers.Packaging.SerialPackager; import Modelica_DeviceDrivers; input Modelica_DeviceDrivers.Packaging.SerialPackager pkg; input Integer bitOffset "Bit offset from current packager position until first encoding bit"; input Integer width "Number of bits that encode the integer value"; input Real dummy; output Integer value "Decoded integer value"; output Real dummy2; end integerBitUnpack;