encapsulated function sendTo import Modelica; extends Modelica.Icons.Function; import Modelica_DeviceDrivers.Communication.SerialPort; import Modelica_DeviceDrivers.Packaging.SerialPackager; input SerialPort sPort "Serial Port object"; input SerialPackager pkg; input Integer dataSize "Size of data"; end sendTo;