Portability | portable |
---|---|
Stability | provisional |
Maintainer | eocallaghan@alterapraxis.com |
Safe Haskell | None |
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
:: DeviceHandle | Device handle |
-> Int | Desired gain |
-> IO () |
Set the PA gain in dB.
set,get TxVGA1
:: DeviceHandle | Device handle |
-> BladeRFVGAGainBounds | Desired gain |
-> IO () |
Set the post-LPF gain in dB.
:: DeviceHandle | Device handle |
-> IO Int | Returned gain |
Get the post-LPF gain in dB.
set,get RxVGA2
:: DeviceHandle | Device handle |
-> BladeRFVGAGainBounds | Desired gain |
-> IO () |
Set the post-LPF VGA gain.
:: DeviceHandle | Device handle |
-> IO Int | Returned set gain level |
Get the post-LPF VGA gain.
set,get RxVGA1
:: DeviceHandle | Device handle |
-> BladeRFVGAGainBounds | Desired gain |
-> IO () |
Set the pre-LPF VGA gain
:: DeviceHandle | Device handle |
-> IO Int | Returned set gain level |
Get the pre-LPF VGA gain
set,gain LNA Gain
:: DeviceHandle | Device handle |
-> BladeRFLNAGain | Desired gain level |
-> IO () |
Set LNA Gain
:: DeviceHandle | Device handle |
-> IO BladeRFLNAGain | Returned set gain level |
Get LNA Gain
Optimal gain control
:: 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