serialport-0.1.0: Cross platform serial port library.

System.Hardware.Serialport.Posix

Synopsis

Documentation

data StopBits Source

Constructors

One 
Two 

data Parity Source

Constructors

Even 
Odd 
NoParity 

hOpenSerialSource

Arguments

:: String

The filename of the serial port, such as devttyS0 or devttyUSB0

-> BaudRate 
-> Int

The number of bits per word, typically 8

-> StopBits

Almost always One unless you're talking to a printer

-> Parity

Error checking

-> FlowControl 
-> IO Handle 

Open and configure a serial port and return a Handle

openSerialSource

Arguments

:: String

The filename of the serial port, such as devttyS0

-> BaudRate 
-> Int

The number of bits per word, typically 8

-> StopBits

Almost always One unless you're talking to a printer

-> Parity 
-> FlowControl 
-> IO SerialPort