0
1
mirror of https://github.com/radio95-rnt/rds95.git synced 2026-02-27 12:53:53 +01:00

remove mode 2

This commit is contained in:
2025-03-17 21:13:52 +01:00
parent 0096de34c5
commit 139cfb312a
2 changed files with 13 additions and 47 deletions

View File

@@ -274,23 +274,6 @@ static void get_rds_ps_group(RDSEncoder* enc, uint16_t *blocks) {
memcpy(enc->state[enc->program].ps_text, &(enc->state[enc->program].dps1_text[enc->state[enc->program].dynamic_ps_position]), PS_LENGTH); memcpy(enc->state[enc->program].ps_text, &(enc->state[enc->program].dps1_text[enc->state[enc->program].dynamic_ps_position]), PS_LENGTH);
enc->state[enc->program].dynamic_ps_position++; enc->state[enc->program].dynamic_ps_position++;
break; break;
case 2:
memcpy(enc->state[enc->program].ps_text, &(enc->state[enc->program].dps1_text[enc->state[enc->program].dynamic_ps_position]), PS_LENGTH);
uint8_t next_position = 0;
if (enc->state[enc->program].dynamic_ps_position + PS_LENGTH < enc->data[enc->program].dps1_len) {
next_position = enc->state[enc->program].dynamic_ps_position + PS_LENGTH;
for (int i = 0; i < PS_LENGTH; i++) {
if (enc->state[enc->program].dynamic_ps_position + i < enc->data[enc->program].dps1_len &&
enc->state[enc->program].dps1_text[enc->state[enc->program].dynamic_ps_position + i] == ' ') {
next_position = enc->state[enc->program].dynamic_ps_position + i + 1;
break;
}
}
} else {
next_position = 0;
}
enc->state[enc->program].dynamic_ps_position = next_position;
break;
} }
enc->state[enc->program].dynamic_ps_scroll_counter = 0; enc->state[enc->program].dynamic_ps_scroll_counter = 0;
} else { } else {
@@ -334,23 +317,6 @@ static void get_rds_ps_group(RDSEncoder* enc, uint16_t *blocks) {
memcpy(enc->state[enc->program].ps_text, &(enc->state[enc->program].dps1_nexttext[enc->state[enc->program].dynamic_ps_position]), PS_LENGTH); memcpy(enc->state[enc->program].ps_text, &(enc->state[enc->program].dps1_nexttext[enc->state[enc->program].dynamic_ps_position]), PS_LENGTH);
enc->state[enc->program].dynamic_ps_position++; enc->state[enc->program].dynamic_ps_position++;
break; break;
case 2:
memcpy(enc->state[enc->program].ps_text, &(enc->state[enc->program].dps1_nexttext[enc->state[enc->program].dynamic_ps_position]), PS_LENGTH);
uint8_t next_position = 0;
if (enc->state[enc->program].dynamic_ps_position + PS_LENGTH < enc->data[enc->program].dps1_len) {
next_position = enc->state[enc->program].dynamic_ps_position + PS_LENGTH;
for (int i = 0; i < PS_LENGTH; i++) {
if (enc->state[enc->program].dynamic_ps_position + i < enc->data[enc->program].dps1_len &&
enc->state[enc->program].dps1_nexttext[enc->state[enc->program].dynamic_ps_position + i] == ' ') {
next_position = enc->state[enc->program].dynamic_ps_position + i + 1;
break;
}
}
} else {
next_position = 0;
}
enc->state[enc->program].dynamic_ps_position = next_position;
break;
} }
enc->state[enc->program].dynamic_ps_scroll_counter = 0; enc->state[enc->program].dynamic_ps_scroll_counter = 0;
} else { } else {

View File

@@ -1,18 +1,18 @@
AF AF
AFCH AFCH
DI DI
- DPS1 DPS1
- DPS1EN DPS1EN
- DPS2EN - DPS2EN
- DPS1ENQ DPS1ENQ
- DPS2 - DPS2
- DPS1MOD DPS1MOD (partial)
- DPS2MOD - DPS2MOD
- DPS1REP - DPS1REP
- DPS2REP - DPS2REP
- DTTMOUT - DTTMOUT
- EQTEXT1 - EQTEXT1
- LABPER LABPER
MS MS
PI PI
PS PS
@@ -26,8 +26,8 @@ RT1EN
- RTPER - RTPER
- RTTYPE - RTTYPE
- RSTDPS - RSTDPS
- SCRLSPD SCRLSPD
- SPSPER SPSPER
TA TA
- TATMOUT - TATMOUT
TP TP
@@ -121,16 +121,16 @@ Magic RDS 4 Pages for PIRA32:
- RT1 Enabled - RT1 Enabled
- RT2 Enabled (TODO:) - RT2 Enabled (TODO:)
- Radiotext Type Bit (TODO: RTTYPE) - Radiotext Type Bit (TODO: RTTYPE)
- Dynamic PS (TODO:): - Dynamic PS:
- DPS1 Text - DPS1 Text
- DPS1 Setup: - DPS1 Setup:
- DPS1 Enabled (Default: 0) - DPS1 Enabled (Default: 0)
- DPS1 Mode (Default: 1) - DPS1 Mode (Default: 1) (TODO: 2 and 3)
- DPS1 Number of repeats (Default: 0, options: CLEAR) - DPS1 Number of repeats (Default: 0, options: CLEAR) (TODO:)
- DPS2: - DPS2 (TODO:):
- DPS2 Text - DPS2 Text
- DPS2 Source (Default: 0, manual) - DPS2 Source (Default: 0, manual)
- DPS Setup: - DPS Setup (TODO:):
- DPS2 Enabled (Default: 0) - DPS2 Enabled (Default: 0)
- DPS2 Mode (Default: 2) - DPS2 Mode (Default: 2)
- DPS2 Number of repeats (Default: 0) - DPS2 Number of repeats (Default: 0)
@@ -138,7 +138,7 @@ Magic RDS 4 Pages for PIRA32:
- Static PS period (Default: 16) - Static PS period (Default: 16)
- DPS String Period (LABPER, Default: 0) - DPS String Period (LABPER, Default: 0)
- Scrolling Speed (modes 0-3 Default: low) - Scrolling Speed (modes 0-3 Default: low)
- Restart DPS on change (options: Only if it's running, Always | first is Default) - Restart DPS on change (options: Only if it's running, Always | first is Default) (TODO:)
- Alternative Frequency: - Alternative Frequency:
- AF Method (TODO: AF=A, AF=B) - AF Method (TODO: AF=A, AF=B)
; A: ; A: