| Portability | portable |
|---|---|
| Stability | provisional |
| Maintainer | eocallaghan@alterapraxis.com |
| Safe Haskell | None |
LibBladeRF.Sampling
Description
This module encapsulates sampling rate libbladeRF library functions.
- bladeRFSetSampleRate :: DeviceHandle -> BladeRFModule -> Int -> IO Int
- bladeRFSetRationalSampleRate :: DeviceHandle -> BladeRFModule -> BladeRFRationalRate -> IO BladeRFRationalRate
- bladeRFSetBandwidth :: DeviceHandle -> BladeRFModule -> Int -> IO Int
Documentation
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.
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.