mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-08-13 17:05:37 -04: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:
parent
7aca7ce74d
commit
033c4e9a5b
599 changed files with 70746 additions and 66896 deletions
|
@ -32,44 +32,44 @@ using Frequency = int64_t;
|
|||
using FrequencyRange = range_t<Frequency>;
|
||||
|
||||
enum class Direction {
|
||||
/* Zero-based, used as index into table */
|
||||
Receive = 0,
|
||||
Transmit = 1,
|
||||
/* Zero-based, used as index into table */
|
||||
Receive = 0,
|
||||
Transmit = 1,
|
||||
};
|
||||
|
||||
namespace path {
|
||||
|
||||
constexpr FrequencyRange band_low { 0, 2170000000 };
|
||||
constexpr FrequencyRange band_high { 2740000000, 7250000000 };
|
||||
constexpr FrequencyRange band_mid { band_low.maximum, band_high.minimum };
|
||||
constexpr FrequencyRange band_low{0, 2170000000};
|
||||
constexpr FrequencyRange band_high{2740000000, 7250000000};
|
||||
constexpr FrequencyRange band_mid{band_low.maximum, band_high.minimum};
|
||||
|
||||
enum class Band {
|
||||
/* Zero-based, used as index into frequency_bands table */
|
||||
Low = 0,
|
||||
Mid = 1,
|
||||
High = 2,
|
||||
/* Zero-based, used as index into frequency_bands table */
|
||||
Low = 0,
|
||||
Mid = 1,
|
||||
High = 2,
|
||||
};
|
||||
|
||||
class Path {
|
||||
public:
|
||||
void init();
|
||||
public:
|
||||
void init();
|
||||
|
||||
void set_direction(const Direction direction);
|
||||
void set_band(const Band band);
|
||||
void set_rf_amp(const bool rf_amp);
|
||||
void set_direction(const Direction direction);
|
||||
void set_band(const Band band);
|
||||
void set_rf_amp(const bool rf_amp);
|
||||
|
||||
private:
|
||||
Direction direction { Direction::Receive };
|
||||
Band band { Band::Mid };
|
||||
bool rf_amp { false };
|
||||
private:
|
||||
Direction direction{Direction::Receive};
|
||||
Band band{Band::Mid};
|
||||
bool rf_amp{false};
|
||||
|
||||
void update();
|
||||
void update();
|
||||
};
|
||||
|
||||
} /* path */
|
||||
} // namespace path
|
||||
|
||||
constexpr FrequencyRange tuning_range { path::band_low.minimum, path::band_high.maximum };
|
||||
constexpr FrequencyRange tuning_range{path::band_low.minimum, path::band_high.maximum};
|
||||
|
||||
} /* rf */
|
||||
} // namespace rf
|
||||
|
||||
#endif/*__RF_PATH_H__*/
|
||||
#endif /*__RF_PATH_H__*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue