module puppeteer.serial.iserial_port; import puppeteer.serial.baud_rate; import puppeteer.serial.parity; import puppeteer.serial.ox_serial_port_wrapper; interface ISerialPort { void write(ubyte[] bytes); ubyte[] read(int maxBytes); bool open(); void close(); static ISerialPort getInstance(string filename, Parity parity, BaudRate baudRate, uint timeOutMilliseconds) { return new OxSerialPortWrapper(filename, parity, baudRate, timeOutMilliseconds); } }