encapsulated function write import Modelica; extends Modelica.Icons.Function; import Modelica_DeviceDrivers.Communication.SharedMemory; import Modelica_DeviceDrivers.Packaging.SerialPackager; input SharedMemory sm; input SerialPackager pkg "Data package to be written"; input Integer len; end write;