- openSerial :: FilePath -> SerialPortSettings -> IO SerialPort
- recvChar :: SerialPort -> IO (Maybe Char)
- sendChar :: SerialPort -> Char -> IO ()
- closeSerial :: SerialPort -> IO ()
- setSerialSettings :: FilePath -> 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