[][src]Trait lfsr_base::LFSR

pub trait LFSR {
    fn get_state(&self) -> u32;
fn inc(&mut self);
fn dec(&mut self);
fn sequence_length(&self) -> u32; }

An object-safe part of the LFSR trait that allows to count up, down and get a current state

Required methods

fn get_state(&self) -> u32

Retrieves the current state of the LFSR

fn inc(&mut self)

Count up

fn dec(&mut self)

Count down

fn sequence_length(&self) -> u32

Sequence length of this LFSR

Loading content...


Loading content...