hlibBladeRF-0.1.0.3: Haskell binding to libBladeRF SDR library

Portabilityportable
Stabilityprovisional
Maintainereocallaghan@alterapraxis.com
Safe HaskellNone

LibBladeRF.Utils

Description

This module encapsulates misc libbladeRF library functions.

Synopsis

Documentation

bladeRFLibVersion :: IO BladeRFVersion

Get libbladeRF version information.

bladeRFFwVersion

Arguments

:: DeviceHandle

Device handle

-> IO BladeRFVersion

Returned firmware version

Query firmware version.

bladeRFFPGAVersion

Arguments

:: DeviceHandle

Device handle

-> IO BladeRFVersion

Returned firmware version

Query FPGA version.

bladeRFDeviceSpeed

Arguments

:: DeviceHandle

Device handle

-> IO BladeRFSpeed

Device speed

Obtain the bus speed at which the device is operating.

bladeRFLoadFPGA

Arguments

:: DeviceHandle

Device handle

-> String

Full path to FPGA bitstream

-> IO () 

Load device's FPGA.

Note that this FPGA configuration will be reset at the next power cycle. Pass Full path to FPGA bitstream.

bladeRFGetDevInfo

Arguments

:: DeviceHandle

Device handle

-> IO BladeRFDeviceInfo

Device information populated by this function

Fill out a provided BladeRFDevInfo structure, given an open device handle.

bladeRFGetSerial

Arguments

:: DeviceHandle

Device handle

-> IO String

Returned serial number.

Query a device's serial number.

bladeRFGetFPGASize

Arguments

:: DeviceHandle

Device handle

-> IO BladeRFFPGASize

Returned on-board FPGA's size.

Query a device's FPGA size.

bladeRFEnableModule

Arguments

:: DeviceHandle

Device handle

-> BladeRFModule

Device module

-> Bool

True to enable, False to disable

-> IO () 

Enable or disable the specified RX/TX module.

When a synchronous stream is associated with the specified module, this will shut down the underlying asynchronous stream when enable = False.

bladeRFSetLoopback

Arguments

:: DeviceHandle

Device handle

-> BladeRFLoopback

Loopback mode. Note that LB_NONE disables the use of loopback functionality.

-> IO () 

Apply specified loopback mode.

Loopback modes should only be enabled or disabled while the RX and TX modules are both disabled (and therefore, when no samples are being actively streamed). Otherwise, unexpected behavior may occur.

bladeRFGetLoopback

Arguments

:: DeviceHandle

Device handle

-> IO BladeRFLoopback

Current loopback mode

Get current loopback mode.