- openSerial :: FilePath -> SerialPortSettings -> IO SerialPort
- recvChar :: SerialPort -> IO (Maybe Char)
- sendChar :: SerialPort -> Char -> IO ()
- closeSerial :: SerialPort -> IO ()
- c_ioctl :: CInt -> CInt -> Ptr () -> IO CInt
- cIoctl' :: Fd -> Int -> Ptr d -> IO ()
- getTIOCM :: Fd -> IO Int
- setTIOCM :: Fd -> Int -> IO ()
- setDTR :: SerialPort -> Bool -> IO ()
- setRTS :: SerialPort -> Bool -> IO ()
- setSerialSettings :: Fd -> SerialPortSettings -> IO ()
- withParity :: TerminalAttributes -> Parity -> TerminalAttributes
- withFlowControl :: TerminalAttributes -> FlowControl -> TerminalAttributes
- withStopBits :: TerminalAttributes -> StopBits -> TerminalAttributes
- configureSettings :: TerminalAttributes -> SerialPortSettings -> TerminalAttributes
Documentation
:: FilePath | The filename of the serial port, such as |
-> 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.
closeSerial :: SerialPort -> IO ()Source
Close the serial port
setSerialSettings :: Fd -> SerialPortSettings -> IO ()Source