mirror of
https://github.com/portapack-mayhem/mayhem-firmware.git
synced 2025-12-02 20:31:46 +00:00
Single function to configure/enable radio.
This commit is contained in:
@@ -131,14 +131,14 @@ ERTAppView::ERTAppView(NavigationView&) {
|
||||
}
|
||||
);
|
||||
|
||||
radio::set_tuning_frequency(initial_target_frequency);
|
||||
radio::set_rf_amp(false);
|
||||
radio::set_lna_gain(32);
|
||||
radio::set_vga_gain(32);
|
||||
radio::set_baseband_rate(sampling_rate);
|
||||
radio::set_baseband_decimation_by(1);
|
||||
radio::set_baseband_filter_bandwidth(baseband_bandwidth);
|
||||
radio::set_direction(rf::Direction::Receive);
|
||||
radio::enable({
|
||||
initial_target_frequency,
|
||||
sampling_rate,
|
||||
baseband_bandwidth,
|
||||
rf::Direction::Receive,
|
||||
false, 32, 32,
|
||||
1,
|
||||
});
|
||||
|
||||
BasebandConfigurationMessage message { {
|
||||
.mode = 6,
|
||||
|
||||
Reference in New Issue
Block a user