Safe Haskell | None |
---|---|
Language | Haskell2010 |
- serialSettings :: SerialPortSettings
- queryCmd :: ByteString
- readN :: SerialPort -> Int -> IO (Maybe ByteString)
- readPacket :: SerialPort -> IO (Maybe ByteString)
- readPackets :: SerialPort -> IO [ByteString]
- data Header = Header {}
- netaddr :: Parser NetAddr
- headerLen :: Int
- data Payload
- data Packet = Packet {}
- newtype NetAddr = NetAddr {
- netAddrAsTuple :: (Int, Int, Int, Int)
- byte :: Parser Int
- word :: Parser Int
- parseEvent :: Parser Payload
- parseSerial :: Int -> Parser Payload
- bytestringParser :: Int -> Parser ByteString
- parsePacket :: ByteString -> Packet
- main :: IO ()
Documentation
serialSettings :: SerialPortSettings Source
Serial settings successfully used for communication.
readN :: SerialPort -> Int -> IO (Maybe ByteString) Source
Reading exactly N bytes from serial port, or reporting a failure.
readPacket :: SerialPort -> IO (Maybe ByteString) Source
Reading a packet:
readPackets :: SerialPort -> IO [ByteString] Source
Read all the packets currently in the buffer/network.
Header | |
|
parseEvent :: Parser Payload Source
parseSerial :: Int -> Parser Payload Source
bytestringParser :: Int -> Parser ByteString Source
parsePacket :: ByteString -> Packet Source