set_gain_mode()#

SDRDriverBase.set_gain_mode(
automatic: bool,
*,
direction: Direction = Direction.RX,
channel: str = '0',
) → None[source]#

Hand gain to the radio’s automatic gain control, or take manual control.

Parameters:
  • automatic (bool) – True for AGC, False for manual gain.

  • 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 a gain mode.