Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- data SerialCAT = SerialCAT {
- serialGetFrequency :: SerialPort -> IO (Maybe Frequency)
- serialGetMode :: SerialPort -> IO (Maybe QsoMode)
- serialSetPowerSSB :: SerialPort -> Int -> IO ()
- serialGetPowerSSB :: SerialPort -> IO (Maybe Int)
- serialIdentify :: SerialPort -> IO Bool
- serialGet :: SerialPort -> String -> (ByteString -> Parser a) -> IO (Maybe a)
- serialSend :: SerialPort -> String -> IO ()
Documentation
Interface for radios that are communicating via serial interface.
SerialCAT | |
|
:: 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.