|
libSDRForge
|
Optional CRC-guided erasure recovery for a single 26-bit RDS block. More...
Classes | |
| class | RdsRecoveredBlock |
| Provide rds recovered block behavior. More... | |
Functions | |
| RdsRecoveredBlock|None | recover_block (Sequence[int] bits, Sequence[bool] valid, Sequence[str] expected_offsets, *, int max_erasures=0) |
| Decode a block only if exactly one CRC-valid assignment exists. | |
Optional CRC-guided erasure recovery for a single 26-bit RDS block.
This module does not change strict synchronization or enable correction by default. A recovered block is experimental and must retain its provenance.
| RdsRecoveredBlock | None sdrforge.protocols.rds.rds_erasure_recovery.recover_block | ( | Sequence[int] | bits, |
| Sequence[bool] | valid, | ||
| Sequence[str] | expected_offsets, | ||
| * | , | ||
| int | max_erasures = 0 ) |
Decode a block only if exactly one CRC-valid assignment exists.
The default max_erasures=0 preserves strict CRC-only behavior. Positions are MSB-first, 0..25. Invalid bits are unknown, not flips. Only 0, 1 or 2 erasures are supported to bound false positives.
| bits | The bits value. |
| valid | The valid value. |
| expected_offsets | The expected_offsets value. |
| max_erasures | The max_erasures value. |