serialport-0.3.2: System/Hardware/Serialport.hs
{-# LANGUAGE CPP #-}
module System.Hardware.Serialport (
-- * Types
BaudRate(..)
,StopBits(..)
,Parity(..)
,FlowControl(..)
,SerialPort
-- * Configure port
-- | You don't need the get or set functions, they are used by openSerial
,SerialPortSettings(..)
,defaultSerialSettings
-- * Serial methods
,openSerial
,sendChar
,recvChar
,closeSerial
,setDTR
) where
#if defined(mingw32_HOST_OS)
import System.Hardware.Serialport.Windows
#elif defined(linux_HOST_OS)
import System.Hardware.Serialport.Posix
import System.Posix.Terminal
#endif
import System.Hardware.Serialport.Types