Encode integer value at bit level
function integerBitPack 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 Integer value "Value to encode in with bits"; input Real dummy; output Real dummy2; end integerBitPack;