mirror of
https://github.com/eried/portapack-mayhem.git
synced 2024-12-24 14:59:24 -05:00
Remove GCC-isms interfering with host-based testing.
This commit is contained in:
parent
10f6554a1b
commit
1caf6952d8
@ -49,32 +49,19 @@ constexpr rf::Frequency high_band_second_lo_frequency(const rf::Frequency target
|
||||
Config low_band(const rf::Frequency target_frequency) {
|
||||
const rf::Frequency first_lo_frequency = target_frequency + low_band_second_lo_frequency(target_frequency);
|
||||
const rf::Frequency second_lo_frequency = first_lo_frequency - target_frequency;
|
||||
return {
|
||||
.first_lo_frequency = first_lo_frequency,
|
||||
.second_lo_frequency = second_lo_frequency,
|
||||
.rf_path_band = rf::path::Band::Low,
|
||||
.baseband_q_invert = true,
|
||||
};
|
||||
const bool baseband_q_invert = true;
|
||||
return { first_lo_frequency, second_lo_frequency, rf::path::Band::Low, baseband_q_invert };
|
||||
}
|
||||
|
||||
Config mid_band(const rf::Frequency target_frequency) {
|
||||
return {
|
||||
.first_lo_frequency = 0,
|
||||
.second_lo_frequency = target_frequency,
|
||||
.rf_path_band = rf::path::Band::Mid,
|
||||
.baseband_q_invert = false,
|
||||
};
|
||||
return { 0, target_frequency, rf::path::Band::Mid, false };
|
||||
}
|
||||
|
||||
Config high_band(const rf::Frequency target_frequency) {
|
||||
const rf::Frequency first_lo_frequency = target_frequency - high_band_second_lo_frequency(target_frequency);
|
||||
const rf::Frequency second_lo_frequency = target_frequency - first_lo_frequency;
|
||||
return {
|
||||
.first_lo_frequency = first_lo_frequency,
|
||||
.second_lo_frequency = second_lo_frequency,
|
||||
.rf_path_band = rf::path::Band::High,
|
||||
.baseband_q_invert = false,
|
||||
};
|
||||
const bool baseband_q_invert = false;
|
||||
return { first_lo_frequency, second_lo_frequency, rf::path::Band::High, baseband_q_invert };
|
||||
}
|
||||
|
||||
} /* namespace */
|
||||
|
Loading…
Reference in New Issue
Block a user