ADD; added some more descriptions of what the legic prng imp does.
This commit is contained in:
@@ -7,9 +7,11 @@
|
|||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
|
|
||||||
#include "legic_prng.h"
|
#include "legic_prng.h"
|
||||||
// a is 7bit
|
// the prng is a muxed value from two lsfr a, b
|
||||||
// b is
|
// a is 7bit lsfr
|
||||||
// c is a counter
|
// 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 {
|
struct lfsr {
|
||||||
uint8_t a;
|
uint8_t a;
|
||||||
uint8_t b;
|
uint8_t b;
|
||||||
|
|||||||
Reference in New Issue
Block a user