get_gain()#

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

Return the overall gain.

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

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

Returns:

float – Gain in dB.

Raises:

NotImplementedError – If the driver does not support gain control.