| Portability | portable |
|---|---|
| Stability | provisional |
| Maintainer | eocallaghan@alterapraxis.com |
| Safe Haskell | None |
LibBladeRF.Gain
Contents
Description
This module deals with Gain control.
- bladeRFSetTXVGA2 :: DeviceHandle -> Int -> IO (BladeRFReturnType ())
- bladeRFGetTXVGA2 :: DeviceHandle -> IO Int
- bladeRFSetTXVGA1 :: DeviceHandle -> BladeRFVGAGainBounds -> IO (BladeRFReturnType ())
- bladeRFGetTXVGA1 :: DeviceHandle -> IO Int
- bladeRFSetRXVGA2 :: DeviceHandle -> BladeRFVGAGainBounds -> IO (BladeRFReturnType ())
- bladeRFGetRXVGA2 :: DeviceHandle -> IO Int
- bladeRFSetRXVGA1 :: DeviceHandle -> BladeRFVGAGainBounds -> IO (BladeRFReturnType ())
- bladeRFGetRXVGA1 :: DeviceHandle -> IO Int
- bladeRFSetLNAGain :: DeviceHandle -> BladeRFLNAGain -> IO (BladeRFReturnType ())
- bladeRFGetLNAGain :: DeviceHandle -> IO BladeRFLNAGain
- bladeRFSetGain :: DeviceHandle -> BladeRFModule -> Int -> IO (BladeRFReturnType ())
set,get TxVGA2
Arguments
| :: DeviceHandle | Device handle |
| -> Int | Desired gain |
| -> IO (BladeRFReturnType ()) |
Set the PA gain in dB.
Arguments
| :: DeviceHandle | Device handle |
| -> IO Int | Returned gain |
Get the PA gain in dB.
set,get TxVGA1
Arguments
| :: DeviceHandle | Device handle |
| -> BladeRFVGAGainBounds | Desired gain |
| -> IO (BladeRFReturnType ()) |
Set the post-LPF gain in dB.
Arguments
| :: DeviceHandle | Device handle |
| -> IO Int | Returned gain |
Get the post-LPF gain in dB.
set,get RxVGA2
Arguments
| :: DeviceHandle | Device handle |
| -> BladeRFVGAGainBounds | Desired gain |
| -> IO (BladeRFReturnType ()) |
Set the post-LPF VGA gain.
Arguments
| :: DeviceHandle | Device handle |
| -> IO Int | Returned set gain level |
Get the post-LPF VGA gain.
set,get RxVGA1
Arguments
| :: DeviceHandle | Device handle |
| -> BladeRFVGAGainBounds | Desired gain |
| -> IO (BladeRFReturnType ()) |
Set the pre-LPF VGA gain.
Arguments
| :: DeviceHandle | Device handle |
| -> IO Int | Returned set gain level |
Get the pre-LPF VGA gain.
set,gain LNA Gain
Arguments
| :: DeviceHandle | Device handle |
| -> BladeRFLNAGain | Desired gain level |
| -> IO (BladeRFReturnType ()) |
Set LNA Gain.
Arguments
| :: DeviceHandle | Device handle |
| -> IO BladeRFLNAGain | Returned set gain level |
Get LNA Gain.
Optimal gain control
Arguments
| :: DeviceHandle | Device handle |
| -> BladeRFModule | Module |
| -> Int | Desired gain |
| -> IO (BladeRFReturnType ()) |
Set a combined pre and post LPF RX gain.
This action computes the optimal LNA, RXVGA1, and RVGA2 gains for a requested amount of RX gain, and computes the optimal TXVGA1 and TXVGA2 gains for a requested amount of TX gain