BRN-POCSAG: 171 channels, 26 x 40 char messages, make toggles
EEPROM layout (settings.h), replacing the broken 24 byte layout from
85fb527 (200 x 24 B channels overran the VFOs, attributes and settings;
names were saved at ch*24 but read at ch*20):
- 32 byte channel records with the 10 char name and the 16 bit scrambler
inside, 171 channels in two areas (0x0000, 0x11E0); VFOs at 0x1020 with
the same record; attributes moved to 0x0F50.
- Message store from 0x1900: 26 messages of 40 characters.
- Reset VFO no longer wipes the memory channels and messages.
- Static asserts that no area overlaps another or the calibration.
Identity: reports "BRN-POCSAG v4.0" to CHIRP and in the packed image, so
stock / egzumer / F4HWN drivers do not accept the new layout; the name is
shown on the welcome screen.
Make toggles: ENABLE_POCSAG, ENABLE_POCSAG_DEBUG, ENABLE_POCSAG_DEV_TUNING,
ENABLE_OOK_SENDER (POCSAG code and the OOK sender compile out completely).
Fonts: removed the unused big font, big digits and small digits; the 3x5
font is only built with the spectrum.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
No files matched your search
@@ -238,9 +238,9 @@ void RADIO_ConfigureChannel(const unsigned int VFO, const unsigned int configure
|
||||
|
||||
uint16_t base;
|
||||
if (IS_MR_CHANNEL(channel))
|
||||
base = channel * 24;
|
||||
base = EEPROM_CH_ADDR(channel);
|
||||
else
|
||||
base = 0x0C80 + ((channel - FREQ_CHANNEL_FIRST) * 32) + (VFO * 24);
|
||||
base = EEPROM_VFO_ADDR(channel - FREQ_CHANNEL_FIRST, VFO);
|
||||
|
||||
if (configure == VFO_CONFIGURE_RELOAD || IS_FREQ_CHANNEL(channel)) {
|
||||
uint8_t tmp;
|
||||
@@ -332,11 +332,11 @@ void RADIO_ConfigureChannel(const unsigned int VFO, const unsigned int configure
|
||||
|
||||
// ***************
|
||||
|
||||
EEPROM_ReadBuffer(base + 16, data, sizeof(data));
|
||||
EEPROM_ReadBuffer(base + 24, data, sizeof(data)); // name[8..9], scrambler
|
||||
|
||||
uint16_t * data16 = (uint16_t *)data;
|
||||
|
||||
pVfo->SCRAMBLING_TYPE = data16[0];
|
||||
pVfo->SCRAMBLING_TYPE = data16[1];
|
||||
|
||||
struct {
|
||||
uint32_t Frequency;
|
||||
|
||||
Reference in New Issue
Block a user