- data StopBits
- data Parity
- data FlowControl
- data SerialPort = SerialPort Handle
- hOpenSerial :: String -> BaudRate -> Word8 -> StopBits -> Parity -> FlowControl -> IO Handle
- openSerial :: String -> BaudRate -> Word8 -> StopBits -> Parity -> FlowControl -> IO SerialPort
- setSerial :: String -> BaudRate -> Word8 -> StopBits -> Parity -> FlowControl -> IO ()
- withParity :: TerminalAttributes -> Parity -> TerminalAttributes
- withFlowControl :: TerminalAttributes -> FlowControl -> TerminalAttributes
- withStopBits :: TerminalAttributes -> StopBits -> TerminalAttributes
- configureSettings :: TerminalAttributes -> BaudRate -> Word8 -> StopBits -> Parity -> FlowControl -> TerminalAttributes
- recvChar :: SerialPort -> IO (Maybe Char)
- sendChar :: SerialPort -> Char -> IO ()
- closeSerial :: SerialPort -> IO ()
Documentation
:: String | The filename of the serial port, such as |
-> BaudRate | |
-> Word8 | The number of bits per word, typically 8 |
-> StopBits | Almost always |
-> Parity | Error checking |
-> FlowControl | |
-> IO Handle |
Open and configure a serial port and return a Handle
:: String | The filename of the serial port, such as |
-> BaudRate | |
-> Word8 | The number of bits per word, typically 8 |
-> StopBits | Almost always |
-> Parity | |
-> FlowControl | |
-> IO SerialPort |
configureSettings :: TerminalAttributes -> BaudRate -> Word8 -> StopBits -> Parity -> FlowControl -> TerminalAttributesSource
closeSerial :: SerialPort -> IO ()Source