Safe Haskell | None |
---|---|
Language | Haskell2010 |
Stream samples from a Realtek RTL2832U based device
Synopsis
- data RTLSDRParams = RTLSDRParams {}
- defaultRTLSDRParams :: Word32 -> Word32 -> RTLSDRParams
- setRTLSDRParams :: RTLSDR -> RTLSDRParams -> IO ()
- sdrStream :: RTLSDRParams -> Word32 -> Word32 -> ExceptT String IO (Producer (Vector CUChar) IO ())
- sdrStreamFromDevice :: RTLSDR -> Word32 -> Word32 -> IO (Producer (Vector CUChar) IO ())
Documentation
data RTLSDRParams Source #
RTLSDR configuration parameters
RTLSDRParams | |
|
:: Word32 | Frequency |
-> Word32 | Sample rate |
-> RTLSDRParams |
Some reasonable default parameters
:: RTLSDR | Device handle |
-> RTLSDRParams | Parameters |
-> IO () |
Set the configuration parameters for a device
:: 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.
:: 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.