encapsulated function getPos import Modelica; extends Modelica.Icons.Function; import Modelica_DeviceDrivers.Packaging.SerialPackager; input SerialPackager pkg; output Integer pos(min = 0) "Get current byte position of package"; end getPos;