sdr-0.1.0.12: A software defined radio library

Safe HaskellNone
LanguageHaskell2010

SDR.RTLSDRStream

Description

Stream samples from a Realtek RTL2832U based device

Synopsis

Documentation

data RTLSDRParams Source #

RTLSDR configuration parameters

defaultRTLSDRParams Source #

Arguments

:: Word32

Frequency

-> Word32

Sample rate

-> RTLSDRParams 

Some reasonable default parameters

setRTLSDRParams Source #

Arguments

:: RTLSDR

Device handle

-> RTLSDRParams

Parameters

-> IO () 

Set the configuration parameters for a device

sdrStream Source #

Arguments

:: RTLSDRParams

Configuration parameters

-> Word32

Number of buffers

-> Word32

Buffer length

-> ExceptT String IO (Producer (Vector CUChar) IO ())

Either a string describing the error that occurred or the Producer

Returns a producer that streams data from a Realtek RTL2832U based device. You probably want to use interleavedIQUnsigned256ToFloat to turn it into a list of complex Floats. This function initializes and configures the device for you. Use sdrStreamFromDevice if you need more control over how the device is configured or want to configure it yourself.

sdrStreamFromDevice Source #

Arguments

:: RTLSDR

Device handle

-> Word32

Number of buffers

-> Word32

Buffer length

-> IO (Producer (Vector CUChar) IO ())

The producer

Returns a producer that streams data from a Realtek RTL2832U based device. You probably want to use interleavedIQUnsigned256ToFloat to turn it into a list of complex Floats. This function takes a pre-configured device handle to stream from.