Download Now

    Reference TSerialPortOptions

    Declared in Codebot.IO.SerialPort.pas on line 50

    TSerialPortOptions holds the line settings of a serial port
      TSerialPortOptions = record
      public
        { Speed in bits per second }
        Baud: Integer;
        { Number of data bits per character }
        DataBits: Integer;
        { Parity checking mode }
        Parity: TParity;
        { Number of stop bits }
        StopBits: TStopBits;
        { Flow control options }
        FlowControl: TFlowControl;
        { Minimum number of bytes a read waits for }
        Min: Byte;
        { Read timeout in tenths of a second }
        Timeout: Byte;
        { Read the current options of a serial port device }
        class function Create(const Device: string): TSerialPortOptions; overload; static;
        { Create options with a baud rate, data bits, and parity }
        class function Create(Baud: Integer = Baud9600; DataBits: Integer = Bits8; Parity: TParity = prNone): TSerialPortOptions; overload; static;
        { Convert the options to a readable string }
        function ToString: string;
      end;

    See also