mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-01-12 07:49:32 -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) {
|
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 first_lo_frequency = target_frequency + low_band_second_lo_frequency(target_frequency);
|
||||||
const rf::Frequency second_lo_frequency = first_lo_frequency - target_frequency;
|
const rf::Frequency second_lo_frequency = first_lo_frequency - target_frequency;
|
||||||
return {
|
const bool baseband_q_invert = true;
|
||||||
.first_lo_frequency = first_lo_frequency,
|
return { first_lo_frequency, second_lo_frequency, rf::path::Band::Low, baseband_q_invert };
|
||||||
.second_lo_frequency = second_lo_frequency,
|
|
||||||
.rf_path_band = rf::path::Band::Low,
|
|
||||||
.baseband_q_invert = true,
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Config mid_band(const rf::Frequency target_frequency) {
|
Config mid_band(const rf::Frequency target_frequency) {
|
||||||
return {
|
return { 0, target_frequency, rf::path::Band::Mid, false };
|
||||||
.first_lo_frequency = 0,
|
|
||||||
.second_lo_frequency = target_frequency,
|
|
||||||
.rf_path_band = rf::path::Band::Mid,
|
|
||||||
.baseband_q_invert = false,
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Config high_band(const rf::Frequency target_frequency) {
|
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 first_lo_frequency = target_frequency - high_band_second_lo_frequency(target_frequency);
|
||||||
const rf::Frequency second_lo_frequency = target_frequency - first_lo_frequency;
|
const rf::Frequency second_lo_frequency = target_frequency - first_lo_frequency;
|
||||||
return {
|
const bool baseband_q_invert = false;
|
||||||
.first_lo_frequency = first_lo_frequency,
|
return { first_lo_frequency, second_lo_frequency, rf::path::Band::High, baseband_q_invert };
|
||||||
.second_lo_frequency = second_lo_frequency,
|
|
||||||
.rf_path_band = rf::path::Band::High,
|
|
||||||
.baseband_q_invert = false,
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|
||||||
} /* namespace */
|
} /* namespace */
|
||||||
|
Loading…
Reference in New Issue
Block a user