-
-
Notifications
You must be signed in to change notification settings - Fork 757
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactored frequency table to common place, fixed lowband frequencies
- Loading branch information
Showing
6 changed files
with
53 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
#include "freqTable.h" | ||
|
||
uint8_t getFreqTableChannels(void) | ||
{ | ||
return CHANNEL_COUNT; | ||
} | ||
|
||
uint8_t getFreqTableBands(void) | ||
{ | ||
return FREQ_TABLE_SIZE / getFreqTableChannels(); | ||
} | ||
|
||
uint16_t getFreqByIdx(uint8_t idx) | ||
{ | ||
return channelFreqTable[idx]; | ||
} | ||
|
||
uint8_t channelFreqLabelByIdx(uint8_t idx) | ||
{ | ||
return channelFreqLabel[idx]; | ||
} | ||
|
||
uint8_t getBandLetterByIdx(uint8_t idx) | ||
{ | ||
return bandLetter[idx]; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters