LFSR (Linear Feedback State Register)
A LFSR register is a special technic to generate pseudo-random sequences, which has the advantage that, at the receiver, it is very easy and quick to synchronize in the same state as the transmitter, and that, even when decoding errors are present.
A direct application is the measure of bit error rate (ber): after synchronization of the LFSR register at the receiver, one has just to compare every decoded bit with the theoretical bit as predicted by the register.
- To generate a random sequence at the transmitter side, use the lfsr_init and lfsr_process functions.
- To decode and synchronize with a sequence at the receiver side, use the lfsr_rx_init and lfsr_rx_process functions.
A complete example can be found in the documentation of the