#[doc = "Register `SHROM_MPU_TABLE11` reader"]
pub type R = crate::R<SHROM_MPU_TABLE11_SPEC>;
#[doc = "Register `SHROM_MPU_TABLE11` writer"]
pub type W = crate::W<SHROM_MPU_TABLE11_SPEC>;
#[doc = "Field `SHROM_MPU_TABLE11` reader - "]
pub type SHROM_MPU_TABLE11_R = crate::FieldReader;
#[doc = "Field `SHROM_MPU_TABLE11` writer - "]
pub type SHROM_MPU_TABLE11_W<'a, REG> = crate::FieldWriter<'a, REG, 2>;
impl R {
#[doc = "Bits 0:1"]
#[inline(always)]
pub fn shrom_mpu_table11(&self) -> SHROM_MPU_TABLE11_R {
SHROM_MPU_TABLE11_R::new((self.bits & 3) as u8)
}
}
#[cfg(feature = "impl-register-debug")]
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("SHROM_MPU_TABLE11")
.field("shrom_mpu_table11", &self.shrom_mpu_table11())
.finish()
}
}
impl W {
#[doc = "Bits 0:1"]
#[inline(always)]
#[must_use]
pub fn shrom_mpu_table11(&mut self) -> SHROM_MPU_TABLE11_W<SHROM_MPU_TABLE11_SPEC> {
SHROM_MPU_TABLE11_W::new(self, 0)
}
}
#[doc = "\n\nYou can [`read`](crate::Reg::read) this register and get [`shrom_mpu_table11::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`shrom_mpu_table11::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct SHROM_MPU_TABLE11_SPEC;
impl crate::RegisterSpec for SHROM_MPU_TABLE11_SPEC {
type Ux = u32;
}
#[doc = "`read()` method returns [`shrom_mpu_table11::R`](R) reader structure"]
impl crate::Readable for SHROM_MPU_TABLE11_SPEC {}
#[doc = "`write(|w| ..)` method takes [`shrom_mpu_table11::W`](W) writer structure"]
impl crate::Writable for SHROM_MPU_TABLE11_SPEC {
type Safety = crate::Unsafe;
const ZERO_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
const ONE_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
}
#[doc = "`reset()` method sets SHROM_MPU_TABLE11 to value 0x01"]
impl crate::Resettable for SHROM_MPU_TABLE11_SPEC {
const RESET_VALUE: u32 = 0x01;
}