hlibBladeRF-0.1.0.3: Haskell binding to libBladeRF SDR library

Portabilityportable
Stabilityprovisional
Maintainereocallaghan@alterapraxis.com
Safe HaskellNone

LibBladeRF.Gain

Contents

Description

This module deals with Gain control.

Synopsis

set,get TxVGA2

bladeRFSetTXVGA2

Arguments

:: DeviceHandle

Device handle

-> Int

Desired gain

-> IO () 

Set the PA gain in dB.

bladeRFGetTXVGA2

Arguments

:: DeviceHandle

Device handle

-> IO Int

Returned gain

Get the PA gain in dB.

set,get TxVGA1

bladeRFSetTXVGA1

Arguments

:: DeviceHandle

Device handle

-> BladeRFVGAGainBounds

Desired gain

-> IO () 

Set the post-LPF gain in dB.

bladeRFGetTXVGA1

Arguments

:: DeviceHandle

Device handle

-> IO Int

Returned gain

Get the post-LPF gain in dB.

set,get RxVGA2

bladeRFSetRXVGA2

Arguments

:: DeviceHandle

Device handle

-> BladeRFVGAGainBounds

Desired gain

-> IO () 

Set the post-LPF VGA gain.

bladeRFGetRXVGA2

Arguments

:: DeviceHandle

Device handle

-> IO Int

Returned set gain level

Get the post-LPF VGA gain.

set,get RxVGA1

bladeRFSetRXVGA1

Arguments

:: DeviceHandle

Device handle

-> BladeRFVGAGainBounds

Desired gain

-> IO () 

Set the pre-LPF VGA gain.

bladeRFGetRXVGA1

Arguments

:: DeviceHandle

Device handle

-> IO Int

Returned set gain level

Get the pre-LPF VGA gain.

set,gain LNA Gain

bladeRFSetLNAGain

Arguments

:: DeviceHandle

Device handle

-> BladeRFLNAGain

Desired gain level

-> IO () 

Set LNA Gain.

bladeRFGetLNAGain

Arguments

:: DeviceHandle

Device handle

-> IO BladeRFLNAGain

Returned set gain level

Get LNA Gain.

Optimal gain control

bladeRFSetGain

Arguments

:: DeviceHandle

Device handle

-> BladeRFModule

Module

-> Int

Desired gain

-> IO () 

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