# LimeSuiteNG : Setting RX gain with non legacy code

**URL:** https://discourse.myriadrf.org/t/limesuiteng-setting-rx-gain-with-non-legacy-code/13274
**Category:** Lime Suite
**Created:** [12 July 2026 18:51 UTC](https://discourse.myriadrf.org/t/limesuiteng-setting-rx-gain-with-non-legacy-code/13274 "2026-07-12T18:51:24Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![zvivered](https://avatars.discourse-cdn.com/v4/letter/z/58f4c7/32.png) [@zvivered](https://discourse.myriadrf.org/u/zvivered)
#### Post date: [12 July 2026 18:51 UTC](https://discourse.myriadrf.org/t/limesuiteng-setting-rx-gain-with-non-legacy-code/13274/1 "2026-07-12T18:51:24Z")

</div>

Hello,

Following is my configuration:

```auto
// RF parameters
config.channel[0].rx.enabled = true;
config.channel[0].rx.gain[eGainTypes::GENERIC] = Gain;
config.channel[0].rx.centerFrequency = CenterFreq;
config.channel[0].rx.sampleRate = SampleFreq;
config.channel[0].rx.oversample = OverSample;
config.channel[0].rx.lpf = BandWidth; 
config.channel[0].rx.path = Antenna;
config.channel[0].rx.calibrate = Calibrate; 
config.channel[0].rx.testSignal.enabled = true;

```

Regarding gain - What gain type should I use ?  
Is there more that one gain type that I should set ?

Thank you,

Zvi

---

<div class="post-metadata">

### Author: ![Arnius](https://avatars.discourse-cdn.com/v4/letter/a/eada6e/32.png) [@Arnius](https://discourse.myriadrf.org/u/Arnius)
#### Post date: [13 July 2026 07:39 UTC](https://discourse.myriadrf.org/t/limesuiteng-setting-rx-gain-with-non-legacy-code/13274/2 "2026-07-13T07:39:16Z")

</div>

Hi,

Generic gain should be enough.

More about setting different gain types - [Common control and configuration options — Lime Suite NG latest documentation](https://myriadrf.org/projects/limesuiteng/developer/limesuiteng_api/related_pages/library_guide_book/device_config/common_config_options.html#generic_config_1dev_gain)
