#![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"Module Stop Control"]
unsafe impl ::core::marker::Send for super::Mstp {}
unsafe impl ::core::marker::Sync for super::Mstp {}
impl super::Mstp {
#[allow(unused)]
#[inline(always)]
pub(crate) const fn _svd2pac_as_ptr(&self) -> *mut u8 {
self.ptr
}
#[inline(always)]
pub const fn mstpcrb(
&self,
) -> &'static crate::common::Reg<self::Mstpcrb_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Mstpcrb_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(0usize),
)
}
}
#[inline(always)]
pub const fn mstpcrc(
&self,
) -> &'static crate::common::Reg<self::Mstpcrc_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Mstpcrc_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(4usize),
)
}
}
#[inline(always)]
pub const fn mstpcrd(
&self,
) -> &'static crate::common::Reg<self::Mstpcrd_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Mstpcrd_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(8usize),
)
}
}
}
#[doc(hidden)]
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct Mstpcrb_SPEC;
impl crate::sealed::RegSpec for Mstpcrb_SPEC {
type DataType = u32;
}
pub type Mstpcrb = crate::RegValueT<Mstpcrb_SPEC>;
impl Mstpcrb {
#[inline(always)]
pub fn mstpb6(
self,
) -> crate::common::RegisterField<
6,
0x1,
1,
0,
mstpcrb::Mstpb6,
mstpcrb::Mstpb6,
Mstpcrb_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
6,
0x1,
1,
0,
mstpcrb::Mstpb6,
mstpcrb::Mstpb6,
Mstpcrb_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[inline(always)]
pub fn mstpb7(
self,
) -> crate::common::RegisterField<
7,
0x1,
1,
0,
mstpcrb::Mstpb7,
mstpcrb::Mstpb7,
Mstpcrb_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
7,
0x1,
1,
0,
mstpcrb::Mstpb7,
mstpcrb::Mstpb7,
Mstpcrb_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[inline(always)]
pub fn mstpb10(
self,
) -> crate::common::RegisterField<
10,
0x1,
1,
0,
mstpcrb::Mstpb10,
mstpcrb::Mstpb10,
Mstpcrb_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
10,
0x1,
1,
0,
mstpcrb::Mstpb10,
mstpcrb::Mstpb10,
Mstpcrb_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[inline(always)]
pub fn mstpb15(
self,
) -> crate::common::RegisterField<
15,
0x1,
1,
0,
mstpcrb::Mstpb15,
mstpcrb::Mstpb15,
Mstpcrb_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
15,
0x1,
1,
0,
mstpcrb::Mstpb15,
mstpcrb::Mstpb15,
Mstpcrb_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
}
impl ::core::default::Default for Mstpcrb {
#[inline(always)]
fn default() -> Mstpcrb {
<crate::RegValueT<Mstpcrb_SPEC> as RegisterValue<_>>::new(4294967295)
}
}
pub mod mstpcrb {
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Mstpb6_SPEC;
pub type Mstpb6 = crate::EnumBitfieldStruct<u8, Mstpb6_SPEC>;
impl Mstpb6 {
pub const _0: Self = Self::new(0);
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Mstpb7_SPEC;
pub type Mstpb7 = crate::EnumBitfieldStruct<u8, Mstpb7_SPEC>;
impl Mstpb7 {
pub const _0: Self = Self::new(0);
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Mstpb10_SPEC;
pub type Mstpb10 = crate::EnumBitfieldStruct<u8, Mstpb10_SPEC>;
impl Mstpb10 {
pub const _0: Self = Self::new(0);
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Mstpb15_SPEC;
pub type Mstpb15 = crate::EnumBitfieldStruct<u8, Mstpb15_SPEC>;
impl Mstpb15 {
pub const _0: Self = Self::new(0);
pub const _1: Self = Self::new(1);
}
}
#[doc(hidden)]
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct Mstpcrc_SPEC;
impl crate::sealed::RegSpec for Mstpcrc_SPEC {
type DataType = u32;
}
pub type Mstpcrc = crate::RegValueT<Mstpcrc_SPEC>;
impl Mstpcrc {
#[inline(always)]
pub fn mstpc1(
self,
) -> crate::common::RegisterField<
1,
0x1,
1,
0,
mstpcrc::Mstpc1,
mstpcrc::Mstpc1,
Mstpcrc_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
1,
0x1,
1,
0,
mstpcrc::Mstpc1,
mstpcrc::Mstpc1,
Mstpcrc_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[inline(always)]
pub fn mstpc14(
self,
) -> crate::common::RegisterField<
14,
0x1,
1,
0,
mstpcrc::Mstpc14,
mstpcrc::Mstpc14,
Mstpcrc_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
14,
0x1,
1,
0,
mstpcrc::Mstpc14,
mstpcrc::Mstpc14,
Mstpcrc_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[inline(always)]
pub fn mstpc28(
self,
) -> crate::common::RegisterField<
28,
0x1,
1,
0,
mstpcrc::Mstpc28,
mstpcrc::Mstpc28,
Mstpcrc_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
28,
0x1,
1,
0,
mstpcrc::Mstpc28,
mstpcrc::Mstpc28,
Mstpcrc_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
}
impl ::core::default::Default for Mstpcrc {
#[inline(always)]
fn default() -> Mstpcrc {
<crate::RegValueT<Mstpcrc_SPEC> as RegisterValue<_>>::new(4294967295)
}
}
pub mod mstpcrc {
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Mstpc1_SPEC;
pub type Mstpc1 = crate::EnumBitfieldStruct<u8, Mstpc1_SPEC>;
impl Mstpc1 {
pub const _0: Self = Self::new(0);
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Mstpc14_SPEC;
pub type Mstpc14 = crate::EnumBitfieldStruct<u8, Mstpc14_SPEC>;
impl Mstpc14 {
pub const _0: Self = Self::new(0);
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Mstpc28_SPEC;
pub type Mstpc28 = crate::EnumBitfieldStruct<u8, Mstpc28_SPEC>;
impl Mstpc28 {
pub const _0: Self = Self::new(0);
pub const _1: Self = Self::new(1);
}
}
#[doc(hidden)]
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct Mstpcrd_SPEC;
impl crate::sealed::RegSpec for Mstpcrd_SPEC {
type DataType = u32;
}
pub type Mstpcrd = crate::RegValueT<Mstpcrd_SPEC>;
impl Mstpcrd {
#[inline(always)]
pub fn mstpd0(
self,
) -> crate::common::RegisterField<
0,
0x1,
1,
0,
mstpcrd::Mstpd0,
mstpcrd::Mstpd0,
Mstpcrd_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
0,
0x1,
1,
0,
mstpcrd::Mstpd0,
mstpcrd::Mstpd0,
Mstpcrd_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[inline(always)]
pub fn mstpd4(
self,
) -> crate::common::RegisterField<
4,
0x1,
1,
0,
mstpcrd::Mstpd4,
mstpcrd::Mstpd4,
Mstpcrd_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
4,
0x1,
1,
0,
mstpcrd::Mstpd4,
mstpcrd::Mstpd4,
Mstpcrd_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[inline(always)]
pub fn mstpd16(
self,
) -> crate::common::RegisterField<
16,
0x1,
1,
0,
mstpcrd::Mstpd16,
mstpcrd::Mstpd16,
Mstpcrd_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
16,
0x1,
1,
0,
mstpcrd::Mstpd16,
mstpcrd::Mstpd16,
Mstpcrd_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[inline(always)]
pub fn mstpd23(
self,
) -> crate::common::RegisterField<
23,
0x1,
1,
0,
mstpcrd::Mstpd23,
mstpcrd::Mstpd23,
Mstpcrd_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
23,
0x1,
1,
0,
mstpcrd::Mstpd23,
mstpcrd::Mstpd23,
Mstpcrd_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
}
impl ::core::default::Default for Mstpcrd {
#[inline(always)]
fn default() -> Mstpcrd {
<crate::RegValueT<Mstpcrd_SPEC> as RegisterValue<_>>::new(4294967295)
}
}
pub mod mstpcrd {
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Mstpd0_SPEC;
pub type Mstpd0 = crate::EnumBitfieldStruct<u8, Mstpd0_SPEC>;
impl Mstpd0 {
pub const _0: Self = Self::new(0);
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Mstpd4_SPEC;
pub type Mstpd4 = crate::EnumBitfieldStruct<u8, Mstpd4_SPEC>;
impl Mstpd4 {
pub const _0: Self = Self::new(0);
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Mstpd16_SPEC;
pub type Mstpd16 = crate::EnumBitfieldStruct<u8, Mstpd16_SPEC>;
impl Mstpd16 {
pub const _0: Self = Self::new(0);
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Mstpd23_SPEC;
pub type Mstpd23 = crate::EnumBitfieldStruct<u8, Mstpd23_SPEC>;
impl Mstpd23 {
pub const _0: Self = Self::new(0);
pub const _1: Self = Self::new(1);
}
}