| 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 ()
- bladeRFGetTXVGA2 :: DeviceHandle -> IO Int
- bladeRFSetTXVGA1 :: DeviceHandle -> BladeRFVGAGainBounds -> IO ()
- bladeRFGetTXVGA1 :: DeviceHandle -> IO Int
- bladeRFSetRXVGA2 :: DeviceHandle -> BladeRFVGAGainBounds -> IO ()
- bladeRFGetRXVGA2 :: DeviceHandle -> IO Int
- bladeRFSetRXVGA1 :: DeviceHandle -> BladeRFVGAGainBounds -> IO ()
- bladeRFGetRXVGA1 :: DeviceHandle -> IO Int
- bladeRFSetLNAGain :: DeviceHandle -> BladeRFLNAGain -> IO ()
- bladeRFGetLNAGain :: DeviceHandle -> IO BladeRFLNAGain
- bladeRFSetGain :: DeviceHandle -> BladeRFModule -> Int -> IO ()
set,get TxVGA2
Arguments
| :: DeviceHandle | Device handle |
| -> Int | Desired gain |
| -> IO () |
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 () |
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 () |
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 () |
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 () |
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 () |
Set a combined VGA TX gain This function computes the optimal TXVGA1 and TXVGA2 gains for a requested amount of gain XXX symb not found!!! bladeRFSetTXGain :: DeviceHandle -> Int -> IO () bladeRFSetTXGain dev g = do c'bladerf_set_tx_gain (unDeviceHandle dev) (fromIntegral g) return () -- ignores ret
Set a combined pre and post LPF RX gain This function 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