More application of range_t methods.

This commit is contained in:
Jared Boone
2016-01-27 14:55:03 -08:00
parent 7519b83379
commit 87dc5a055b
4 changed files with 6 additions and 8 deletions

View File

@@ -62,8 +62,7 @@ constexpr std::array<rf::FrequencyRange, 4> band { {
namespace lna {
constexpr int8_t gain_db_min = 0;
constexpr int8_t gain_db_max = 40;
constexpr range_t<int8_t> gain_db_range { 0, 40 };
constexpr int8_t gain_db_step = 8;
constexpr std::array<rf::FrequencyRange, 2> band { {
@@ -77,8 +76,7 @@ constexpr std::array<rf::FrequencyRange, 2> band { {
namespace vga {
constexpr int8_t gain_db_min = 0;
constexpr int8_t gain_db_max = 62;
constexpr range_t<int8_t> gain_db_range { 0, 62 };
constexpr int8_t gain_db_step = 2;
} /* namespace vga */