set_gain()#

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

Set the overall gain.

Override where the radio exposes a single gain figure.

Parameters:
  • gain_db (float) – Gain in dB.

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

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

Raises:

NotImplementedError – If the driver does not support gain control.