Portability | portable |
---|---|
Stability | provisional |
Maintainer | eocallaghan@alterapraxis.com |
Safe Haskell | None |
This module encapsulates misc libbladeRF library functions.
- bladeRFLibVersion :: IO BladeRFVersion
- bladeRFFwVersion :: DeviceHandle -> IO BladeRFVersion
- bladeRFFPGAVersion :: DeviceHandle -> IO BladeRFVersion
- bladeRFDeviceSpeed :: DeviceHandle -> IO BladeRFSpeed
- bladeRFLoadFPGA :: DeviceHandle -> String -> IO ()
- bladeRFGetDevInfo :: DeviceHandle -> IO BladeRFDeviceInfo
- bladeRFGetSerial :: DeviceHandle -> IO String
- bladeRFGetFPGASize :: DeviceHandle -> IO BladeRFFPGASize
- bladeRFEnableModule :: DeviceHandle -> BladeRFModule -> Bool -> IO ()
Documentation
bladeRFLibVersion :: IO BladeRFVersionSource
Get libbladeRF version information.
:: DeviceHandle | Device handle |
-> IO BladeRFVersion | Returned firmware version |
Query firmware version.
:: DeviceHandle | Device handle |
-> IO BladeRFVersion | Returned firmware version |
Query FPGA version.
:: DeviceHandle | Device handle |
-> IO BladeRFSpeed | Device speed |
Obtain the bus speed at which the device is operating
:: 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.
:: DeviceHandle | Device handle |
-> IO BladeRFDeviceInfo | Device information populated by this function |
Fill out a provided BladeRFDevInfo
structure, given an open device handle.
:: DeviceHandle | Device handle |
-> IO String | Returned serial number. |
Query a device's serial number.
:: DeviceHandle | Device handle |
-> IO BladeRFFPGASize | Returned on-board FPGA's size. |
Query a device's FPGA size.
:: DeviceHandle | Device handle |
-> BladeRFModule | Device module |
-> Bool | |
-> 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
.