pub fn value(&mut self) -> Result<u32, ErrorKind> {
        loop {
            let status = self.rb.sr.read();
            if status.cecs().bit() {
                return Err(ErrorKind::ClockError);
            }
            if status.secs().bit() {
                return Err(ErrorKind::SeedError);
            }
            if status.drdy().bit() {
                return Ok(self.rb.dr.read().rndata().bits());
            }
        }
    }
/// Returns 32 bits of randomness, or error
Returns 32 bits of randomness, or error
Returns 32 bits of randomness or error
pub fn value(&mut self) -> Result<u32, ErrorKind> {
        loop {
            let status = self.rb.sr.read();
            if status.cecs().bit() {
                return Err(ErrorKind::ClockError);
            }
            if status.secs().bit() {
                return Err(ErrorKind::SeedError);
            }
            if status.drdy().bit() {
                return Ok(self.rb.dr.read().rndata().bits());
            }
        }
    }
pub fn value ( & mut self ) -> Result < u32 , ErrorKind > { loop { let status = self . rb . sr . read ( ) ; if status . cecs ( ) . bit ( ) { return Err ( ErrorKind :: ClockError ) ; } if status . secs ( ) . bit ( ) { return Err ( ErrorKind :: SeedError ) ; } if status . drdy ( ) . bit ( ) { return Ok ( self . rb . dr . read ( ) . rndata ( ) . bits ( ) ) ; } } }
Returns 32 bits of randomness, or error
Returns 32 bits of randomness or error
&mut self
&mut self