ham-0.1.0.0

Safe HaskellNone
LanguageHaskell2010

Ham.CAT.SerialCAT

Synopsis

Documentation

data SerialCAT Source #

Interface for radios that are communicating via serial interface.

serialGet Source #

Arguments

:: SerialPort 
-> String

Command; e.g. FA for getting frequency of VFO A.

-> (ByteString -> Parser a)

Decoder for the resulting answer from the radio.

-> IO (Maybe a) 

Get a value from a radio connected to a serial port. This uses a format that seems to be used by more than one manufacturer, such as Yaesu and Elecraft. The command format is "XY;" for getting something, where XY is a string. XY is given as second argument to this function.

serialSend :: SerialPort -> String -> IO () Source #

Send a string to the radio.