encapsulated function getBoolean import Modelica; extends Modelica.Icons.Function; import Modelica_DeviceDrivers.Packaging.SerialPackager; input SerialPackager pkg; input Integer n; output Boolean y[n]; end getBoolean;