pub type R = crate::R<ATORrs>;
pub type PRNG_R = crate::FieldReader;
pub type SEEDF_R = crate::BitReader;
pub type INITS_R = crate::BitReader;
impl R {
#[inline(always)]
pub fn prng(&self) -> PRNG_R {
PRNG_R::new((self.bits & 0xff) as u8)
}
#[inline(always)]
pub fn seedf(&self) -> SEEDF_R {
SEEDF_R::new(((self.bits >> 14) & 1) != 0)
}
#[inline(always)]
pub fn inits(&self) -> INITS_R {
INITS_R::new(((self.bits >> 15) & 1) != 0)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("ATOR")
.field("prng", &self.prng())
.field("seedf", &self.seedf())
.field("inits", &self.inits())
.finish()
}
}
pub struct ATORrs;
impl crate::RegisterSpec for ATORrs {
type Ux = u32;
}
impl crate::Readable for ATORrs {}
impl crate::Resettable for ATORrs {}