#[doc = "Register `FETCHSTATUS` reader"]
pub struct R(crate::R<FETCHSTATUS_SPEC>);
impl core::ops::Deref for R {
type Target = crate::R<FETCHSTATUS_SPEC>;
#[inline(always)]
fn deref(&self) -> &Self::Target {
&self.0
}
}
impl From<crate::R<FETCHSTATUS_SPEC>> for R {
#[inline(always)]
fn from(reader: crate::R<FETCHSTATUS_SPEC>) -> Self {
R(reader)
}
}
#[doc = "Field `FETCHBYTES` reader - Number of total fetched bytes."]
pub type FETCHBYTES_R = crate::FieldReader<u32, u32>;
impl R {
#[doc = "Bits 0:29 - Number of total fetched bytes."]
#[inline(always)]
pub fn fetchbytes(&self) -> FETCHBYTES_R {
FETCHBYTES_R::new(self.bits & 0x3fff_ffff)
}
}
#[doc = "Fetch Unit status.\n\nThis register you can [`read`](crate::generic::Reg::read). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [fetchstatus](index.html) module"]
pub struct FETCHSTATUS_SPEC;
impl crate::RegisterSpec for FETCHSTATUS_SPEC {
type Ux = u32;
}
#[doc = "`read()` method returns [fetchstatus::R](R) reader structure"]
impl crate::Readable for FETCHSTATUS_SPEC {
type Reader = R;
}
#[doc = "`reset()` method sets FETCHSTATUS to value 0"]
impl crate::Resettable for FETCHSTATUS_SPEC {
const RESET_VALUE: Self::Ux = 0;
}