pub type R = crate::R<SECCFGR1rs>;
pub type W = crate::W<SECCFGR1rs>;
pub type SEC0_R = crate::BitReader;
pub type SEC0_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type SEC1_R = crate::BitReader;
pub type SEC1_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type SEC2_R = crate::BitReader;
pub type SEC2_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type SEC3_R = crate::BitReader;
pub type SEC3_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type SEC4_R = crate::BitReader;
pub type SEC4_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type SEC5_R = crate::BitReader;
pub type SEC5_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type SEC6_R = crate::BitReader;
pub type SEC6_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type SEC7_R = crate::BitReader;
pub type SEC7_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type SEC8_R = crate::BitReader;
pub type SEC8_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type SEC9_R = crate::BitReader;
pub type SEC9_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type SEC10_R = crate::BitReader;
pub type SEC10_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type SEC11_R = crate::BitReader;
pub type SEC11_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type SEC12_R = crate::BitReader;
pub type SEC12_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type SEC13_R = crate::BitReader;
pub type SEC13_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type SEC14_R = crate::BitReader;
pub type SEC14_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type SEC15_R = crate::BitReader;
pub type SEC15_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type SEC16_R = crate::BitReader;
pub type SEC16_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type SEC17_R = crate::BitReader;
pub type SEC17_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type SEC18_R = crate::BitReader;
pub type SEC18_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type SEC19_R = crate::BitReader;
pub type SEC19_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type SEC20_R = crate::BitReader;
pub type SEC20_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type SEC21_R = crate::BitReader;
pub type SEC21_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type SEC22_R = crate::BitReader;
pub type SEC22_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type SEC23_R = crate::BitReader;
pub type SEC23_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type SEC24_R = crate::BitReader;
pub type SEC24_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type SEC25_R = crate::BitReader;
pub type SEC25_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type SEC26_R = crate::BitReader;
pub type SEC26_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type SEC27_R = crate::BitReader;
pub type SEC27_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type SEC28_R = crate::BitReader;
pub type SEC28_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type SEC29_R = crate::BitReader;
pub type SEC29_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type SEC30_R = crate::BitReader;
pub type SEC30_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type SEC31_R = crate::BitReader;
pub type SEC31_W<'a, REG> = crate::BitWriter<'a, REG>;
impl R {
#[inline(always)]
pub fn sec0(&self) -> SEC0_R {
SEC0_R::new((self.bits & 1) != 0)
}
#[inline(always)]
pub fn sec1(&self) -> SEC1_R {
SEC1_R::new(((self.bits >> 1) & 1) != 0)
}
#[inline(always)]
pub fn sec2(&self) -> SEC2_R {
SEC2_R::new(((self.bits >> 2) & 1) != 0)
}
#[inline(always)]
pub fn sec3(&self) -> SEC3_R {
SEC3_R::new(((self.bits >> 3) & 1) != 0)
}
#[inline(always)]
pub fn sec4(&self) -> SEC4_R {
SEC4_R::new(((self.bits >> 4) & 1) != 0)
}
#[inline(always)]
pub fn sec5(&self) -> SEC5_R {
SEC5_R::new(((self.bits >> 5) & 1) != 0)
}
#[inline(always)]
pub fn sec6(&self) -> SEC6_R {
SEC6_R::new(((self.bits >> 6) & 1) != 0)
}
#[inline(always)]
pub fn sec7(&self) -> SEC7_R {
SEC7_R::new(((self.bits >> 7) & 1) != 0)
}
#[inline(always)]
pub fn sec8(&self) -> SEC8_R {
SEC8_R::new(((self.bits >> 8) & 1) != 0)
}
#[inline(always)]
pub fn sec9(&self) -> SEC9_R {
SEC9_R::new(((self.bits >> 9) & 1) != 0)
}
#[inline(always)]
pub fn sec10(&self) -> SEC10_R {
SEC10_R::new(((self.bits >> 10) & 1) != 0)
}
#[inline(always)]
pub fn sec11(&self) -> SEC11_R {
SEC11_R::new(((self.bits >> 11) & 1) != 0)
}
#[inline(always)]
pub fn sec12(&self) -> SEC12_R {
SEC12_R::new(((self.bits >> 12) & 1) != 0)
}
#[inline(always)]
pub fn sec13(&self) -> SEC13_R {
SEC13_R::new(((self.bits >> 13) & 1) != 0)
}
#[inline(always)]
pub fn sec14(&self) -> SEC14_R {
SEC14_R::new(((self.bits >> 14) & 1) != 0)
}
#[inline(always)]
pub fn sec15(&self) -> SEC15_R {
SEC15_R::new(((self.bits >> 15) & 1) != 0)
}
#[inline(always)]
pub fn sec16(&self) -> SEC16_R {
SEC16_R::new(((self.bits >> 16) & 1) != 0)
}
#[inline(always)]
pub fn sec17(&self) -> SEC17_R {
SEC17_R::new(((self.bits >> 17) & 1) != 0)
}
#[inline(always)]
pub fn sec18(&self) -> SEC18_R {
SEC18_R::new(((self.bits >> 18) & 1) != 0)
}
#[inline(always)]
pub fn sec19(&self) -> SEC19_R {
SEC19_R::new(((self.bits >> 19) & 1) != 0)
}
#[inline(always)]
pub fn sec20(&self) -> SEC20_R {
SEC20_R::new(((self.bits >> 20) & 1) != 0)
}
#[inline(always)]
pub fn sec21(&self) -> SEC21_R {
SEC21_R::new(((self.bits >> 21) & 1) != 0)
}
#[inline(always)]
pub fn sec22(&self) -> SEC22_R {
SEC22_R::new(((self.bits >> 22) & 1) != 0)
}
#[inline(always)]
pub fn sec23(&self) -> SEC23_R {
SEC23_R::new(((self.bits >> 23) & 1) != 0)
}
#[inline(always)]
pub fn sec24(&self) -> SEC24_R {
SEC24_R::new(((self.bits >> 24) & 1) != 0)
}
#[inline(always)]
pub fn sec25(&self) -> SEC25_R {
SEC25_R::new(((self.bits >> 25) & 1) != 0)
}
#[inline(always)]
pub fn sec26(&self) -> SEC26_R {
SEC26_R::new(((self.bits >> 26) & 1) != 0)
}
#[inline(always)]
pub fn sec27(&self) -> SEC27_R {
SEC27_R::new(((self.bits >> 27) & 1) != 0)
}
#[inline(always)]
pub fn sec28(&self) -> SEC28_R {
SEC28_R::new(((self.bits >> 28) & 1) != 0)
}
#[inline(always)]
pub fn sec29(&self) -> SEC29_R {
SEC29_R::new(((self.bits >> 29) & 1) != 0)
}
#[inline(always)]
pub fn sec30(&self) -> SEC30_R {
SEC30_R::new(((self.bits >> 30) & 1) != 0)
}
#[inline(always)]
pub fn sec31(&self) -> SEC31_R {
SEC31_R::new(((self.bits >> 31) & 1) != 0)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("SECCFGR1")
.field("sec0", &self.sec0())
.field("sec1", &self.sec1())
.field("sec2", &self.sec2())
.field("sec3", &self.sec3())
.field("sec4", &self.sec4())
.field("sec5", &self.sec5())
.field("sec6", &self.sec6())
.field("sec7", &self.sec7())
.field("sec8", &self.sec8())
.field("sec9", &self.sec9())
.field("sec10", &self.sec10())
.field("sec11", &self.sec11())
.field("sec12", &self.sec12())
.field("sec13", &self.sec13())
.field("sec14", &self.sec14())
.field("sec15", &self.sec15())
.field("sec16", &self.sec16())
.field("sec17", &self.sec17())
.field("sec18", &self.sec18())
.field("sec19", &self.sec19())
.field("sec20", &self.sec20())
.field("sec21", &self.sec21())
.field("sec22", &self.sec22())
.field("sec23", &self.sec23())
.field("sec24", &self.sec24())
.field("sec25", &self.sec25())
.field("sec26", &self.sec26())
.field("sec27", &self.sec27())
.field("sec28", &self.sec28())
.field("sec29", &self.sec29())
.field("sec30", &self.sec30())
.field("sec31", &self.sec31())
.finish()
}
}
impl W {
#[inline(always)]
pub fn sec0(&mut self) -> SEC0_W<SECCFGR1rs> {
SEC0_W::new(self, 0)
}
#[inline(always)]
pub fn sec1(&mut self) -> SEC1_W<SECCFGR1rs> {
SEC1_W::new(self, 1)
}
#[inline(always)]
pub fn sec2(&mut self) -> SEC2_W<SECCFGR1rs> {
SEC2_W::new(self, 2)
}
#[inline(always)]
pub fn sec3(&mut self) -> SEC3_W<SECCFGR1rs> {
SEC3_W::new(self, 3)
}
#[inline(always)]
pub fn sec4(&mut self) -> SEC4_W<SECCFGR1rs> {
SEC4_W::new(self, 4)
}
#[inline(always)]
pub fn sec5(&mut self) -> SEC5_W<SECCFGR1rs> {
SEC5_W::new(self, 5)
}
#[inline(always)]
pub fn sec6(&mut self) -> SEC6_W<SECCFGR1rs> {
SEC6_W::new(self, 6)
}
#[inline(always)]
pub fn sec7(&mut self) -> SEC7_W<SECCFGR1rs> {
SEC7_W::new(self, 7)
}
#[inline(always)]
pub fn sec8(&mut self) -> SEC8_W<SECCFGR1rs> {
SEC8_W::new(self, 8)
}
#[inline(always)]
pub fn sec9(&mut self) -> SEC9_W<SECCFGR1rs> {
SEC9_W::new(self, 9)
}
#[inline(always)]
pub fn sec10(&mut self) -> SEC10_W<SECCFGR1rs> {
SEC10_W::new(self, 10)
}
#[inline(always)]
pub fn sec11(&mut self) -> SEC11_W<SECCFGR1rs> {
SEC11_W::new(self, 11)
}
#[inline(always)]
pub fn sec12(&mut self) -> SEC12_W<SECCFGR1rs> {
SEC12_W::new(self, 12)
}
#[inline(always)]
pub fn sec13(&mut self) -> SEC13_W<SECCFGR1rs> {
SEC13_W::new(self, 13)
}
#[inline(always)]
pub fn sec14(&mut self) -> SEC14_W<SECCFGR1rs> {
SEC14_W::new(self, 14)
}
#[inline(always)]
pub fn sec15(&mut self) -> SEC15_W<SECCFGR1rs> {
SEC15_W::new(self, 15)
}
#[inline(always)]
pub fn sec16(&mut self) -> SEC16_W<SECCFGR1rs> {
SEC16_W::new(self, 16)
}
#[inline(always)]
pub fn sec17(&mut self) -> SEC17_W<SECCFGR1rs> {
SEC17_W::new(self, 17)
}
#[inline(always)]
pub fn sec18(&mut self) -> SEC18_W<SECCFGR1rs> {
SEC18_W::new(self, 18)
}
#[inline(always)]
pub fn sec19(&mut self) -> SEC19_W<SECCFGR1rs> {
SEC19_W::new(self, 19)
}
#[inline(always)]
pub fn sec20(&mut self) -> SEC20_W<SECCFGR1rs> {
SEC20_W::new(self, 20)
}
#[inline(always)]
pub fn sec21(&mut self) -> SEC21_W<SECCFGR1rs> {
SEC21_W::new(self, 21)
}
#[inline(always)]
pub fn sec22(&mut self) -> SEC22_W<SECCFGR1rs> {
SEC22_W::new(self, 22)
}
#[inline(always)]
pub fn sec23(&mut self) -> SEC23_W<SECCFGR1rs> {
SEC23_W::new(self, 23)
}
#[inline(always)]
pub fn sec24(&mut self) -> SEC24_W<SECCFGR1rs> {
SEC24_W::new(self, 24)
}
#[inline(always)]
pub fn sec25(&mut self) -> SEC25_W<SECCFGR1rs> {
SEC25_W::new(self, 25)
}
#[inline(always)]
pub fn sec26(&mut self) -> SEC26_W<SECCFGR1rs> {
SEC26_W::new(self, 26)
}
#[inline(always)]
pub fn sec27(&mut self) -> SEC27_W<SECCFGR1rs> {
SEC27_W::new(self, 27)
}
#[inline(always)]
pub fn sec28(&mut self) -> SEC28_W<SECCFGR1rs> {
SEC28_W::new(self, 28)
}
#[inline(always)]
pub fn sec29(&mut self) -> SEC29_W<SECCFGR1rs> {
SEC29_W::new(self, 29)
}
#[inline(always)]
pub fn sec30(&mut self) -> SEC30_W<SECCFGR1rs> {
SEC30_W::new(self, 30)
}
#[inline(always)]
pub fn sec31(&mut self) -> SEC31_W<SECCFGR1rs> {
SEC31_W::new(self, 31)
}
}
pub struct SECCFGR1rs;
impl crate::RegisterSpec for SECCFGR1rs {
type Ux = u32;
}
impl crate::Readable for SECCFGR1rs {}
impl crate::Writable for SECCFGR1rs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for SECCFGR1rs {}