#![allow(clippy::identity_op)]
#![allow(clippy::module_inception)]
#![allow(clippy::derivable_impls)]
#[allow(unused_imports)]
use crate::common::sealed;
#[allow(unused_imports)]
use crate::common::*;
#[doc = r"Peripheral Security Control Unit"]
unsafe impl ::core::marker::Send for super::Pscu {}
unsafe impl ::core::marker::Sync for super::Pscu {}
impl super::Pscu {
#[allow(unused)]
#[inline(always)]
pub(crate) const fn _svd2pac_as_ptr(&self) -> *mut u8 {
self.ptr
}
#[doc = "Peripheral Security Attribution Register B"]
#[inline(always)]
pub const fn psarb(&self) -> &'static crate::common::Reg<self::Psarb_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Psarb_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(4usize),
)
}
}
#[doc = "Peripheral Security Attribution Register C"]
#[inline(always)]
pub const fn psarc(&self) -> &'static crate::common::Reg<self::Psarc_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Psarc_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(8usize),
)
}
}
#[doc = "Peripheral Security Attribution Register D"]
#[inline(always)]
pub const fn psard(&self) -> &'static crate::common::Reg<self::Psard_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Psard_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(12usize),
)
}
}
#[doc = "Peripheral Security Attribution Register E"]
#[inline(always)]
pub const fn psare(&self) -> &'static crate::common::Reg<self::Psare_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Psare_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(16usize),
)
}
}
#[doc = "Module Stop Security Attribution Register"]
#[inline(always)]
pub const fn mssar(&self) -> &'static crate::common::Reg<self::Mssar_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Mssar_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(20usize),
)
}
}
#[doc = "Code Flash Security Attribution Register A"]
#[inline(always)]
pub const fn cfsamona(
&self,
) -> &'static crate::common::Reg<self::Cfsamona_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Cfsamona_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(24usize),
)
}
}
#[doc = "Code Flash Security Attribution Register B"]
#[inline(always)]
pub const fn cfsamonb(
&self,
) -> &'static crate::common::Reg<self::Cfsamonb_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Cfsamonb_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(28usize),
)
}
}
#[doc = "Data Flash Security Attribution Register"]
#[inline(always)]
pub const fn dfsamon(
&self,
) -> &'static crate::common::Reg<self::Dfsamon_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Dfsamon_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(32usize),
)
}
}
#[doc = "SRAM Security Attribution Register A"]
#[inline(always)]
pub const fn ssamona(
&self,
) -> &'static crate::common::Reg<self::Ssamona_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Ssamona_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(36usize),
)
}
}
#[doc = "SRAM Security Attribution Register B"]
#[inline(always)]
pub const fn ssamonb(
&self,
) -> &'static crate::common::Reg<self::Ssamonb_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Ssamonb_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(40usize),
)
}
}
}
#[doc(hidden)]
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct Psarb_SPEC;
impl crate::sealed::RegSpec for Psarb_SPEC {
type DataType = u32;
}
#[doc = "Peripheral Security Attribution Register B"]
pub type Psarb = crate::RegValueT<Psarb_SPEC>;
impl Psarb {
#[doc = "CEC and the MSTPCRB.MSTPB3 bit security attribution"]
#[inline(always)]
pub fn psarb3(
self,
) -> crate::common::RegisterField<
3,
0x1,
1,
0,
psarb::Psarb3,
psarb::Psarb3,
Psarb_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
3,
0x1,
1,
0,
psarb::Psarb3,
psarb::Psarb3,
Psarb_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[doc = "I3C and the MSTPCRB.MSTPB4 bit security attribution"]
#[inline(always)]
pub fn psarb4(
self,
) -> crate::common::RegisterField<
4,
0x1,
1,
0,
psarb::Psarb4,
psarb::Psarb4,
Psarb_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
4,
0x1,
1,
0,
psarb::Psarb4,
psarb::Psarb4,
Psarb_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[doc = "QSPI and the MSTPCRB.MSTPB6 bit security attribution"]
#[inline(always)]
pub fn psarb6(self) -> crate::common::RegisterFieldBool<6, 1, 0, Psarb_SPEC, crate::common::R> {
crate::common::RegisterFieldBool::<6, 1, 0, Psarb_SPEC, crate::common::R>::from_register(
self, 0,
)
}
#[doc = "USBFS and the MSTPCRB.MSTPB11 bit security attribution"]
#[inline(always)]
pub fn psarb11(
self,
) -> crate::common::RegisterField<
11,
0x1,
1,
0,
psarb::Psarb11,
psarb::Psarb11,
Psarb_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
11,
0x1,
1,
0,
psarb::Psarb11,
psarb::Psarb11,
Psarb_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[doc = "SPI1 and the MSTPCRB.MSTPB18 bit security attribution"]
#[inline(always)]
pub fn psarb18(
self,
) -> crate::common::RegisterField<
18,
0x1,
1,
0,
psarb::Psarb18,
psarb::Psarb18,
Psarb_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
18,
0x1,
1,
0,
psarb::Psarb18,
psarb::Psarb18,
Psarb_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[doc = "SPI0 and the MSTPCRB.MSTPB19 bit security attribution"]
#[inline(always)]
pub fn psarb19(
self,
) -> crate::common::RegisterField<
19,
0x1,
1,
0,
psarb::Psarb19,
psarb::Psarb19,
Psarb_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
19,
0x1,
1,
0,
psarb::Psarb19,
psarb::Psarb19,
Psarb_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[doc = "SCI9 and the MSTPCRB.MSTPB22 bit security attribution"]
#[inline(always)]
pub fn psarb22(
self,
) -> crate::common::RegisterField<
22,
0x1,
1,
0,
psarb::Psarb22,
psarb::Psarb22,
Psarb_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
22,
0x1,
1,
0,
psarb::Psarb22,
psarb::Psarb22,
Psarb_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[doc = "SCI0 and the MSTPCRB.MSTPB31 bit security attribution"]
#[inline(always)]
pub fn psarb31(
self,
) -> crate::common::RegisterField<
31,
0x1,
1,
0,
psarb::Psarb31,
psarb::Psarb31,
Psarb_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
31,
0x1,
1,
0,
psarb::Psarb31,
psarb::Psarb31,
Psarb_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
}
impl ::core::default::Default for Psarb {
#[inline(always)]
fn default() -> Psarb {
<crate::RegValueT<Psarb_SPEC> as RegisterValue<_>>::new(4294967295)
}
}
pub mod psarb {
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Psarb3_SPEC;
pub type Psarb3 = crate::EnumBitfieldStruct<u8, Psarb3_SPEC>;
impl Psarb3 {
#[doc = "Secure"]
pub const _0: Self = Self::new(0);
#[doc = "Non-secure"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Psarb4_SPEC;
pub type Psarb4 = crate::EnumBitfieldStruct<u8, Psarb4_SPEC>;
impl Psarb4 {
#[doc = "Secure"]
pub const _0: Self = Self::new(0);
#[doc = "Non-secure"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Psarb11_SPEC;
pub type Psarb11 = crate::EnumBitfieldStruct<u8, Psarb11_SPEC>;
impl Psarb11 {
#[doc = "Secure"]
pub const _0: Self = Self::new(0);
#[doc = "Non-secure"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Psarb18_SPEC;
pub type Psarb18 = crate::EnumBitfieldStruct<u8, Psarb18_SPEC>;
impl Psarb18 {
#[doc = "Secure"]
pub const _0: Self = Self::new(0);
#[doc = "Non-secure"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Psarb19_SPEC;
pub type Psarb19 = crate::EnumBitfieldStruct<u8, Psarb19_SPEC>;
impl Psarb19 {
#[doc = "Secure"]
pub const _0: Self = Self::new(0);
#[doc = "Non-secure"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Psarb22_SPEC;
pub type Psarb22 = crate::EnumBitfieldStruct<u8, Psarb22_SPEC>;
impl Psarb22 {
#[doc = "Secure"]
pub const _0: Self = Self::new(0);
#[doc = "Non-secure"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Psarb31_SPEC;
pub type Psarb31 = crate::EnumBitfieldStruct<u8, Psarb31_SPEC>;
impl Psarb31 {
#[doc = "Secure"]
pub const _0: Self = Self::new(0);
#[doc = "Non-secure"]
pub const _1: Self = Self::new(1);
}
}
#[doc(hidden)]
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct Psarc_SPEC;
impl crate::sealed::RegSpec for Psarc_SPEC {
type DataType = u32;
}
#[doc = "Peripheral Security Attribution Register C"]
pub type Psarc = crate::RegValueT<Psarc_SPEC>;
impl Psarc {
#[doc = "CAC and the MSTPCRC.MSTPC0 bit security attribution"]
#[inline(always)]
pub fn psarc0(
self,
) -> crate::common::RegisterField<
0,
0x1,
1,
0,
psarc::Psarc0,
psarc::Psarc0,
Psarc_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
0,
0x1,
1,
0,
psarc::Psarc0,
psarc::Psarc0,
Psarc_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[doc = "CRC and the MSTPCRC.MSTPC1 bit security attribution"]
#[inline(always)]
pub fn psarc1(
self,
) -> crate::common::RegisterField<
1,
0x1,
1,
0,
psarc::Psarc1,
psarc::Psarc1,
Psarc_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
1,
0x1,
1,
0,
psarc::Psarc1,
psarc::Psarc1,
Psarc_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[doc = "SSIE0 and the MSTPCRC.MSTPC8 bit security attribution"]
#[inline(always)]
pub fn psarc8(
self,
) -> crate::common::RegisterField<
8,
0x1,
1,
0,
psarc::Psarc8,
psarc::Psarc8,
Psarc_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
8,
0x1,
1,
0,
psarc::Psarc8,
psarc::Psarc8,
Psarc_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[doc = "DOC and the MSTPCRC.MSTPC13 bit security attribution"]
#[inline(always)]
pub fn psarc13(
self,
) -> crate::common::RegisterField<
13,
0x1,
1,
0,
psarc::Psarc13,
psarc::Psarc13,
Psarc_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
13,
0x1,
1,
0,
psarc::Psarc13,
psarc::Psarc13,
Psarc_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[doc = "CANFD0 and the MSTPCRC.MSTPC27 bit security attribution"]
#[inline(always)]
pub fn psarc27(
self,
) -> crate::common::RegisterField<
27,
0x1,
1,
0,
psarc::Psarc27,
psarc::Psarc27,
Psarc_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
27,
0x1,
1,
0,
psarc::Psarc27,
psarc::Psarc27,
Psarc_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[doc = "TRNG and the MSTPCRC.MSTPC28 bit security attribution"]
#[inline(always)]
pub fn psarc28(
self,
) -> crate::common::RegisterField<
28,
0x1,
1,
0,
psarc::Psarc28,
psarc::Psarc28,
Psarc_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
28,
0x1,
1,
0,
psarc::Psarc28,
psarc::Psarc28,
Psarc_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
}
impl ::core::default::Default for Psarc {
#[inline(always)]
fn default() -> Psarc {
<crate::RegValueT<Psarc_SPEC> as RegisterValue<_>>::new(4294967295)
}
}
pub mod psarc {
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Psarc0_SPEC;
pub type Psarc0 = crate::EnumBitfieldStruct<u8, Psarc0_SPEC>;
impl Psarc0 {
#[doc = "Secure"]
pub const _0: Self = Self::new(0);
#[doc = "Non-secure"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Psarc1_SPEC;
pub type Psarc1 = crate::EnumBitfieldStruct<u8, Psarc1_SPEC>;
impl Psarc1 {
#[doc = "Secure"]
pub const _0: Self = Self::new(0);
#[doc = "Non-secure"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Psarc8_SPEC;
pub type Psarc8 = crate::EnumBitfieldStruct<u8, Psarc8_SPEC>;
impl Psarc8 {
#[doc = "Secure"]
pub const _0: Self = Self::new(0);
#[doc = "Non-secure"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Psarc13_SPEC;
pub type Psarc13 = crate::EnumBitfieldStruct<u8, Psarc13_SPEC>;
impl Psarc13 {
#[doc = "Secure"]
pub const _0: Self = Self::new(0);
#[doc = "Non-secure"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Psarc27_SPEC;
pub type Psarc27 = crate::EnumBitfieldStruct<u8, Psarc27_SPEC>;
impl Psarc27 {
#[doc = "Secure"]
pub const _0: Self = Self::new(0);
#[doc = "Non-secure"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Psarc28_SPEC;
pub type Psarc28 = crate::EnumBitfieldStruct<u8, Psarc28_SPEC>;
impl Psarc28 {
#[doc = "Secure"]
pub const _0: Self = Self::new(0);
#[doc = "Non-secure"]
pub const _1: Self = Self::new(1);
}
}
#[doc(hidden)]
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct Psard_SPEC;
impl crate::sealed::RegSpec for Psard_SPEC {
type DataType = u32;
}
#[doc = "Peripheral Security Attribution Register D"]
pub type Psard = crate::RegValueT<Psard_SPEC>;
impl Psard {
#[doc = "AGT1 and the MSTPCRD.MSTPD2 bit security attribution"]
#[inline(always)]
pub fn psard2(
self,
) -> crate::common::RegisterField<
2,
0x1,
1,
0,
psard::Psard2,
psard::Psard2,
Psard_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
2,
0x1,
1,
0,
psard::Psard2,
psard::Psard2,
Psard_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[doc = "AGT0 and the MSTPCRD.MSTPD3 bit security attribution"]
#[inline(always)]
pub fn psard3(
self,
) -> crate::common::RegisterField<
3,
0x1,
1,
0,
psard::Psard3,
psard::Psard3,
Psard_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
3,
0x1,
1,
0,
psard::Psard3,
psard::Psard3,
Psard_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[doc = "POEG Group D and the MSTPCRD.MSTPD11 bit security attribution"]
#[inline(always)]
pub fn psard11(
self,
) -> crate::common::RegisterField<
11,
0x1,
1,
0,
psard::Psard11,
psard::Psard11,
Psard_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
11,
0x1,
1,
0,
psard::Psard11,
psard::Psard11,
Psard_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[doc = "POEG Group C and the MSTPCRD.MSTPD12 bit security attribution"]
#[inline(always)]
pub fn psard12(
self,
) -> crate::common::RegisterField<
12,
0x1,
1,
0,
psard::Psard12,
psard::Psard12,
Psard_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
12,
0x1,
1,
0,
psard::Psard12,
psard::Psard12,
Psard_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[doc = "POEG Group B and the MSTPCRD.MSTPD13 bit security attribution"]
#[inline(always)]
pub fn psard13(
self,
) -> crate::common::RegisterField<
13,
0x1,
1,
0,
psard::Psard13,
psard::Psard13,
Psard_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
13,
0x1,
1,
0,
psard::Psard13,
psard::Psard13,
Psard_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[doc = "POEG Group A and the MSTPCRD.MSTPD14 bit security attribution"]
#[inline(always)]
pub fn psard14(
self,
) -> crate::common::RegisterField<
14,
0x1,
1,
0,
psard::Psard14,
psard::Psard14,
Psard_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
14,
0x1,
1,
0,
psard::Psard14,
psard::Psard14,
Psard_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[doc = "ADC120 and the MSTPCRD.MSTPD16 bit security attribution"]
#[inline(always)]
pub fn psard16(
self,
) -> crate::common::RegisterField<
16,
0x1,
1,
0,
psard::Psard16,
psard::Psard16,
Psard_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
16,
0x1,
1,
0,
psard::Psard16,
psard::Psard16,
Psard_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[doc = "DAC12 and the MSTPCRD.MSTPD20 bit security attribution"]
#[inline(always)]
pub fn psard20(
self,
) -> crate::common::RegisterField<
20,
0x1,
1,
0,
psard::Psard20,
psard::Psard20,
Psard_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
20,
0x1,
1,
0,
psard::Psard20,
psard::Psard20,
Psard_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[doc = "TSN and the MSTPCRD.MSTPD22 bit security attribution"]
#[inline(always)]
pub fn psard22(
self,
) -> crate::common::RegisterField<
22,
0x1,
1,
0,
psard::Psard22,
psard::Psard22,
Psard_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
22,
0x1,
1,
0,
psard::Psard22,
psard::Psard22,
Psard_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
}
impl ::core::default::Default for Psard {
#[inline(always)]
fn default() -> Psard {
<crate::RegValueT<Psard_SPEC> as RegisterValue<_>>::new(4294967295)
}
}
pub mod psard {
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Psard2_SPEC;
pub type Psard2 = crate::EnumBitfieldStruct<u8, Psard2_SPEC>;
impl Psard2 {
#[doc = "Secure"]
pub const _0: Self = Self::new(0);
#[doc = "Non-secure"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Psard3_SPEC;
pub type Psard3 = crate::EnumBitfieldStruct<u8, Psard3_SPEC>;
impl Psard3 {
#[doc = "Secure"]
pub const _0: Self = Self::new(0);
#[doc = "Non-secure"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Psard11_SPEC;
pub type Psard11 = crate::EnumBitfieldStruct<u8, Psard11_SPEC>;
impl Psard11 {
#[doc = "Secure"]
pub const _0: Self = Self::new(0);
#[doc = "Non-secure"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Psard12_SPEC;
pub type Psard12 = crate::EnumBitfieldStruct<u8, Psard12_SPEC>;
impl Psard12 {
#[doc = "Secure"]
pub const _0: Self = Self::new(0);
#[doc = "Non-secure"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Psard13_SPEC;
pub type Psard13 = crate::EnumBitfieldStruct<u8, Psard13_SPEC>;
impl Psard13 {
#[doc = "Secure"]
pub const _0: Self = Self::new(0);
#[doc = "Non-secure"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Psard14_SPEC;
pub type Psard14 = crate::EnumBitfieldStruct<u8, Psard14_SPEC>;
impl Psard14 {
#[doc = "Secure"]
pub const _0: Self = Self::new(0);
#[doc = "Non-secure"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Psard16_SPEC;
pub type Psard16 = crate::EnumBitfieldStruct<u8, Psard16_SPEC>;
impl Psard16 {
#[doc = "Secure"]
pub const _0: Self = Self::new(0);
#[doc = "Non-secure"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Psard20_SPEC;
pub type Psard20 = crate::EnumBitfieldStruct<u8, Psard20_SPEC>;
impl Psard20 {
#[doc = "Secure"]
pub const _0: Self = Self::new(0);
#[doc = "Non-secure"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Psard22_SPEC;
pub type Psard22 = crate::EnumBitfieldStruct<u8, Psard22_SPEC>;
impl Psard22 {
#[doc = "Secure"]
pub const _0: Self = Self::new(0);
#[doc = "Non-secure"]
pub const _1: Self = Self::new(1);
}
}
#[doc(hidden)]
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct Psare_SPEC;
impl crate::sealed::RegSpec for Psare_SPEC {
type DataType = u32;
}
#[doc = "Peripheral Security Attribution Register E"]
pub type Psare = crate::RegValueT<Psare_SPEC>;
impl Psare {
#[doc = "WDT security attribution"]
#[inline(always)]
pub fn psare0(
self,
) -> crate::common::RegisterField<
0,
0x1,
1,
0,
psare::Psare0,
psare::Psare0,
Psare_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
0,
0x1,
1,
0,
psare::Psare0,
psare::Psare0,
Psare_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[doc = "IWDT security attribution"]
#[inline(always)]
pub fn psare1(
self,
) -> crate::common::RegisterField<
1,
0x1,
1,
0,
psare::Psare1,
psare::Psare1,
Psare_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
1,
0x1,
1,
0,
psare::Psare1,
psare::Psare1,
Psare_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[doc = "RTC security attribution"]
#[inline(always)]
pub fn psare2(
self,
) -> crate::common::RegisterField<
2,
0x1,
1,
0,
psare::Psare2,
psare::Psare2,
Psare_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
2,
0x1,
1,
0,
psare::Psare2,
psare::Psare2,
Psare_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[doc = "GPT5 and the MSTPCRE.MSTPE26 bit security attribution"]
#[inline(always)]
pub fn psare26(
self,
) -> crate::common::RegisterField<
26,
0x1,
1,
0,
psare::Psare26,
psare::Psare26,
Psare_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
26,
0x1,
1,
0,
psare::Psare26,
psare::Psare26,
Psare_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[doc = "GPT4 and the MSTPCRE.MSTPE27 bit security attribution"]
#[inline(always)]
pub fn psare27(
self,
) -> crate::common::RegisterField<
27,
0x1,
1,
0,
psare::Psare27,
psare::Psare27,
Psare_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
27,
0x1,
1,
0,
psare::Psare27,
psare::Psare27,
Psare_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[doc = "GPT3 and the MSTPCRE.MSTPE28 bit security attribution"]
#[inline(always)]
pub fn psare28(
self,
) -> crate::common::RegisterField<
28,
0x1,
1,
0,
psare::Psare28,
psare::Psare28,
Psare_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
28,
0x1,
1,
0,
psare::Psare28,
psare::Psare28,
Psare_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[doc = "GPT2 and the MSTPCRE.MSTPE29 bit security attribution"]
#[inline(always)]
pub fn psare29(
self,
) -> crate::common::RegisterField<
29,
0x1,
1,
0,
psare::Psare29,
psare::Psare29,
Psare_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
29,
0x1,
1,
0,
psare::Psare29,
psare::Psare29,
Psare_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[doc = "GPT1 and the MSTPCRE.MSTPE30 bit security attribution"]
#[inline(always)]
pub fn psare30(
self,
) -> crate::common::RegisterField<
30,
0x1,
1,
0,
psare::Psare30,
psare::Psare30,
Psare_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
30,
0x1,
1,
0,
psare::Psare30,
psare::Psare30,
Psare_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[doc = "GPT0, GPT_OPS and the MSTPCRE.MSTPE31 bit security attribution"]
#[inline(always)]
pub fn psare31(
self,
) -> crate::common::RegisterField<
31,
0x1,
1,
0,
psare::Psare31,
psare::Psare31,
Psare_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
31,
0x1,
1,
0,
psare::Psare31,
psare::Psare31,
Psare_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
}
impl ::core::default::Default for Psare {
#[inline(always)]
fn default() -> Psare {
<crate::RegValueT<Psare_SPEC> as RegisterValue<_>>::new(4294967295)
}
}
pub mod psare {
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Psare0_SPEC;
pub type Psare0 = crate::EnumBitfieldStruct<u8, Psare0_SPEC>;
impl Psare0 {
#[doc = "Secure"]
pub const _0: Self = Self::new(0);
#[doc = "Non-secure"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Psare1_SPEC;
pub type Psare1 = crate::EnumBitfieldStruct<u8, Psare1_SPEC>;
impl Psare1 {
#[doc = "Secure"]
pub const _0: Self = Self::new(0);
#[doc = "Non-secure"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Psare2_SPEC;
pub type Psare2 = crate::EnumBitfieldStruct<u8, Psare2_SPEC>;
impl Psare2 {
#[doc = "Secure"]
pub const _0: Self = Self::new(0);
#[doc = "Non-secure"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Psare26_SPEC;
pub type Psare26 = crate::EnumBitfieldStruct<u8, Psare26_SPEC>;
impl Psare26 {
#[doc = "Secure"]
pub const _0: Self = Self::new(0);
#[doc = "Non-secure"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Psare27_SPEC;
pub type Psare27 = crate::EnumBitfieldStruct<u8, Psare27_SPEC>;
impl Psare27 {
#[doc = "Secure"]
pub const _0: Self = Self::new(0);
#[doc = "Non-secure"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Psare28_SPEC;
pub type Psare28 = crate::EnumBitfieldStruct<u8, Psare28_SPEC>;
impl Psare28 {
#[doc = "Secure"]
pub const _0: Self = Self::new(0);
#[doc = "Non-secure"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Psare29_SPEC;
pub type Psare29 = crate::EnumBitfieldStruct<u8, Psare29_SPEC>;
impl Psare29 {
#[doc = "Secure"]
pub const _0: Self = Self::new(0);
#[doc = "Non-secure"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Psare30_SPEC;
pub type Psare30 = crate::EnumBitfieldStruct<u8, Psare30_SPEC>;
impl Psare30 {
#[doc = "Secure"]
pub const _0: Self = Self::new(0);
#[doc = "Non-secure"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Psare31_SPEC;
pub type Psare31 = crate::EnumBitfieldStruct<u8, Psare31_SPEC>;
impl Psare31 {
#[doc = "Secure"]
pub const _0: Self = Self::new(0);
#[doc = "Non-secure"]
pub const _1: Self = Self::new(1);
}
}
#[doc(hidden)]
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct Mssar_SPEC;
impl crate::sealed::RegSpec for Mssar_SPEC {
type DataType = u32;
}
#[doc = "Module Stop Security Attribution Register"]
pub type Mssar = crate::RegValueT<Mssar_SPEC>;
impl Mssar {
#[doc = "The MSTPCRC.MSTPC14 bit security attribution"]
#[inline(always)]
pub fn mssar0(
self,
) -> crate::common::RegisterField<
0,
0x1,
1,
0,
mssar::Mssar0,
mssar::Mssar0,
Mssar_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
0,
0x1,
1,
0,
mssar::Mssar0,
mssar::Mssar0,
Mssar_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[doc = "The MSTPCRA.MSTPA22 bit security attribution"]
#[inline(always)]
pub fn mssar1(
self,
) -> crate::common::RegisterField<
1,
0x1,
1,
0,
mssar::Mssar1,
mssar::Mssar1,
Mssar_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
1,
0x1,
1,
0,
mssar::Mssar1,
mssar::Mssar1,
Mssar_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[doc = "The MSTPCRA.MSTPA7 bit security attribution"]
#[inline(always)]
pub fn mssar2(
self,
) -> crate::common::RegisterField<
2,
0x1,
1,
0,
mssar::Mssar2,
mssar::Mssar2,
Mssar_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
2,
0x1,
1,
0,
mssar::Mssar2,
mssar::Mssar2,
Mssar_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[doc = "The MSTPCRA.MSTPA0 bit security attribution"]
#[inline(always)]
pub fn mssar3(
self,
) -> crate::common::RegisterField<
3,
0x1,
1,
0,
mssar::Mssar3,
mssar::Mssar3,
Mssar_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
3,
0x1,
1,
0,
mssar::Mssar3,
mssar::Mssar3,
Mssar_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
}
impl ::core::default::Default for Mssar {
#[inline(always)]
fn default() -> Mssar {
<crate::RegValueT<Mssar_SPEC> as RegisterValue<_>>::new(4294967295)
}
}
pub mod mssar {
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Mssar0_SPEC;
pub type Mssar0 = crate::EnumBitfieldStruct<u8, Mssar0_SPEC>;
impl Mssar0 {
#[doc = "Secure"]
pub const _0: Self = Self::new(0);
#[doc = "Non-secure"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Mssar1_SPEC;
pub type Mssar1 = crate::EnumBitfieldStruct<u8, Mssar1_SPEC>;
impl Mssar1 {
#[doc = "Secure"]
pub const _0: Self = Self::new(0);
#[doc = "Non-secure"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Mssar2_SPEC;
pub type Mssar2 = crate::EnumBitfieldStruct<u8, Mssar2_SPEC>;
impl Mssar2 {
#[doc = "Secure"]
pub const _0: Self = Self::new(0);
#[doc = "Non-secure"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Mssar3_SPEC;
pub type Mssar3 = crate::EnumBitfieldStruct<u8, Mssar3_SPEC>;
impl Mssar3 {
#[doc = "Secure"]
pub const _0: Self = Self::new(0);
#[doc = "Non-secure"]
pub const _1: Self = Self::new(1);
}
}
#[doc(hidden)]
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct Cfsamona_SPEC;
impl crate::sealed::RegSpec for Cfsamona_SPEC {
type DataType = u32;
}
#[doc = "Code Flash Security Attribution Register A"]
pub type Cfsamona = crate::RegValueT<Cfsamona_SPEC>;
impl Cfsamona {
#[doc = "Code Flash Secure area 2"]
#[inline(always)]
pub fn cfs2(
self,
) -> crate::common::RegisterField<15, 0x1ff, 1, 0, u16, u16, Cfsamona_SPEC, crate::common::RW>
{
crate::common::RegisterField::<15,0x1ff,1,0,u16,u16,Cfsamona_SPEC,crate::common::RW>::from_register(self,0)
}
}
impl ::core::default::Default for Cfsamona {
#[inline(always)]
fn default() -> Cfsamona {
<crate::RegValueT<Cfsamona_SPEC> as RegisterValue<_>>::new(0)
}
}
#[doc(hidden)]
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct Cfsamonb_SPEC;
impl crate::sealed::RegSpec for Cfsamonb_SPEC {
type DataType = u32;
}
#[doc = "Code Flash Security Attribution Register B"]
pub type Cfsamonb = crate::RegValueT<Cfsamonb_SPEC>;
impl Cfsamonb {
#[doc = "Code Flash Secure area 1"]
#[inline(always)]
pub fn cfs1(
self,
) -> crate::common::RegisterField<10, 0x3fff, 1, 0, u16, u16, Cfsamonb_SPEC, crate::common::RW>
{
crate::common::RegisterField::<10,0x3fff,1,0,u16,u16,Cfsamonb_SPEC,crate::common::RW>::from_register(self,0)
}
}
impl ::core::default::Default for Cfsamonb {
#[inline(always)]
fn default() -> Cfsamonb {
<crate::RegValueT<Cfsamonb_SPEC> as RegisterValue<_>>::new(0)
}
}
#[doc(hidden)]
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct Dfsamon_SPEC;
impl crate::sealed::RegSpec for Dfsamon_SPEC {
type DataType = u32;
}
#[doc = "Data Flash Security Attribution Register"]
pub type Dfsamon = crate::RegValueT<Dfsamon_SPEC>;
impl Dfsamon {
#[doc = "Data flash Secure area"]
#[inline(always)]
pub fn dfs(
self,
) -> crate::common::RegisterField<
10,
0x3f,
1,
0,
dfsamon::Dfs,
dfsamon::Dfs,
Dfsamon_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
10,
0x3f,
1,
0,
dfsamon::Dfs,
dfsamon::Dfs,
Dfsamon_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
}
impl ::core::default::Default for Dfsamon {
#[inline(always)]
fn default() -> Dfsamon {
<crate::RegValueT<Dfsamon_SPEC> as RegisterValue<_>>::new(64512)
}
}
pub mod dfsamon {
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Dfs_SPEC;
pub type Dfs = crate::EnumBitfieldStruct<u8, Dfs_SPEC>;
impl Dfs {
#[doc = "0 KB"]
pub const _0_X_00: Self = Self::new(0);
#[doc = "1 KB"]
pub const _0_X_01: Self = Self::new(1);
#[doc = "2 KB"]
pub const _0_X_02: Self = Self::new(2);
#[doc = "3 KB"]
pub const _0_X_03: Self = Self::new(3);
#[doc = "4 KB"]
pub const _0_X_04: Self = Self::new(4);
#[doc = "Setting prohibited"]
pub const OTHERS: Self = Self::new(0);
}
}
#[doc(hidden)]
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct Ssamona_SPEC;
impl crate::sealed::RegSpec for Ssamona_SPEC {
type DataType = u32;
}
#[doc = "SRAM Security Attribution Register A"]
pub type Ssamona = crate::RegValueT<Ssamona_SPEC>;
impl Ssamona {
#[doc = "SRAM Secure area 2"]
#[inline(always)]
pub fn ss2(
self,
) -> crate::common::RegisterField<
13,
0xff,
1,
0,
ssamona::Ss2,
ssamona::Ss2,
Ssamona_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
13,
0xff,
1,
0,
ssamona::Ss2,
ssamona::Ss2,
Ssamona_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
}
impl ::core::default::Default for Ssamona {
#[inline(always)]
fn default() -> Ssamona {
<crate::RegValueT<Ssamona_SPEC> as RegisterValue<_>>::new(2088960)
}
}
pub mod ssamona {
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Ss2_SPEC;
pub type Ss2 = crate::EnumBitfieldStruct<u8, Ss2_SPEC>;
impl Ss2 {
#[doc = "0 KB"]
pub const _0_X_000: Self = Self::new(0);
#[doc = "8 KB"]
pub const _0_X_001: Self = Self::new(1);
#[doc = "16 KB"]
pub const _0_X_002: Self = Self::new(2);
#[doc = "24 KB"]
pub const _0_X_003: Self = Self::new(3);
#[doc = "32 KB"]
pub const _0_X_004: Self = Self::new(4);
#[doc = "40 KB"]
pub const _0_X_005: Self = Self::new(5);
#[doc = "Setting prohibited"]
pub const OTHERS: Self = Self::new(0);
}
}
#[doc(hidden)]
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct Ssamonb_SPEC;
impl crate::sealed::RegSpec for Ssamonb_SPEC {
type DataType = u32;
}
#[doc = "SRAM Security Attribution Register B"]
pub type Ssamonb = crate::RegValueT<Ssamonb_SPEC>;
impl Ssamonb {
#[doc = "SRAM secure area 1"]
#[inline(always)]
pub fn ss1(
self,
) -> crate::common::RegisterField<10, 0x7ff, 1, 0, u16, u16, Ssamonb_SPEC, crate::common::RW>
{
crate::common::RegisterField::<10,0x7ff,1,0,u16,u16,Ssamonb_SPEC,crate::common::RW>::from_register(self,0)
}
}
impl ::core::default::Default for Ssamonb {
#[inline(always)]
fn default() -> Ssamonb {
<crate::RegValueT<Ssamonb_SPEC> as RegisterValue<_>>::new(2096128)
}
}