From 1e39b7ea45cee7c28b23883f5c1afcef6e7e46df Mon Sep 17 00:00:00 2001 From: Jared Boone Date: Wed, 3 Aug 2016 16:12:22 -0700 Subject: [PATCH] Expose TX gain in radio API. --- firmware/application/radio.cpp | 4 ++++ firmware/application/radio.hpp | 1 + 2 files changed, 5 insertions(+) diff --git a/firmware/application/radio.cpp b/firmware/application/radio.cpp index 88ef4a21..b61ce022 100644 --- a/firmware/application/radio.cpp +++ b/firmware/application/radio.cpp @@ -146,6 +146,10 @@ void set_vga_gain(const int_fast8_t db) { second_if.set_vga_gain(db); } +void set_tx_gain(const int_fast8_t db) { + second_if.set_tx_vga_gain(db); +} + void set_baseband_filter_bandwidth(const uint32_t bandwidth_minimum) { second_if.set_lpf_rf_bandwidth(bandwidth_minimum); } diff --git a/firmware/application/radio.hpp b/firmware/application/radio.hpp index 4c1faa78..6d22acf3 100644 --- a/firmware/application/radio.hpp +++ b/firmware/application/radio.hpp @@ -47,6 +47,7 @@ bool set_tuning_frequency(const rf::Frequency frequency); void set_rf_amp(const bool rf_amp); void set_lna_gain(const int_fast8_t db); void set_vga_gain(const int_fast8_t db); +void set_tx_gain(const int_fast8_t db); void set_baseband_filter_bandwidth(const uint32_t bandwidth_minimum); void set_baseband_rate(const uint32_t rate); void set_baseband_decimation_by(const size_t n);