serialport-0.3.2: 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

c_ioctl' :: Fd -> Int -> Ptr d -> IO ()Source

setDTR :: SerialPort -> Bool -> IO ()Source

Set the Data Terminal Ready level