serialport-0.3.1: Cross platform serial port library.

System.Hardware.Serialport.Posix

Synopsis

Documentation

openSerialSource

Arguments

:: FilePath

The filename of the serial port, such as /dev/ttyS0 or /dev/ttyUSB0

-> SerialPortSettings 
-> IO SerialPort 

Open and configure a serial port

recvChar :: SerialPort -> IO (Maybe Char)Source

Possibly receive a character unless the timeout given in openSerial is exceeded.

sendChar :: SerialPort -> Char -> IO ()Source

Send a character

closeSerial :: SerialPort -> IO ()Source

Close the serial port