pub type R = crate::R<SECCFGR2rs>;
pub type W = crate::W<SECCFGR2rs>;
pub type SEC32_R = crate::BitReader;
pub type SEC32_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type SEC33_R = crate::BitReader;
pub type SEC33_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type SEC34_R = crate::BitReader;
pub type SEC34_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type SEC35_R = crate::BitReader;
pub type SEC35_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type SEC36_R = crate::BitReader;
pub type SEC36_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type SEC37_R = crate::BitReader;
pub type SEC37_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type SEC38_R = crate::BitReader;
pub type SEC38_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type SEC39_R = crate::BitReader;
pub type SEC39_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type SEC40_R = crate::BitReader;
pub type SEC40_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type SEC41_R = crate::BitReader;
pub type SEC41_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type SEC42_R = crate::BitReader;
pub type SEC42_W<'a, REG> = crate::BitWriter<'a, REG>;
impl R {
#[inline(always)]
pub fn sec32(&self) -> SEC32_R {
SEC32_R::new((self.bits & 1) != 0)
}
#[inline(always)]
pub fn sec33(&self) -> SEC33_R {
SEC33_R::new(((self.bits >> 1) & 1) != 0)
}
#[inline(always)]
pub fn sec34(&self) -> SEC34_R {
SEC34_R::new(((self.bits >> 2) & 1) != 0)
}
#[inline(always)]
pub fn sec35(&self) -> SEC35_R {
SEC35_R::new(((self.bits >> 3) & 1) != 0)
}
#[inline(always)]
pub fn sec36(&self) -> SEC36_R {
SEC36_R::new(((self.bits >> 4) & 1) != 0)
}
#[inline(always)]
pub fn sec37(&self) -> SEC37_R {
SEC37_R::new(((self.bits >> 5) & 1) != 0)
}
#[inline(always)]
pub fn sec38(&self) -> SEC38_R {
SEC38_R::new(((self.bits >> 6) & 1) != 0)
}
#[inline(always)]
pub fn sec39(&self) -> SEC39_R {
SEC39_R::new(((self.bits >> 7) & 1) != 0)
}
#[inline(always)]
pub fn sec40(&self) -> SEC40_R {
SEC40_R::new(((self.bits >> 8) & 1) != 0)
}
#[inline(always)]
pub fn sec41(&self) -> SEC41_R {
SEC41_R::new(((self.bits >> 9) & 1) != 0)
}
#[inline(always)]
pub fn sec42(&self) -> SEC42_R {
SEC42_R::new(((self.bits >> 10) & 1) != 0)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("SECCFGR2")
.field("sec32", &self.sec32())
.field("sec33", &self.sec33())
.field("sec34", &self.sec34())
.field("sec35", &self.sec35())
.field("sec36", &self.sec36())
.field("sec37", &self.sec37())
.field("sec38", &self.sec38())
.field("sec39", &self.sec39())
.field("sec40", &self.sec40())
.field("sec41", &self.sec41())
.field("sec42", &self.sec42())
.finish()
}
}
impl W {
#[inline(always)]
pub fn sec32(&mut self) -> SEC32_W<SECCFGR2rs> {
SEC32_W::new(self, 0)
}
#[inline(always)]
pub fn sec33(&mut self) -> SEC33_W<SECCFGR2rs> {
SEC33_W::new(self, 1)
}
#[inline(always)]
pub fn sec34(&mut self) -> SEC34_W<SECCFGR2rs> {
SEC34_W::new(self, 2)
}
#[inline(always)]
pub fn sec35(&mut self) -> SEC35_W<SECCFGR2rs> {
SEC35_W::new(self, 3)
}
#[inline(always)]
pub fn sec36(&mut self) -> SEC36_W<SECCFGR2rs> {
SEC36_W::new(self, 4)
}
#[inline(always)]
pub fn sec37(&mut self) -> SEC37_W<SECCFGR2rs> {
SEC37_W::new(self, 5)
}
#[inline(always)]
pub fn sec38(&mut self) -> SEC38_W<SECCFGR2rs> {
SEC38_W::new(self, 6)
}
#[inline(always)]
pub fn sec39(&mut self) -> SEC39_W<SECCFGR2rs> {
SEC39_W::new(self, 7)
}
#[inline(always)]
pub fn sec40(&mut self) -> SEC40_W<SECCFGR2rs> {
SEC40_W::new(self, 8)
}
#[inline(always)]
pub fn sec41(&mut self) -> SEC41_W<SECCFGR2rs> {
SEC41_W::new(self, 9)
}
#[inline(always)]
pub fn sec42(&mut self) -> SEC42_W<SECCFGR2rs> {
SEC42_W::new(self, 10)
}
}
pub struct SECCFGR2rs;
impl crate::RegisterSpec for SECCFGR2rs {
type Ux = u32;
}
impl crate::Readable for SECCFGR2rs {}
impl crate::Writable for SECCFGR2rs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for SECCFGR2rs {}