mirror of
https://github.com/portapack-mayhem/mayhem-firmware.git
synced 2025-08-13 21:29:56 +00:00
Formatted code (#1007)
* Updated style * Updated files * fixed new line * Updated spacing * File fix WIP * Updated to clang 13 * updated comment style * Removed old comment code
This commit is contained in:
@@ -28,35 +28,33 @@ namespace tuning {
|
||||
namespace config {
|
||||
|
||||
struct Config {
|
||||
/* Empty config to denote an error, in lieu of throwing an exception. */
|
||||
constexpr Config(
|
||||
) : first_lo_frequency(0),
|
||||
second_lo_frequency(0),
|
||||
rf_path_band(rf::path::Band::Mid),
|
||||
mixer_invert(false)
|
||||
{
|
||||
}
|
||||
/* Empty config to denote an error, in lieu of throwing an exception. */
|
||||
constexpr Config()
|
||||
: first_lo_frequency(0),
|
||||
second_lo_frequency(0),
|
||||
rf_path_band(rf::path::Band::Mid),
|
||||
mixer_invert(false) {
|
||||
}
|
||||
|
||||
constexpr Config(
|
||||
rf::Frequency first_lo_frequency,
|
||||
rf::Frequency second_lo_frequency,
|
||||
rf::path::Band rf_path_band,
|
||||
bool mixer_invert
|
||||
) : first_lo_frequency(first_lo_frequency),
|
||||
second_lo_frequency(second_lo_frequency),
|
||||
rf_path_band(rf_path_band),
|
||||
mixer_invert(mixer_invert)
|
||||
{
|
||||
}
|
||||
constexpr Config(
|
||||
rf::Frequency first_lo_frequency,
|
||||
rf::Frequency second_lo_frequency,
|
||||
rf::path::Band rf_path_band,
|
||||
bool mixer_invert)
|
||||
: first_lo_frequency(first_lo_frequency),
|
||||
second_lo_frequency(second_lo_frequency),
|
||||
rf_path_band(rf_path_band),
|
||||
mixer_invert(mixer_invert) {
|
||||
}
|
||||
|
||||
bool is_valid() const {
|
||||
return (second_lo_frequency != 0);
|
||||
}
|
||||
bool is_valid() const {
|
||||
return (second_lo_frequency != 0);
|
||||
}
|
||||
|
||||
const rf::Frequency first_lo_frequency;
|
||||
const rf::Frequency second_lo_frequency;
|
||||
const rf::path::Band rf_path_band;
|
||||
const bool mixer_invert;
|
||||
const rf::Frequency first_lo_frequency;
|
||||
const rf::Frequency second_lo_frequency;
|
||||
const rf::path::Band rf_path_band;
|
||||
const bool mixer_invert;
|
||||
};
|
||||
|
||||
Config create(const rf::Frequency target_frequency);
|
||||
@@ -64,4 +62,4 @@ Config create(const rf::Frequency target_frequency);
|
||||
} /* namespace config */
|
||||
} /* namespace tuning */
|
||||
|
||||
#endif/*__TUNING_H__*/
|
||||
#endif /*__TUNING_H__*/
|
||||
|
Reference in New Issue
Block a user