#[doc = "Register `SAR2_PATT_TAB1` reader"]
pub type R = crate::R<SAR2_PATT_TAB1_SPEC>;
#[doc = "Register `SAR2_PATT_TAB1` writer"]
pub type W = crate::W<SAR2_PATT_TAB1_SPEC>;
#[doc = "Field `SAR2_PATT_TAB1` reader - item 0 ~ 3 for pattern table 2 (each item one byte)"]
pub type SAR2_PATT_TAB1_R = crate::FieldReader<u32>;
#[doc = "Field `SAR2_PATT_TAB1` writer - item 0 ~ 3 for pattern table 2 (each item one byte)"]
pub type SAR2_PATT_TAB1_W<'a, REG> = crate::FieldWriter<'a, REG, 32, u32>;
impl R {
#[doc = "Bits 0:31 - item 0 ~ 3 for pattern table 2 (each item one byte)"]
#[inline(always)]
pub fn sar2_patt_tab1(&self) -> SAR2_PATT_TAB1_R {
SAR2_PATT_TAB1_R::new(self.bits)
}
}
#[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("SAR2_PATT_TAB1")
.field("sar2_patt_tab1", &self.sar2_patt_tab1())
.finish()
}
}
impl W {
#[doc = "Bits 0:31 - item 0 ~ 3 for pattern table 2 (each item one byte)"]
#[inline(always)]
#[must_use]
pub fn sar2_patt_tab1(&mut self) -> SAR2_PATT_TAB1_W<SAR2_PATT_TAB1_SPEC> {
SAR2_PATT_TAB1_W::new(self, 0)
}
}
#[doc = "item 0 ~ 3 for pattern table 2 (each item one byte)\n\nYou can [`read`](crate::Reg::read) this register and get [`sar2_patt_tab1::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`sar2_patt_tab1::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct SAR2_PATT_TAB1_SPEC;
impl crate::RegisterSpec for SAR2_PATT_TAB1_SPEC {
type Ux = u32;
}
#[doc = "`read()` method returns [`sar2_patt_tab1::R`](R) reader structure"]
impl crate::Readable for SAR2_PATT_TAB1_SPEC {}
#[doc = "`write(|w| ..)` method takes [`sar2_patt_tab1::W`](W) writer structure"]
impl crate::Writable for SAR2_PATT_TAB1_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 SAR2_PATT_TAB1 to value 0x0f0f_0f0f"]
impl crate::Resettable for SAR2_PATT_TAB1_SPEC {
const RESET_VALUE: u32 = 0x0f0f_0f0f;
}