.Modelica_DeviceDrivers.Communication.SerialPort.constructor

Information

Creates a SerialPort instance with a given listening port.

Interface

encapsulated function constructor
  import Modelica;
  extends Modelica.Icons.Function;
  import Modelica_DeviceDrivers.Communication.SerialPort;
  import Modelica_DeviceDrivers.Utilities.Types.SerialBaudRate;
  input String deviceName "Serial port (/dev/ttyX or \\\\.\\COMX)";
  input Integer bufferSize = 16*1024 "Size of receive buffer, may be set to 0 for sending serial port (receiver=0)";
  input Integer parity = 0 "0 - no parity, 1 - even, 2 - odd";
  input Integer receiver = 1 "0 - sender, 1 - receiver";
  input SerialBaudRate baud;
  output SerialPort sPort;
end constructor;

Generated at 2024-12-26T19:25:54Z by OpenModelicaOpenModelica 1.24.3 using GenerateDoc.mos