get_gain_range()#

SDRDriverBase.get_gain_range(
*,
direction: Direction = Direction.RX,
channel: str = '0',
) → tuple[float, float][source]#

Return the lowest and highest settable gain.

Parameters:
  • direction (Direction) – Signal path, Direction.RX or Direction.TX.

  • channel (str) – Channel on that path, e.g. "0".

Returns:

tuple[float, float] – (low, high) in dB.

Raises:

NotImplementedError – If the driver does not support reporting a gain range.