package serialport

  1. Overview
  2. Docs

Module Serialport.Port_optionsSource

The module describes the configuration options for a serial port.

include module type of struct include Port_options end
type t = Port_options.t = {
  1. baud_rate : int;
  2. data_bits : int;
  3. parity : parity;
  4. stop_bits : int;
}
and parity = Port_options.parity =
  1. | No_parity
  2. | Odd_parity
  3. | Even_parity
val make : ?data_bits:??? -> ?parity:??? -> ?stop_bits:??? -> baud_rate:int -> unit -> t