hlibBladeRF-0.1.0.6: 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

bladeRFLogSetVerbositySource

Arguments

:: BladeRFLogLevel

The new log level filter value

-> IO () 

Sets the filter level for displayed log messages.

Messages that are at or above the specified log level will be printed, while messages with a lower log level will be suppressed.

bladeRFLibVersion :: IO BladeRFVersionSource

Get libbladeRF version information.

bladeRFFwVersionSource

Arguments

:: DeviceHandle

Device handle

-> IO BladeRFVersion

Returned firmware version

Query firmware version.

bladeRFFPGAVersionSource

Arguments

:: DeviceHandle

Device handle

-> IO BladeRFVersion

Returned firmware version

Query FPGA version.

bladeRFDeviceSpeedSource

Arguments

:: DeviceHandle

Device handle

-> IO BladeRFSpeed

Device speed

Obtain the bus speed at which the device is operating.

bladeRFLoadFPGASource

Arguments

:: DeviceHandle

Device handle

-> String

Full path to FPGA bitstream

-> IO (BladeRFReturnType ()) 

Load device's FPGA.

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

bladeRFGetDevInfoSource

Arguments

:: DeviceHandle

Device handle

-> IO BladeRFDeviceInfo

Device information populated by this function

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

bladeRFGetSerialSource

Arguments

:: DeviceHandle

Device handle

-> IO String

Returned serial number.

Query a device's serial number.

bladeRFGetFPGASizeSource

Arguments

:: DeviceHandle

Device handle

-> IO BladeRFFPGASize

Returned on-board FPGA's size.

Query a device's FPGA size.

bladeRFEnableModuleSource

Arguments

:: DeviceHandle

Device handle

-> BladeRFModule

Device module

-> Bool

True to enable, False to disable

-> IO (BladeRFReturnType ()) 

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.

bladeRFSetLoopbackSource

Arguments

:: DeviceHandle

Device handle

-> BladeRFLoopback

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

-> IO (BladeRFReturnType ()) 

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.

bladeRFGetLoopbackSource

Arguments

:: DeviceHandle

Device handle

-> IO BladeRFLoopback

Current loopback mode

Get current loopback mode.