hlibBladeRF-0.1.0.1: Haskell binding to libBladeRF SDR library

Portabilityportable
Stabilityprovisional
Maintainereocallaghan@alterapraxis.com
Safe HaskellNone

LibBladeRF.Sampling

Description

This module encapsulates sampling rate libbladeRF library functions.

Synopsis

Documentation

bladeRFSetSampleRateSource

Arguments

:: DeviceHandle

Device handle

-> BladeRFModule

Module to change

-> Int

Sample rate

-> IO Int

Actual sample rate achieved.

Configure the device's sample rate, in Hz.

Note this requires the sample rate is an integer value of Hz. Use bladeRFSetRationalSampleRate for more arbitrary values.

bladeRFSetRationalSampleRateSource

Arguments

:: DeviceHandle

Device handle

-> BladeRFModule

Module to change

-> BladeRFRationalRate

Rational sample rate

-> IO BladeRFRationalRate

Actual rational sample rate achieved.

Configure the device's sample rate as a rational fraction of Hz.

Sample rates are in the form of integer + num/denom.

bladeRFSetBandwidthSource

Arguments

:: DeviceHandle

Device handle

-> BladeRFModule

Module for bandwidth request

-> Int

Desired bandwidth

-> IO Int

Actual bandwidth that the device was able to achieve.

Set the bandwidth of the LMS LPF to specified value in Hz.