From 93b7aa8f883e27c286bb1becc51783c58aa3b78b Mon Sep 17 00:00:00 2001 From: iceman1001 Date: Fri, 23 Sep 2016 21:29:34 +0200 Subject: [PATCH] ADD; added some more descriptions of what the legic prng imp does. --- common/legic_prng.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/common/legic_prng.c b/common/legic_prng.c index 16e55331..df711aa1 100644 --- a/common/legic_prng.c +++ b/common/legic_prng.c @@ -7,9 +7,11 @@ //----------------------------------------------------------------------------- #include "legic_prng.h" -// a is 7bit -// b is -// c is a counter +// the prng is a muxed value from two lsfr a, b +// a is 7bit lsfr +// b is 8bit lsfr +// c keeps track on which step the prng is. +// legic_prng_get_bit() = gets a bit muxed from a and b. struct lfsr { uint8_t a; uint8_t b; -- 2.39.2