packages feed

rtlsdr 0.1.0.2 → 0.1.0.3

raw patch · 2 files changed

+38/−1 lines, 2 filesPVP ok

version bump matches the API change (PVP)

API changes (from Hackage documentation)

Files

RTLSDR.chs view
@@ -1,4 +1,37 @@ {-# LANGUAGE EmptyDataDecls #-}++{-|++This library is a straightforward wrapper around the C library functions. See the C library documentation: <https://github.com/steve-m/librtlsdr/blob/master/include/rtl-sdr.h>++Example usage:++> import Data.List+> import Foreign.Marshal.Array+> import RTLSDR+> +> bufSize    = 16384+> sampleRate = 1280000+> frequency  = 90200000+> +> main = do+>     dev <- open 0+>     case dev of+>         Nothing -> putStrLn "Error opening device"+>         Just dev -> do+>             setSampleRate    dev sampleRate+>             setCenterFreq    dev frequency+>             setTunerGainMode dev False+>             resetBuffer      dev+>             allocaArray bufSize $ \ptr -> do+>                 res <- readSync dev ptr bufSize+>                 case res of +>                     False -> putStrLn "Error reading from device"+>                     True  -> do+>                         res <- peekArray bufSize ptr+>                         putStrLn $ intercalate " " $ map show res+-}+ module RTLSDR (     getDeviceCount,     getDeviceName,
rtlsdr.cabal view
@@ -2,18 +2,22 @@ -- documentation, see http://haskell.org/cabal/users-guide/  name:                rtlsdr-version:             0.1.0.2+version:             0.1.0.3 synopsis:            Bindings to librtlsdr description:              Bindings to librtlsdr. Turns your Realtek RTL2832 based DVB dongle into a SDR receiver.      .     For more information see: <http://sdr.osmocom.org/trac/wiki/rtl-sdr>+    .+    This library is a straightforward wrapper around the C library functions. See the C library documentation: <https://github.com/steve-m/librtlsdr/blob/master/include/rtl-sdr.h> license:             BSD3 license-file:        LICENSE author:              Adam Walker maintainer:          adamwalker10@gmail.com copyright:           2014 Adam Walker category:            Software defined radio+homepage:            https://github.com/adamwalker/hrtlsdr+bug-reports:         https://github.com/adamwalker/hrtlsdr/issues build-type:          Simple -- extra-source-files:   cabal-version:       >=1.10