#![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"System Control"]
unsafe impl ::core::marker::Send for super::Sysc {}
unsafe impl ::core::marker::Sync for super::Sysc {}
impl super::Sysc {
#[allow(unused)]
#[inline(always)]
pub(crate) const fn _svd2pac_as_ptr(&self) -> *mut u8 {
self.ptr
}
#[inline(always)]
pub const fn sbycr(&self) -> &'static crate::common::Reg<self::Sbycr_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Sbycr_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(12usize),
)
}
}
#[inline(always)]
pub const fn mstpcra(
&self,
) -> &'static crate::common::Reg<self::Mstpcra_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Mstpcra_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(28usize),
)
}
}
#[inline(always)]
pub const fn sckdivcr(
&self,
) -> &'static crate::common::Reg<self::Sckdivcr_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Sckdivcr_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(32usize),
)
}
}
#[inline(always)]
pub const fn sckscr(
&self,
) -> &'static crate::common::Reg<self::Sckscr_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Sckscr_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(38usize),
)
}
}
#[inline(always)]
pub const fn memwait(
&self,
) -> &'static crate::common::Reg<self::Memwait_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Memwait_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(49usize),
)
}
}
#[inline(always)]
pub const fn mosccr(
&self,
) -> &'static crate::common::Reg<self::Mosccr_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Mosccr_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(50usize),
)
}
}
#[inline(always)]
pub const fn hococr(
&self,
) -> &'static crate::common::Reg<self::Hococr_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Hococr_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(54usize),
)
}
}
#[inline(always)]
pub const fn mococr(
&self,
) -> &'static crate::common::Reg<self::Mococr_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Mococr_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(56usize),
)
}
}
#[inline(always)]
pub const fn oscsf(&self) -> &'static crate::common::Reg<self::Oscsf_SPEC, crate::common::R> {
unsafe {
crate::common::Reg::<self::Oscsf_SPEC, crate::common::R>::from_ptr(
self._svd2pac_as_ptr().add(60usize),
)
}
}
#[inline(always)]
pub const fn ckocr(&self) -> &'static crate::common::Reg<self::Ckocr_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Ckocr_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(62usize),
)
}
}
#[inline(always)]
pub const fn ostdcr(
&self,
) -> &'static crate::common::Reg<self::Ostdcr_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Ostdcr_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(64usize),
)
}
}
#[inline(always)]
pub const fn ostdsr(
&self,
) -> &'static crate::common::Reg<self::Ostdsr_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Ostdsr_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(65usize),
)
}
}
#[inline(always)]
pub const fn lpopt(&self) -> &'static crate::common::Reg<self::Lpopt_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Lpopt_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(76usize),
)
}
}
#[inline(always)]
pub const fn mocoutcr(
&self,
) -> &'static crate::common::Reg<self::Mocoutcr_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Mocoutcr_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(97usize),
)
}
}
#[inline(always)]
pub const fn hocoutcr(
&self,
) -> &'static crate::common::Reg<self::Hocoutcr_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Hocoutcr_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(98usize),
)
}
}
#[inline(always)]
pub const fn snzcr(&self) -> &'static crate::common::Reg<self::Snzcr_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Snzcr_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(146usize),
)
}
}
#[inline(always)]
pub const fn snzedcr0(
&self,
) -> &'static crate::common::Reg<self::Snzedcr0_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Snzedcr0_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(148usize),
)
}
}
#[inline(always)]
pub const fn snzreqcr0(
&self,
) -> &'static crate::common::Reg<self::Snzreqcr0_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Snzreqcr0_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(152usize),
)
}
}
#[inline(always)]
pub const fn psmcr(&self) -> &'static crate::common::Reg<self::Psmcr_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Psmcr_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(159usize),
)
}
}
#[inline(always)]
pub const fn opccr(&self) -> &'static crate::common::Reg<self::Opccr_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Opccr_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(160usize),
)
}
}
#[inline(always)]
pub const fn moscwtcr(
&self,
) -> &'static crate::common::Reg<self::Moscwtcr_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Moscwtcr_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(162usize),
)
}
}
#[inline(always)]
pub const fn hocowtcr(
&self,
) -> &'static crate::common::Reg<self::Hocowtcr_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Hocowtcr_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(165usize),
)
}
}
#[inline(always)]
pub const fn sopccr(
&self,
) -> &'static crate::common::Reg<self::Sopccr_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Sopccr_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(170usize),
)
}
}
#[inline(always)]
pub const fn rstsr1(
&self,
) -> &'static crate::common::Reg<self::Rstsr1_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Rstsr1_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(192usize),
)
}
}
#[inline(always)]
pub const fn lvd1cr1(
&self,
) -> &'static crate::common::Reg<self::Lvd1Cr1_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Lvd1Cr1_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(224usize),
)
}
}
#[inline(always)]
pub const fn lvd1sr(
&self,
) -> &'static crate::common::Reg<self::Lvd1Sr_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Lvd1Sr_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(225usize),
)
}
}
#[inline(always)]
pub const fn lvd2cr1(
&self,
) -> &'static crate::common::Reg<self::Lvd2Cr1_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Lvd2Cr1_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(226usize),
)
}
}
#[inline(always)]
pub const fn lvd2sr(
&self,
) -> &'static crate::common::Reg<self::Lvd2Sr_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Lvd2Sr_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(227usize),
)
}
}
#[inline(always)]
pub const fn prcr(&self) -> &'static crate::common::Reg<self::Prcr_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Prcr_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(1022usize),
)
}
}
#[inline(always)]
pub const fn syocdcr(
&self,
) -> &'static crate::common::Reg<self::Syocdcr_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Syocdcr_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(1038usize),
)
}
}
#[inline(always)]
pub const fn rstsr0(
&self,
) -> &'static crate::common::Reg<self::Rstsr0_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Rstsr0_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(1040usize),
)
}
}
#[inline(always)]
pub const fn rstsr2(
&self,
) -> &'static crate::common::Reg<self::Rstsr2_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Rstsr2_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(1041usize),
)
}
}
#[inline(always)]
pub const fn momcr(&self) -> &'static crate::common::Reg<self::Momcr_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Momcr_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(1043usize),
)
}
}
#[inline(always)]
pub const fn lvcmpcr(
&self,
) -> &'static crate::common::Reg<self::Lvcmpcr_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Lvcmpcr_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(1047usize),
)
}
}
#[inline(always)]
pub const fn lvdlvlr(
&self,
) -> &'static crate::common::Reg<self::Lvdlvlr_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Lvdlvlr_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(1048usize),
)
}
}
#[inline(always)]
pub const fn lvd1cr0(
&self,
) -> &'static crate::common::Reg<self::Lvd1Cr0_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Lvd1Cr0_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(1050usize),
)
}
}
#[inline(always)]
pub const fn lvd2cr0(
&self,
) -> &'static crate::common::Reg<self::Lvd2Cr0_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Lvd2Cr0_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(1051usize),
)
}
}
#[inline(always)]
pub const fn sosccr(
&self,
) -> &'static crate::common::Reg<self::Sosccr_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Sosccr_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(1152usize),
)
}
}
#[inline(always)]
pub const fn somcr(&self) -> &'static crate::common::Reg<self::Somcr_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Somcr_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(1153usize),
)
}
}
#[inline(always)]
pub const fn somrg(&self) -> &'static crate::common::Reg<self::Somrg_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Somrg_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(1154usize),
)
}
}
#[inline(always)]
pub const fn lococr(
&self,
) -> &'static crate::common::Reg<self::Lococr_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Lococr_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(1168usize),
)
}
}
#[inline(always)]
pub const fn locoutcr(
&self,
) -> &'static crate::common::Reg<self::Locoutcr_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Locoutcr_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(1170usize),
)
}
}
}
#[doc(hidden)]
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct Sbycr_SPEC;
impl crate::sealed::RegSpec for Sbycr_SPEC {
type DataType = u16;
}
pub type Sbycr = crate::RegValueT<Sbycr_SPEC>;
impl Sbycr {
#[inline(always)]
pub fn ssby(
self,
) -> crate::common::RegisterField<
15,
0x1,
1,
0,
sbycr::Ssby,
sbycr::Ssby,
Sbycr_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
15,
0x1,
1,
0,
sbycr::Ssby,
sbycr::Ssby,
Sbycr_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
}
impl ::core::default::Default for Sbycr {
#[inline(always)]
fn default() -> Sbycr {
<crate::RegValueT<Sbycr_SPEC> as RegisterValue<_>>::new(0)
}
}
pub mod sbycr {
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Ssby_SPEC;
pub type Ssby = crate::EnumBitfieldStruct<u8, Ssby_SPEC>;
impl Ssby {
pub const _0: Self = Self::new(0);
pub const _1: Self = Self::new(1);
}
}
#[doc(hidden)]
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct Mstpcra_SPEC;
impl crate::sealed::RegSpec for Mstpcra_SPEC {
type DataType = u32;
}
pub type Mstpcra = crate::RegValueT<Mstpcra_SPEC>;
impl Mstpcra {
#[inline(always)]
pub fn mstpa22(
self,
) -> crate::common::RegisterField<
22,
0x1,
1,
0,
mstpcra::Mstpa22,
mstpcra::Mstpa22,
Mstpcra_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
22,
0x1,
1,
0,
mstpcra::Mstpa22,
mstpcra::Mstpa22,
Mstpcra_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
}
impl ::core::default::Default for Mstpcra {
#[inline(always)]
fn default() -> Mstpcra {
<crate::RegValueT<Mstpcra_SPEC> as RegisterValue<_>>::new(4290772991)
}
}
pub mod mstpcra {
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Mstpa22_SPEC;
pub type Mstpa22 = crate::EnumBitfieldStruct<u8, Mstpa22_SPEC>;
impl Mstpa22 {
pub const _0: Self = Self::new(0);
pub const _1: Self = Self::new(1);
}
}
#[doc(hidden)]
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct Sckdivcr_SPEC;
impl crate::sealed::RegSpec for Sckdivcr_SPEC {
type DataType = u32;
}
pub type Sckdivcr = crate::RegValueT<Sckdivcr_SPEC>;
impl Sckdivcr {
#[inline(always)]
pub fn pckd(
self,
) -> crate::common::RegisterField<
0,
0x7,
1,
0,
sckdivcr::Pckd,
sckdivcr::Pckd,
Sckdivcr_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
0,
0x7,
1,
0,
sckdivcr::Pckd,
sckdivcr::Pckd,
Sckdivcr_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[inline(always)]
pub fn pckb(
self,
) -> crate::common::RegisterField<
8,
0x7,
1,
0,
sckdivcr::Pckb,
sckdivcr::Pckb,
Sckdivcr_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
8,
0x7,
1,
0,
sckdivcr::Pckb,
sckdivcr::Pckb,
Sckdivcr_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[inline(always)]
pub fn ick(
self,
) -> crate::common::RegisterField<
24,
0x7,
1,
0,
sckdivcr::Ick,
sckdivcr::Ick,
Sckdivcr_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
24,
0x7,
1,
0,
sckdivcr::Ick,
sckdivcr::Ick,
Sckdivcr_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
}
impl ::core::default::Default for Sckdivcr {
#[inline(always)]
fn default() -> Sckdivcr {
<crate::RegValueT<Sckdivcr_SPEC> as RegisterValue<_>>::new(67109892)
}
}
pub mod sckdivcr {
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Pckd_SPEC;
pub type Pckd = crate::EnumBitfieldStruct<u8, Pckd_SPEC>;
impl Pckd {
pub const _000: Self = Self::new(0);
pub const _001: Self = Self::new(1);
pub const _010: Self = Self::new(2);
pub const _011: Self = Self::new(3);
pub const _100: Self = Self::new(4);
pub const _101: Self = Self::new(5);
pub const _110: Self = Self::new(6);
pub const OTHERS: Self = Self::new(0);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Pckb_SPEC;
pub type Pckb = crate::EnumBitfieldStruct<u8, Pckb_SPEC>;
impl Pckb {
pub const _000: Self = Self::new(0);
pub const _001: Self = Self::new(1);
pub const _010: Self = Self::new(2);
pub const _011: Self = Self::new(3);
pub const _100: Self = Self::new(4);
pub const _101: Self = Self::new(5);
pub const _110: Self = Self::new(6);
pub const OTHERS: Self = Self::new(0);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Ick_SPEC;
pub type Ick = crate::EnumBitfieldStruct<u8, Ick_SPEC>;
impl Ick {
pub const _000: Self = Self::new(0);
pub const _001: Self = Self::new(1);
pub const _010: Self = Self::new(2);
pub const _011: Self = Self::new(3);
pub const _100: Self = Self::new(4);
pub const _101: Self = Self::new(5);
pub const _110: Self = Self::new(6);
pub const OTHERS: Self = Self::new(0);
}
}
#[doc(hidden)]
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct Sckscr_SPEC;
impl crate::sealed::RegSpec for Sckscr_SPEC {
type DataType = u8;
}
pub type Sckscr = crate::RegValueT<Sckscr_SPEC>;
impl Sckscr {
#[inline(always)]
pub fn cksel(
self,
) -> crate::common::RegisterField<
0,
0x7,
1,
0,
sckscr::Cksel,
sckscr::Cksel,
Sckscr_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
0,
0x7,
1,
0,
sckscr::Cksel,
sckscr::Cksel,
Sckscr_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
}
impl ::core::default::Default for Sckscr {
#[inline(always)]
fn default() -> Sckscr {
<crate::RegValueT<Sckscr_SPEC> as RegisterValue<_>>::new(1)
}
}
pub mod sckscr {
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Cksel_SPEC;
pub type Cksel = crate::EnumBitfieldStruct<u8, Cksel_SPEC>;
impl Cksel {
pub const _000: Self = Self::new(0);
pub const _001: Self = Self::new(1);
pub const _010: Self = Self::new(2);
pub const _011: Self = Self::new(3);
pub const _100: Self = Self::new(4);
pub const _101: Self = Self::new(5);
pub const _110: Self = Self::new(6);
pub const _111: Self = Self::new(7);
}
}
#[doc(hidden)]
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct Memwait_SPEC;
impl crate::sealed::RegSpec for Memwait_SPEC {
type DataType = u8;
}
pub type Memwait = crate::RegValueT<Memwait_SPEC>;
impl Memwait {
#[inline(always)]
pub fn memwait(
self,
) -> crate::common::RegisterField<
0,
0x1,
1,
0,
memwait::Memwait,
memwait::Memwait,
Memwait_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
0,
0x1,
1,
0,
memwait::Memwait,
memwait::Memwait,
Memwait_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
}
impl ::core::default::Default for Memwait {
#[inline(always)]
fn default() -> Memwait {
<crate::RegValueT<Memwait_SPEC> as RegisterValue<_>>::new(0)
}
}
pub mod memwait {
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Memwait_SPEC;
pub type Memwait = crate::EnumBitfieldStruct<u8, Memwait_SPEC>;
impl Memwait {
pub const _0: Self = Self::new(0);
pub const _1: Self = Self::new(1);
}
}
#[doc(hidden)]
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct Mosccr_SPEC;
impl crate::sealed::RegSpec for Mosccr_SPEC {
type DataType = u8;
}
pub type Mosccr = crate::RegValueT<Mosccr_SPEC>;
impl Mosccr {
#[inline(always)]
pub fn mostp(
self,
) -> crate::common::RegisterField<
0,
0x1,
1,
0,
mosccr::Mostp,
mosccr::Mostp,
Mosccr_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
0,
0x1,
1,
0,
mosccr::Mostp,
mosccr::Mostp,
Mosccr_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
}
impl ::core::default::Default for Mosccr {
#[inline(always)]
fn default() -> Mosccr {
<crate::RegValueT<Mosccr_SPEC> as RegisterValue<_>>::new(1)
}
}
pub mod mosccr {
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Mostp_SPEC;
pub type Mostp = crate::EnumBitfieldStruct<u8, Mostp_SPEC>;
impl Mostp {
pub const _0: Self = Self::new(0);
pub const _1: Self = Self::new(1);
}
}
#[doc(hidden)]
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct Hococr_SPEC;
impl crate::sealed::RegSpec for Hococr_SPEC {
type DataType = u8;
}
pub type Hococr = crate::RegValueT<Hococr_SPEC>;
impl Hococr {
#[inline(always)]
pub fn hcstp(
self,
) -> crate::common::RegisterField<
0,
0x1,
1,
0,
hococr::Hcstp,
hococr::Hcstp,
Hococr_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
0,
0x1,
1,
0,
hococr::Hcstp,
hococr::Hcstp,
Hococr_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
}
impl ::core::default::Default for Hococr {
#[inline(always)]
fn default() -> Hococr {
<crate::RegValueT<Hococr_SPEC> as RegisterValue<_>>::new(0)
}
}
pub mod hococr {
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Hcstp_SPEC;
pub type Hcstp = crate::EnumBitfieldStruct<u8, Hcstp_SPEC>;
impl Hcstp {
pub const _0: Self = Self::new(0);
pub const _1: Self = Self::new(1);
}
}
#[doc(hidden)]
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct Mococr_SPEC;
impl crate::sealed::RegSpec for Mococr_SPEC {
type DataType = u8;
}
pub type Mococr = crate::RegValueT<Mococr_SPEC>;
impl Mococr {
#[inline(always)]
pub fn mcstp(
self,
) -> crate::common::RegisterField<
0,
0x1,
1,
0,
mococr::Mcstp,
mococr::Mcstp,
Mococr_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
0,
0x1,
1,
0,
mococr::Mcstp,
mococr::Mcstp,
Mococr_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
}
impl ::core::default::Default for Mococr {
#[inline(always)]
fn default() -> Mococr {
<crate::RegValueT<Mococr_SPEC> as RegisterValue<_>>::new(0)
}
}
pub mod mococr {
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Mcstp_SPEC;
pub type Mcstp = crate::EnumBitfieldStruct<u8, Mcstp_SPEC>;
impl Mcstp {
pub const _0: Self = Self::new(0);
pub const _1: Self = Self::new(1);
}
}
#[doc(hidden)]
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct Oscsf_SPEC;
impl crate::sealed::RegSpec for Oscsf_SPEC {
type DataType = u8;
}
pub type Oscsf = crate::RegValueT<Oscsf_SPEC>;
impl Oscsf {
#[inline(always)]
pub fn hocosf(
self,
) -> crate::common::RegisterField<
0,
0x1,
1,
0,
oscsf::Hocosf,
oscsf::Hocosf,
Oscsf_SPEC,
crate::common::R,
> {
crate::common::RegisterField::<
0,
0x1,
1,
0,
oscsf::Hocosf,
oscsf::Hocosf,
Oscsf_SPEC,
crate::common::R,
>::from_register(self, 0)
}
#[inline(always)]
pub fn moscsf(
self,
) -> crate::common::RegisterField<
3,
0x1,
1,
0,
oscsf::Moscsf,
oscsf::Moscsf,
Oscsf_SPEC,
crate::common::R,
> {
crate::common::RegisterField::<
3,
0x1,
1,
0,
oscsf::Moscsf,
oscsf::Moscsf,
Oscsf_SPEC,
crate::common::R,
>::from_register(self, 0)
}
}
impl ::core::default::Default for Oscsf {
#[inline(always)]
fn default() -> Oscsf {
<crate::RegValueT<Oscsf_SPEC> as RegisterValue<_>>::new(0)
}
}
pub mod oscsf {
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Hocosf_SPEC;
pub type Hocosf = crate::EnumBitfieldStruct<u8, Hocosf_SPEC>;
impl Hocosf {
pub const _0: Self = Self::new(0);
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Moscsf_SPEC;
pub type Moscsf = crate::EnumBitfieldStruct<u8, Moscsf_SPEC>;
impl Moscsf {
pub const _0: Self = Self::new(0);
pub const _1: Self = Self::new(1);
}
}
#[doc(hidden)]
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct Ckocr_SPEC;
impl crate::sealed::RegSpec for Ckocr_SPEC {
type DataType = u8;
}
pub type Ckocr = crate::RegValueT<Ckocr_SPEC>;
impl Ckocr {
#[inline(always)]
pub fn ckosel(
self,
) -> crate::common::RegisterField<
0,
0x7,
1,
0,
ckocr::Ckosel,
ckocr::Ckosel,
Ckocr_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
0,
0x7,
1,
0,
ckocr::Ckosel,
ckocr::Ckosel,
Ckocr_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[inline(always)]
pub fn ckodiv(
self,
) -> crate::common::RegisterField<
4,
0x7,
1,
0,
ckocr::Ckodiv,
ckocr::Ckodiv,
Ckocr_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
4,
0x7,
1,
0,
ckocr::Ckodiv,
ckocr::Ckodiv,
Ckocr_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[inline(always)]
pub fn ckoen(
self,
) -> crate::common::RegisterField<
7,
0x1,
1,
0,
ckocr::Ckoen,
ckocr::Ckoen,
Ckocr_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
7,
0x1,
1,
0,
ckocr::Ckoen,
ckocr::Ckoen,
Ckocr_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
}
impl ::core::default::Default for Ckocr {
#[inline(always)]
fn default() -> Ckocr {
<crate::RegValueT<Ckocr_SPEC> as RegisterValue<_>>::new(0)
}
}
pub mod ckocr {
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Ckosel_SPEC;
pub type Ckosel = crate::EnumBitfieldStruct<u8, Ckosel_SPEC>;
impl Ckosel {
pub const _000: Self = Self::new(0);
pub const _001: Self = Self::new(1);
pub const _010: Self = Self::new(2);
pub const _011: Self = Self::new(3);
pub const _100: Self = Self::new(4);
pub const _101: Self = Self::new(5);
pub const OTHERS: Self = Self::new(0);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Ckodiv_SPEC;
pub type Ckodiv = crate::EnumBitfieldStruct<u8, Ckodiv_SPEC>;
impl Ckodiv {
pub const _000: Self = Self::new(0);
pub const _001: Self = Self::new(1);
pub const _010: Self = Self::new(2);
pub const _011: Self = Self::new(3);
pub const _100: Self = Self::new(4);
pub const _101: Self = Self::new(5);
pub const _110: Self = Self::new(6);
pub const _111: Self = Self::new(7);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Ckoen_SPEC;
pub type Ckoen = crate::EnumBitfieldStruct<u8, Ckoen_SPEC>;
impl Ckoen {
pub const _0: Self = Self::new(0);
pub const _1: Self = Self::new(1);
}
}
#[doc(hidden)]
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct Ostdcr_SPEC;
impl crate::sealed::RegSpec for Ostdcr_SPEC {
type DataType = u8;
}
pub type Ostdcr = crate::RegValueT<Ostdcr_SPEC>;
impl Ostdcr {
#[inline(always)]
pub fn ostdie(
self,
) -> crate::common::RegisterField<
0,
0x1,
1,
0,
ostdcr::Ostdie,
ostdcr::Ostdie,
Ostdcr_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
0,
0x1,
1,
0,
ostdcr::Ostdie,
ostdcr::Ostdie,
Ostdcr_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[inline(always)]
pub fn ostde(
self,
) -> crate::common::RegisterField<
7,
0x1,
1,
0,
ostdcr::Ostde,
ostdcr::Ostde,
Ostdcr_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
7,
0x1,
1,
0,
ostdcr::Ostde,
ostdcr::Ostde,
Ostdcr_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
}
impl ::core::default::Default for Ostdcr {
#[inline(always)]
fn default() -> Ostdcr {
<crate::RegValueT<Ostdcr_SPEC> as RegisterValue<_>>::new(0)
}
}
pub mod ostdcr {
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Ostdie_SPEC;
pub type Ostdie = crate::EnumBitfieldStruct<u8, Ostdie_SPEC>;
impl Ostdie {
pub const _0: Self = Self::new(0);
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Ostde_SPEC;
pub type Ostde = crate::EnumBitfieldStruct<u8, Ostde_SPEC>;
impl Ostde {
pub const _0: Self = Self::new(0);
pub const _1: Self = Self::new(1);
}
}
#[doc(hidden)]
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct Ostdsr_SPEC;
impl crate::sealed::RegSpec for Ostdsr_SPEC {
type DataType = u8;
}
pub type Ostdsr = crate::RegValueT<Ostdsr_SPEC>;
impl Ostdsr {
#[inline(always)]
pub fn ostdf(
self,
) -> crate::common::RegisterField<
0,
0x1,
1,
0,
ostdsr::Ostdf,
ostdsr::Ostdf,
Ostdsr_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
0,
0x1,
1,
0,
ostdsr::Ostdf,
ostdsr::Ostdf,
Ostdsr_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
}
impl ::core::default::Default for Ostdsr {
#[inline(always)]
fn default() -> Ostdsr {
<crate::RegValueT<Ostdsr_SPEC> as RegisterValue<_>>::new(0)
}
}
pub mod ostdsr {
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Ostdf_SPEC;
pub type Ostdf = crate::EnumBitfieldStruct<u8, Ostdf_SPEC>;
impl Ostdf {
pub const _0: Self = Self::new(0);
pub const _1: Self = Self::new(1);
}
}
#[doc(hidden)]
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct Lpopt_SPEC;
impl crate::sealed::RegSpec for Lpopt_SPEC {
type DataType = u8;
}
pub type Lpopt = crate::RegValueT<Lpopt_SPEC>;
impl Lpopt {
#[inline(always)]
pub fn mpudis(
self,
) -> crate::common::RegisterField<
0,
0x1,
1,
0,
lpopt::Mpudis,
lpopt::Mpudis,
Lpopt_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
0,
0x1,
1,
0,
lpopt::Mpudis,
lpopt::Mpudis,
Lpopt_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[inline(always)]
pub fn dclkdis(
self,
) -> crate::common::RegisterField<
1,
0x3,
1,
0,
lpopt::Dclkdis,
lpopt::Dclkdis,
Lpopt_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
1,
0x3,
1,
0,
lpopt::Dclkdis,
lpopt::Dclkdis,
Lpopt_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[inline(always)]
pub fn bpfclkdis(
self,
) -> crate::common::RegisterField<
3,
0x1,
1,
0,
lpopt::Bpfclkdis,
lpopt::Bpfclkdis,
Lpopt_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
3,
0x1,
1,
0,
lpopt::Bpfclkdis,
lpopt::Bpfclkdis,
Lpopt_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[inline(always)]
pub fn lpopten(
self,
) -> crate::common::RegisterField<
7,
0x1,
1,
0,
lpopt::Lpopten,
lpopt::Lpopten,
Lpopt_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
7,
0x1,
1,
0,
lpopt::Lpopten,
lpopt::Lpopten,
Lpopt_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
}
impl ::core::default::Default for Lpopt {
#[inline(always)]
fn default() -> Lpopt {
<crate::RegValueT<Lpopt_SPEC> as RegisterValue<_>>::new(64)
}
}
pub mod lpopt {
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Mpudis_SPEC;
pub type Mpudis = crate::EnumBitfieldStruct<u8, Mpudis_SPEC>;
impl Mpudis {
pub const _0: Self = Self::new(0);
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Dclkdis_SPEC;
pub type Dclkdis = crate::EnumBitfieldStruct<u8, Dclkdis_SPEC>;
impl Dclkdis {
pub const _00: Self = Self::new(0);
pub const OTHERS: Self = Self::new(0);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Bpfclkdis_SPEC;
pub type Bpfclkdis = crate::EnumBitfieldStruct<u8, Bpfclkdis_SPEC>;
impl Bpfclkdis {
pub const _0: Self = Self::new(0);
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Lpopten_SPEC;
pub type Lpopten = crate::EnumBitfieldStruct<u8, Lpopten_SPEC>;
impl Lpopten {
pub const _0: Self = Self::new(0);
pub const _1: Self = Self::new(1);
}
}
#[doc(hidden)]
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct Mocoutcr_SPEC;
impl crate::sealed::RegSpec for Mocoutcr_SPEC {
type DataType = u8;
}
pub type Mocoutcr = crate::RegValueT<Mocoutcr_SPEC>;
impl Mocoutcr {
#[inline(always)]
pub fn mocoutrm(
self,
) -> crate::common::RegisterField<0, 0xff, 1, 0, u8, u8, Mocoutcr_SPEC, crate::common::RW> {
crate::common::RegisterField::<0,0xff,1,0,u8,u8,Mocoutcr_SPEC,crate::common::RW>::from_register(self,0)
}
}
impl ::core::default::Default for Mocoutcr {
#[inline(always)]
fn default() -> Mocoutcr {
<crate::RegValueT<Mocoutcr_SPEC> as RegisterValue<_>>::new(0)
}
}
#[doc(hidden)]
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct Hocoutcr_SPEC;
impl crate::sealed::RegSpec for Hocoutcr_SPEC {
type DataType = u8;
}
pub type Hocoutcr = crate::RegValueT<Hocoutcr_SPEC>;
impl Hocoutcr {
#[inline(always)]
pub fn hocoutrm(
self,
) -> crate::common::RegisterField<0, 0xff, 1, 0, u8, u8, Hocoutcr_SPEC, crate::common::RW> {
crate::common::RegisterField::<0,0xff,1,0,u8,u8,Hocoutcr_SPEC,crate::common::RW>::from_register(self,0)
}
}
impl ::core::default::Default for Hocoutcr {
#[inline(always)]
fn default() -> Hocoutcr {
<crate::RegValueT<Hocoutcr_SPEC> as RegisterValue<_>>::new(0)
}
}
#[doc(hidden)]
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct Snzcr_SPEC;
impl crate::sealed::RegSpec for Snzcr_SPEC {
type DataType = u8;
}
pub type Snzcr = crate::RegValueT<Snzcr_SPEC>;
impl Snzcr {
#[inline(always)]
pub fn rxdreqen(
self,
) -> crate::common::RegisterField<
0,
0x1,
1,
0,
snzcr::Rxdreqen,
snzcr::Rxdreqen,
Snzcr_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
0,
0x1,
1,
0,
snzcr::Rxdreqen,
snzcr::Rxdreqen,
Snzcr_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[inline(always)]
pub fn snzdtcen(
self,
) -> crate::common::RegisterField<
1,
0x1,
1,
0,
snzcr::Snzdtcen,
snzcr::Snzdtcen,
Snzcr_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
1,
0x1,
1,
0,
snzcr::Snzdtcen,
snzcr::Snzdtcen,
Snzcr_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[inline(always)]
pub fn snze(
self,
) -> crate::common::RegisterField<
7,
0x1,
1,
0,
snzcr::Snze,
snzcr::Snze,
Snzcr_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
7,
0x1,
1,
0,
snzcr::Snze,
snzcr::Snze,
Snzcr_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
}
impl ::core::default::Default for Snzcr {
#[inline(always)]
fn default() -> Snzcr {
<crate::RegValueT<Snzcr_SPEC> as RegisterValue<_>>::new(0)
}
}
pub mod snzcr {
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Rxdreqen_SPEC;
pub type Rxdreqen = crate::EnumBitfieldStruct<u8, Rxdreqen_SPEC>;
impl Rxdreqen {
pub const _0: Self = Self::new(0);
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Snzdtcen_SPEC;
pub type Snzdtcen = crate::EnumBitfieldStruct<u8, Snzdtcen_SPEC>;
impl Snzdtcen {
pub const _0: Self = Self::new(0);
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Snze_SPEC;
pub type Snze = crate::EnumBitfieldStruct<u8, Snze_SPEC>;
impl Snze {
pub const _0: Self = Self::new(0);
pub const _1: Self = Self::new(1);
}
}
#[doc(hidden)]
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct Snzedcr0_SPEC;
impl crate::sealed::RegSpec for Snzedcr0_SPEC {
type DataType = u8;
}
pub type Snzedcr0 = crate::RegValueT<Snzedcr0_SPEC>;
impl Snzedcr0 {
#[inline(always)]
pub fn agtunfed(
self,
) -> crate::common::RegisterField<
0,
0x1,
1,
0,
snzedcr0::Agtunfed,
snzedcr0::Agtunfed,
Snzedcr0_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
0,
0x1,
1,
0,
snzedcr0::Agtunfed,
snzedcr0::Agtunfed,
Snzedcr0_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[inline(always)]
pub fn dtczred(
self,
) -> crate::common::RegisterField<
1,
0x1,
1,
0,
snzedcr0::Dtczred,
snzedcr0::Dtczred,
Snzedcr0_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
1,
0x1,
1,
0,
snzedcr0::Dtczred,
snzedcr0::Dtczred,
Snzedcr0_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[inline(always)]
pub fn dtcnzred(
self,
) -> crate::common::RegisterField<
2,
0x1,
1,
0,
snzedcr0::Dtcnzred,
snzedcr0::Dtcnzred,
Snzedcr0_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
2,
0x1,
1,
0,
snzedcr0::Dtcnzred,
snzedcr0::Dtcnzred,
Snzedcr0_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[inline(always)]
pub fn ad0mated(
self,
) -> crate::common::RegisterField<
3,
0x1,
1,
0,
snzedcr0::Ad0Mated,
snzedcr0::Ad0Mated,
Snzedcr0_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
3,
0x1,
1,
0,
snzedcr0::Ad0Mated,
snzedcr0::Ad0Mated,
Snzedcr0_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[inline(always)]
pub fn ad0umted(
self,
) -> crate::common::RegisterField<
4,
0x1,
1,
0,
snzedcr0::Ad0Umted,
snzedcr0::Ad0Umted,
Snzedcr0_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
4,
0x1,
1,
0,
snzedcr0::Ad0Umted,
snzedcr0::Ad0Umted,
Snzedcr0_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[inline(always)]
pub fn sci0umted(
self,
) -> crate::common::RegisterField<
7,
0x1,
1,
0,
snzedcr0::Sci0Umted,
snzedcr0::Sci0Umted,
Snzedcr0_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
7,
0x1,
1,
0,
snzedcr0::Sci0Umted,
snzedcr0::Sci0Umted,
Snzedcr0_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
}
impl ::core::default::Default for Snzedcr0 {
#[inline(always)]
fn default() -> Snzedcr0 {
<crate::RegValueT<Snzedcr0_SPEC> as RegisterValue<_>>::new(0)
}
}
pub mod snzedcr0 {
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Agtunfed_SPEC;
pub type Agtunfed = crate::EnumBitfieldStruct<u8, Agtunfed_SPEC>;
impl Agtunfed {
pub const _0: Self = Self::new(0);
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Dtczred_SPEC;
pub type Dtczred = crate::EnumBitfieldStruct<u8, Dtczred_SPEC>;
impl Dtczred {
pub const _0: Self = Self::new(0);
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Dtcnzred_SPEC;
pub type Dtcnzred = crate::EnumBitfieldStruct<u8, Dtcnzred_SPEC>;
impl Dtcnzred {
pub const _0: Self = Self::new(0);
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Ad0Mated_SPEC;
pub type Ad0Mated = crate::EnumBitfieldStruct<u8, Ad0Mated_SPEC>;
impl Ad0Mated {
pub const _0: Self = Self::new(0);
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Ad0Umted_SPEC;
pub type Ad0Umted = crate::EnumBitfieldStruct<u8, Ad0Umted_SPEC>;
impl Ad0Umted {
pub const _0: Self = Self::new(0);
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Sci0Umted_SPEC;
pub type Sci0Umted = crate::EnumBitfieldStruct<u8, Sci0Umted_SPEC>;
impl Sci0Umted {
pub const _0: Self = Self::new(0);
pub const _1: Self = Self::new(1);
}
}
#[doc(hidden)]
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct Snzreqcr0_SPEC;
impl crate::sealed::RegSpec for Snzreqcr0_SPEC {
type DataType = u32;
}
pub type Snzreqcr0 = crate::RegValueT<Snzreqcr0_SPEC>;
impl Snzreqcr0 {
#[inline(always)]
pub fn snzreqen0(
self,
) -> crate::common::RegisterField<
0,
0x1,
1,
0,
snzreqcr0::Snzreqen0,
snzreqcr0::Snzreqen0,
Snzreqcr0_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
0,
0x1,
1,
0,
snzreqcr0::Snzreqen0,
snzreqcr0::Snzreqen0,
Snzreqcr0_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[inline(always)]
pub fn snzreqen1(
self,
) -> crate::common::RegisterField<
1,
0x1,
1,
0,
snzreqcr0::Snzreqen1,
snzreqcr0::Snzreqen1,
Snzreqcr0_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
1,
0x1,
1,
0,
snzreqcr0::Snzreqen1,
snzreqcr0::Snzreqen1,
Snzreqcr0_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[inline(always)]
pub fn snzreqen2(
self,
) -> crate::common::RegisterField<
2,
0x1,
1,
0,
snzreqcr0::Snzreqen2,
snzreqcr0::Snzreqen2,
Snzreqcr0_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
2,
0x1,
1,
0,
snzreqcr0::Snzreqen2,
snzreqcr0::Snzreqen2,
Snzreqcr0_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[inline(always)]
pub fn snzreqen3(
self,
) -> crate::common::RegisterField<
3,
0x1,
1,
0,
snzreqcr0::Snzreqen3,
snzreqcr0::Snzreqen3,
Snzreqcr0_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
3,
0x1,
1,
0,
snzreqcr0::Snzreqen3,
snzreqcr0::Snzreqen3,
Snzreqcr0_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[inline(always)]
pub fn snzreqen4(
self,
) -> crate::common::RegisterField<
4,
0x1,
1,
0,
snzreqcr0::Snzreqen4,
snzreqcr0::Snzreqen4,
Snzreqcr0_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
4,
0x1,
1,
0,
snzreqcr0::Snzreqen4,
snzreqcr0::Snzreqen4,
Snzreqcr0_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[inline(always)]
pub fn snzreqen5(
self,
) -> crate::common::RegisterField<
5,
0x1,
1,
0,
snzreqcr0::Snzreqen5,
snzreqcr0::Snzreqen5,
Snzreqcr0_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
5,
0x1,
1,
0,
snzreqcr0::Snzreqen5,
snzreqcr0::Snzreqen5,
Snzreqcr0_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[inline(always)]
pub fn snzreqen6(
self,
) -> crate::common::RegisterField<
6,
0x1,
1,
0,
snzreqcr0::Snzreqen6,
snzreqcr0::Snzreqen6,
Snzreqcr0_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
6,
0x1,
1,
0,
snzreqcr0::Snzreqen6,
snzreqcr0::Snzreqen6,
Snzreqcr0_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[inline(always)]
pub fn snzreqen7(
self,
) -> crate::common::RegisterField<
7,
0x1,
1,
0,
snzreqcr0::Snzreqen7,
snzreqcr0::Snzreqen7,
Snzreqcr0_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
7,
0x1,
1,
0,
snzreqcr0::Snzreqen7,
snzreqcr0::Snzreqen7,
Snzreqcr0_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[inline(always)]
pub fn snzreqen17(
self,
) -> crate::common::RegisterField<
17,
0x1,
1,
0,
snzreqcr0::Snzreqen17,
snzreqcr0::Snzreqen17,
Snzreqcr0_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
17,
0x1,
1,
0,
snzreqcr0::Snzreqen17,
snzreqcr0::Snzreqen17,
Snzreqcr0_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[inline(always)]
pub fn snzreqen23(
self,
) -> crate::common::RegisterField<
23,
0x1,
1,
0,
snzreqcr0::Snzreqen23,
snzreqcr0::Snzreqen23,
Snzreqcr0_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
23,
0x1,
1,
0,
snzreqcr0::Snzreqen23,
snzreqcr0::Snzreqen23,
Snzreqcr0_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[inline(always)]
pub fn snzreqen24(
self,
) -> crate::common::RegisterField<
24,
0x1,
1,
0,
snzreqcr0::Snzreqen24,
snzreqcr0::Snzreqen24,
Snzreqcr0_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
24,
0x1,
1,
0,
snzreqcr0::Snzreqen24,
snzreqcr0::Snzreqen24,
Snzreqcr0_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[inline(always)]
pub fn snzreqen25(
self,
) -> crate::common::RegisterField<
25,
0x1,
1,
0,
snzreqcr0::Snzreqen25,
snzreqcr0::Snzreqen25,
Snzreqcr0_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
25,
0x1,
1,
0,
snzreqcr0::Snzreqen25,
snzreqcr0::Snzreqen25,
Snzreqcr0_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[inline(always)]
pub fn snzreqen28(
self,
) -> crate::common::RegisterField<
28,
0x1,
1,
0,
snzreqcr0::Snzreqen28,
snzreqcr0::Snzreqen28,
Snzreqcr0_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
28,
0x1,
1,
0,
snzreqcr0::Snzreqen28,
snzreqcr0::Snzreqen28,
Snzreqcr0_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[inline(always)]
pub fn snzreqen29(
self,
) -> crate::common::RegisterField<
29,
0x1,
1,
0,
snzreqcr0::Snzreqen29,
snzreqcr0::Snzreqen29,
Snzreqcr0_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
29,
0x1,
1,
0,
snzreqcr0::Snzreqen29,
snzreqcr0::Snzreqen29,
Snzreqcr0_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[inline(always)]
pub fn snzreqen30(
self,
) -> crate::common::RegisterField<
30,
0x1,
1,
0,
snzreqcr0::Snzreqen30,
snzreqcr0::Snzreqen30,
Snzreqcr0_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
30,
0x1,
1,
0,
snzreqcr0::Snzreqen30,
snzreqcr0::Snzreqen30,
Snzreqcr0_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
}
impl ::core::default::Default for Snzreqcr0 {
#[inline(always)]
fn default() -> Snzreqcr0 {
<crate::RegValueT<Snzreqcr0_SPEC> as RegisterValue<_>>::new(0)
}
}
pub mod snzreqcr0 {
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Snzreqen0_SPEC;
pub type Snzreqen0 = crate::EnumBitfieldStruct<u8, Snzreqen0_SPEC>;
impl Snzreqen0 {
pub const _0: Self = Self::new(0);
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Snzreqen1_SPEC;
pub type Snzreqen1 = crate::EnumBitfieldStruct<u8, Snzreqen1_SPEC>;
impl Snzreqen1 {
pub const _0: Self = Self::new(0);
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Snzreqen2_SPEC;
pub type Snzreqen2 = crate::EnumBitfieldStruct<u8, Snzreqen2_SPEC>;
impl Snzreqen2 {
pub const _0: Self = Self::new(0);
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Snzreqen3_SPEC;
pub type Snzreqen3 = crate::EnumBitfieldStruct<u8, Snzreqen3_SPEC>;
impl Snzreqen3 {
pub const _0: Self = Self::new(0);
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Snzreqen4_SPEC;
pub type Snzreqen4 = crate::EnumBitfieldStruct<u8, Snzreqen4_SPEC>;
impl Snzreqen4 {
pub const _0: Self = Self::new(0);
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Snzreqen5_SPEC;
pub type Snzreqen5 = crate::EnumBitfieldStruct<u8, Snzreqen5_SPEC>;
impl Snzreqen5 {
pub const _0: Self = Self::new(0);
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Snzreqen6_SPEC;
pub type Snzreqen6 = crate::EnumBitfieldStruct<u8, Snzreqen6_SPEC>;
impl Snzreqen6 {
pub const _0: Self = Self::new(0);
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Snzreqen7_SPEC;
pub type Snzreqen7 = crate::EnumBitfieldStruct<u8, Snzreqen7_SPEC>;
impl Snzreqen7 {
pub const _0: Self = Self::new(0);
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Snzreqen17_SPEC;
pub type Snzreqen17 = crate::EnumBitfieldStruct<u8, Snzreqen17_SPEC>;
impl Snzreqen17 {
pub const _0: Self = Self::new(0);
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Snzreqen23_SPEC;
pub type Snzreqen23 = crate::EnumBitfieldStruct<u8, Snzreqen23_SPEC>;
impl Snzreqen23 {
pub const _0: Self = Self::new(0);
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Snzreqen24_SPEC;
pub type Snzreqen24 = crate::EnumBitfieldStruct<u8, Snzreqen24_SPEC>;
impl Snzreqen24 {
pub const _0: Self = Self::new(0);
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Snzreqen25_SPEC;
pub type Snzreqen25 = crate::EnumBitfieldStruct<u8, Snzreqen25_SPEC>;
impl Snzreqen25 {
pub const _0: Self = Self::new(0);
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Snzreqen28_SPEC;
pub type Snzreqen28 = crate::EnumBitfieldStruct<u8, Snzreqen28_SPEC>;
impl Snzreqen28 {
pub const _0: Self = Self::new(0);
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Snzreqen29_SPEC;
pub type Snzreqen29 = crate::EnumBitfieldStruct<u8, Snzreqen29_SPEC>;
impl Snzreqen29 {
pub const _0: Self = Self::new(0);
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Snzreqen30_SPEC;
pub type Snzreqen30 = crate::EnumBitfieldStruct<u8, Snzreqen30_SPEC>;
impl Snzreqen30 {
pub const _0: Self = Self::new(0);
pub const _1: Self = Self::new(1);
}
}
#[doc(hidden)]
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct Psmcr_SPEC;
impl crate::sealed::RegSpec for Psmcr_SPEC {
type DataType = u8;
}
pub type Psmcr = crate::RegValueT<Psmcr_SPEC>;
impl Psmcr {
#[inline(always)]
pub fn psmc(
self,
) -> crate::common::RegisterField<
0,
0x3,
1,
0,
psmcr::Psmc,
psmcr::Psmc,
Psmcr_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
0,
0x3,
1,
0,
psmcr::Psmc,
psmcr::Psmc,
Psmcr_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
}
impl ::core::default::Default for Psmcr {
#[inline(always)]
fn default() -> Psmcr {
<crate::RegValueT<Psmcr_SPEC> as RegisterValue<_>>::new(0)
}
}
pub mod psmcr {
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Psmc_SPEC;
pub type Psmc = crate::EnumBitfieldStruct<u8, Psmc_SPEC>;
impl Psmc {
pub const _00: Self = Self::new(0);
pub const _01: Self = Self::new(1);
pub const _10: Self = Self::new(2);
pub const _11: Self = Self::new(3);
}
}
#[doc(hidden)]
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct Opccr_SPEC;
impl crate::sealed::RegSpec for Opccr_SPEC {
type DataType = u8;
}
pub type Opccr = crate::RegValueT<Opccr_SPEC>;
impl Opccr {
#[inline(always)]
pub fn opcm(
self,
) -> crate::common::RegisterField<
0,
0x3,
1,
0,
opccr::Opcm,
opccr::Opcm,
Opccr_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
0,
0x3,
1,
0,
opccr::Opcm,
opccr::Opcm,
Opccr_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[inline(always)]
pub fn opcmtsf(
self,
) -> crate::common::RegisterField<
4,
0x1,
1,
0,
opccr::Opcmtsf,
opccr::Opcmtsf,
Opccr_SPEC,
crate::common::R,
> {
crate::common::RegisterField::<
4,
0x1,
1,
0,
opccr::Opcmtsf,
opccr::Opcmtsf,
Opccr_SPEC,
crate::common::R,
>::from_register(self, 0)
}
}
impl ::core::default::Default for Opccr {
#[inline(always)]
fn default() -> Opccr {
<crate::RegValueT<Opccr_SPEC> as RegisterValue<_>>::new(1)
}
}
pub mod opccr {
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Opcm_SPEC;
pub type Opcm = crate::EnumBitfieldStruct<u8, Opcm_SPEC>;
impl Opcm {
pub const _00: Self = Self::new(0);
pub const _01: Self = Self::new(1);
pub const _10: Self = Self::new(2);
pub const _11: Self = Self::new(3);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Opcmtsf_SPEC;
pub type Opcmtsf = crate::EnumBitfieldStruct<u8, Opcmtsf_SPEC>;
impl Opcmtsf {
pub const _0: Self = Self::new(0);
pub const _1: Self = Self::new(1);
}
}
#[doc(hidden)]
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct Moscwtcr_SPEC;
impl crate::sealed::RegSpec for Moscwtcr_SPEC {
type DataType = u8;
}
pub type Moscwtcr = crate::RegValueT<Moscwtcr_SPEC>;
impl Moscwtcr {
#[inline(always)]
pub fn msts(
self,
) -> crate::common::RegisterField<
0,
0xf,
1,
0,
moscwtcr::Msts,
moscwtcr::Msts,
Moscwtcr_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
0,
0xf,
1,
0,
moscwtcr::Msts,
moscwtcr::Msts,
Moscwtcr_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
}
impl ::core::default::Default for Moscwtcr {
#[inline(always)]
fn default() -> Moscwtcr {
<crate::RegValueT<Moscwtcr_SPEC> as RegisterValue<_>>::new(5)
}
}
pub mod moscwtcr {
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Msts_SPEC;
pub type Msts = crate::EnumBitfieldStruct<u8, Msts_SPEC>;
impl Msts {
pub const _0_X_0: Self = Self::new(0);
pub const _0_X_1: Self = Self::new(1);
pub const _0_X_2: Self = Self::new(2);
pub const _0_X_3: Self = Self::new(3);
pub const _0_X_4: Self = Self::new(4);
pub const _0_X_5: Self = Self::new(5);
pub const _0_X_6: Self = Self::new(6);
pub const _0_X_7: Self = Self::new(7);
pub const _0_X_8: Self = Self::new(8);
pub const _0_X_9: Self = Self::new(9);
pub const OTHERS: Self = Self::new(0);
}
}
#[doc(hidden)]
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct Hocowtcr_SPEC;
impl crate::sealed::RegSpec for Hocowtcr_SPEC {
type DataType = u8;
}
pub type Hocowtcr = crate::RegValueT<Hocowtcr_SPEC>;
impl Hocowtcr {
#[inline(always)]
pub fn hsts(
self,
) -> crate::common::RegisterField<
0,
0x7,
1,
0,
hocowtcr::Hsts,
hocowtcr::Hsts,
Hocowtcr_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
0,
0x7,
1,
0,
hocowtcr::Hsts,
hocowtcr::Hsts,
Hocowtcr_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
}
impl ::core::default::Default for Hocowtcr {
#[inline(always)]
fn default() -> Hocowtcr {
<crate::RegValueT<Hocowtcr_SPEC> as RegisterValue<_>>::new(5)
}
}
pub mod hocowtcr {
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Hsts_SPEC;
pub type Hsts = crate::EnumBitfieldStruct<u8, Hsts_SPEC>;
impl Hsts {
pub const _101: Self = Self::new(5);
pub const _011: Self = Self::new(3);
pub const OTHERS: Self = Self::new(0);
}
}
#[doc(hidden)]
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct Sopccr_SPEC;
impl crate::sealed::RegSpec for Sopccr_SPEC {
type DataType = u8;
}
pub type Sopccr = crate::RegValueT<Sopccr_SPEC>;
impl Sopccr {
#[inline(always)]
pub fn sopcm(
self,
) -> crate::common::RegisterField<
0,
0x1,
1,
0,
sopccr::Sopcm,
sopccr::Sopcm,
Sopccr_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
0,
0x1,
1,
0,
sopccr::Sopcm,
sopccr::Sopcm,
Sopccr_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[inline(always)]
pub fn sopcmtsf(
self,
) -> crate::common::RegisterField<
4,
0x1,
1,
0,
sopccr::Sopcmtsf,
sopccr::Sopcmtsf,
Sopccr_SPEC,
crate::common::R,
> {
crate::common::RegisterField::<
4,
0x1,
1,
0,
sopccr::Sopcmtsf,
sopccr::Sopcmtsf,
Sopccr_SPEC,
crate::common::R,
>::from_register(self, 0)
}
}
impl ::core::default::Default for Sopccr {
#[inline(always)]
fn default() -> Sopccr {
<crate::RegValueT<Sopccr_SPEC> as RegisterValue<_>>::new(0)
}
}
pub mod sopccr {
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Sopcm_SPEC;
pub type Sopcm = crate::EnumBitfieldStruct<u8, Sopcm_SPEC>;
impl Sopcm {
pub const _0: Self = Self::new(0);
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Sopcmtsf_SPEC;
pub type Sopcmtsf = crate::EnumBitfieldStruct<u8, Sopcmtsf_SPEC>;
impl Sopcmtsf {
pub const _0: Self = Self::new(0);
pub const _1: Self = Self::new(1);
}
}
#[doc(hidden)]
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct Rstsr1_SPEC;
impl crate::sealed::RegSpec for Rstsr1_SPEC {
type DataType = u16;
}
pub type Rstsr1 = crate::RegValueT<Rstsr1_SPEC>;
impl Rstsr1 {
#[inline(always)]
pub fn iwdtrf(
self,
) -> crate::common::RegisterField<
0,
0x1,
1,
0,
rstsr1::Iwdtrf,
rstsr1::Iwdtrf,
Rstsr1_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
0,
0x1,
1,
0,
rstsr1::Iwdtrf,
rstsr1::Iwdtrf,
Rstsr1_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[inline(always)]
pub fn wdtrf(
self,
) -> crate::common::RegisterField<
1,
0x1,
1,
0,
rstsr1::Wdtrf,
rstsr1::Wdtrf,
Rstsr1_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
1,
0x1,
1,
0,
rstsr1::Wdtrf,
rstsr1::Wdtrf,
Rstsr1_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[inline(always)]
pub fn swrf(
self,
) -> crate::common::RegisterField<
2,
0x1,
1,
0,
rstsr1::Swrf,
rstsr1::Swrf,
Rstsr1_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
2,
0x1,
1,
0,
rstsr1::Swrf,
rstsr1::Swrf,
Rstsr1_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[inline(always)]
pub fn rperf(
self,
) -> crate::common::RegisterField<
8,
0x1,
1,
0,
rstsr1::Rperf,
rstsr1::Rperf,
Rstsr1_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
8,
0x1,
1,
0,
rstsr1::Rperf,
rstsr1::Rperf,
Rstsr1_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[inline(always)]
pub fn bussrf(
self,
) -> crate::common::RegisterField<
10,
0x1,
1,
0,
rstsr1::Bussrf,
rstsr1::Bussrf,
Rstsr1_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
10,
0x1,
1,
0,
rstsr1::Bussrf,
rstsr1::Bussrf,
Rstsr1_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[inline(always)]
pub fn busmrf(
self,
) -> crate::common::RegisterField<
11,
0x1,
1,
0,
rstsr1::Busmrf,
rstsr1::Busmrf,
Rstsr1_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
11,
0x1,
1,
0,
rstsr1::Busmrf,
rstsr1::Busmrf,
Rstsr1_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[inline(always)]
pub fn sperf(
self,
) -> crate::common::RegisterField<
12,
0x1,
1,
0,
rstsr1::Sperf,
rstsr1::Sperf,
Rstsr1_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
12,
0x1,
1,
0,
rstsr1::Sperf,
rstsr1::Sperf,
Rstsr1_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
}
impl ::core::default::Default for Rstsr1 {
#[inline(always)]
fn default() -> Rstsr1 {
<crate::RegValueT<Rstsr1_SPEC> as RegisterValue<_>>::new(0)
}
}
pub mod rstsr1 {
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Iwdtrf_SPEC;
pub type Iwdtrf = crate::EnumBitfieldStruct<u8, Iwdtrf_SPEC>;
impl Iwdtrf {
pub const _0: Self = Self::new(0);
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Wdtrf_SPEC;
pub type Wdtrf = crate::EnumBitfieldStruct<u8, Wdtrf_SPEC>;
impl Wdtrf {
pub const _0: Self = Self::new(0);
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Swrf_SPEC;
pub type Swrf = crate::EnumBitfieldStruct<u8, Swrf_SPEC>;
impl Swrf {
pub const _0: Self = Self::new(0);
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Rperf_SPEC;
pub type Rperf = crate::EnumBitfieldStruct<u8, Rperf_SPEC>;
impl Rperf {
pub const _0: Self = Self::new(0);
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Bussrf_SPEC;
pub type Bussrf = crate::EnumBitfieldStruct<u8, Bussrf_SPEC>;
impl Bussrf {
pub const _0: Self = Self::new(0);
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Busmrf_SPEC;
pub type Busmrf = crate::EnumBitfieldStruct<u8, Busmrf_SPEC>;
impl Busmrf {
pub const _0: Self = Self::new(0);
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Sperf_SPEC;
pub type Sperf = crate::EnumBitfieldStruct<u8, Sperf_SPEC>;
impl Sperf {
pub const _0: Self = Self::new(0);
pub const _1: Self = Self::new(1);
}
}
#[doc(hidden)]
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct Lvd1Cr1_SPEC;
impl crate::sealed::RegSpec for Lvd1Cr1_SPEC {
type DataType = u8;
}
pub type Lvd1Cr1 = crate::RegValueT<Lvd1Cr1_SPEC>;
impl Lvd1Cr1 {
#[inline(always)]
pub fn idtsel(
self,
) -> crate::common::RegisterField<
0,
0x3,
1,
0,
lvd1cr1::Idtsel,
lvd1cr1::Idtsel,
Lvd1Cr1_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
0,
0x3,
1,
0,
lvd1cr1::Idtsel,
lvd1cr1::Idtsel,
Lvd1Cr1_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[inline(always)]
pub fn irqsel(
self,
) -> crate::common::RegisterField<
2,
0x1,
1,
0,
lvd1cr1::Irqsel,
lvd1cr1::Irqsel,
Lvd1Cr1_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
2,
0x1,
1,
0,
lvd1cr1::Irqsel,
lvd1cr1::Irqsel,
Lvd1Cr1_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
}
impl ::core::default::Default for Lvd1Cr1 {
#[inline(always)]
fn default() -> Lvd1Cr1 {
<crate::RegValueT<Lvd1Cr1_SPEC> as RegisterValue<_>>::new(1)
}
}
pub mod lvd1cr1 {
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Idtsel_SPEC;
pub type Idtsel = crate::EnumBitfieldStruct<u8, Idtsel_SPEC>;
impl Idtsel {
pub const _00: Self = Self::new(0);
pub const _01: Self = Self::new(1);
pub const _10: Self = Self::new(2);
pub const _11: Self = Self::new(3);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Irqsel_SPEC;
pub type Irqsel = crate::EnumBitfieldStruct<u8, Irqsel_SPEC>;
impl Irqsel {
pub const _0: Self = Self::new(0);
pub const _1: Self = Self::new(1);
}
}
#[doc(hidden)]
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct Lvd1Sr_SPEC;
impl crate::sealed::RegSpec for Lvd1Sr_SPEC {
type DataType = u8;
}
pub type Lvd1Sr = crate::RegValueT<Lvd1Sr_SPEC>;
impl Lvd1Sr {
#[inline(always)]
pub fn det(
self,
) -> crate::common::RegisterField<
0,
0x1,
1,
0,
lvd1sr::Det,
lvd1sr::Det,
Lvd1Sr_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
0,
0x1,
1,
0,
lvd1sr::Det,
lvd1sr::Det,
Lvd1Sr_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[inline(always)]
pub fn mon(
self,
) -> crate::common::RegisterField<
1,
0x1,
1,
0,
lvd1sr::Mon,
lvd1sr::Mon,
Lvd1Sr_SPEC,
crate::common::R,
> {
crate::common::RegisterField::<
1,
0x1,
1,
0,
lvd1sr::Mon,
lvd1sr::Mon,
Lvd1Sr_SPEC,
crate::common::R,
>::from_register(self, 0)
}
}
impl ::core::default::Default for Lvd1Sr {
#[inline(always)]
fn default() -> Lvd1Sr {
<crate::RegValueT<Lvd1Sr_SPEC> as RegisterValue<_>>::new(2)
}
}
pub mod lvd1sr {
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Det_SPEC;
pub type Det = crate::EnumBitfieldStruct<u8, Det_SPEC>;
impl Det {
pub const _0: Self = Self::new(0);
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Mon_SPEC;
pub type Mon = crate::EnumBitfieldStruct<u8, Mon_SPEC>;
impl Mon {
pub const _0: Self = Self::new(0);
pub const _1: Self = Self::new(1);
}
}
#[doc(hidden)]
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct Lvd2Cr1_SPEC;
impl crate::sealed::RegSpec for Lvd2Cr1_SPEC {
type DataType = u8;
}
pub type Lvd2Cr1 = crate::RegValueT<Lvd2Cr1_SPEC>;
impl Lvd2Cr1 {
#[inline(always)]
pub fn idtsel(
self,
) -> crate::common::RegisterField<
0,
0x3,
1,
0,
lvd2cr1::Idtsel,
lvd2cr1::Idtsel,
Lvd2Cr1_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
0,
0x3,
1,
0,
lvd2cr1::Idtsel,
lvd2cr1::Idtsel,
Lvd2Cr1_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[inline(always)]
pub fn irqsel(
self,
) -> crate::common::RegisterField<
2,
0x1,
1,
0,
lvd2cr1::Irqsel,
lvd2cr1::Irqsel,
Lvd2Cr1_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
2,
0x1,
1,
0,
lvd2cr1::Irqsel,
lvd2cr1::Irqsel,
Lvd2Cr1_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
}
impl ::core::default::Default for Lvd2Cr1 {
#[inline(always)]
fn default() -> Lvd2Cr1 {
<crate::RegValueT<Lvd2Cr1_SPEC> as RegisterValue<_>>::new(1)
}
}
pub mod lvd2cr1 {
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Idtsel_SPEC;
pub type Idtsel = crate::EnumBitfieldStruct<u8, Idtsel_SPEC>;
impl Idtsel {
pub const _00: Self = Self::new(0);
pub const _01: Self = Self::new(1);
pub const _10: Self = Self::new(2);
pub const _11: Self = Self::new(3);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Irqsel_SPEC;
pub type Irqsel = crate::EnumBitfieldStruct<u8, Irqsel_SPEC>;
impl Irqsel {
pub const _0: Self = Self::new(0);
pub const _1: Self = Self::new(1);
}
}
#[doc(hidden)]
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct Lvd2Sr_SPEC;
impl crate::sealed::RegSpec for Lvd2Sr_SPEC {
type DataType = u8;
}
pub type Lvd2Sr = crate::RegValueT<Lvd2Sr_SPEC>;
impl Lvd2Sr {
#[inline(always)]
pub fn det(
self,
) -> crate::common::RegisterField<
0,
0x1,
1,
0,
lvd2sr::Det,
lvd2sr::Det,
Lvd2Sr_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
0,
0x1,
1,
0,
lvd2sr::Det,
lvd2sr::Det,
Lvd2Sr_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[inline(always)]
pub fn mon(
self,
) -> crate::common::RegisterField<
1,
0x1,
1,
0,
lvd2sr::Mon,
lvd2sr::Mon,
Lvd2Sr_SPEC,
crate::common::R,
> {
crate::common::RegisterField::<
1,
0x1,
1,
0,
lvd2sr::Mon,
lvd2sr::Mon,
Lvd2Sr_SPEC,
crate::common::R,
>::from_register(self, 0)
}
}
impl ::core::default::Default for Lvd2Sr {
#[inline(always)]
fn default() -> Lvd2Sr {
<crate::RegValueT<Lvd2Sr_SPEC> as RegisterValue<_>>::new(2)
}
}
pub mod lvd2sr {
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Det_SPEC;
pub type Det = crate::EnumBitfieldStruct<u8, Det_SPEC>;
impl Det {
pub const _0: Self = Self::new(0);
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Mon_SPEC;
pub type Mon = crate::EnumBitfieldStruct<u8, Mon_SPEC>;
impl Mon {
pub const _0: Self = Self::new(0);
pub const _1: Self = Self::new(1);
}
}
#[doc(hidden)]
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct Prcr_SPEC;
impl crate::sealed::RegSpec for Prcr_SPEC {
type DataType = u16;
}
pub type Prcr = crate::RegValueT<Prcr_SPEC>;
impl Prcr {
#[inline(always)]
pub fn prc0(
self,
) -> crate::common::RegisterField<
0,
0x1,
1,
0,
prcr::Prc0,
prcr::Prc0,
Prcr_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
0,
0x1,
1,
0,
prcr::Prc0,
prcr::Prc0,
Prcr_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[inline(always)]
pub fn prc1(
self,
) -> crate::common::RegisterField<
1,
0x1,
1,
0,
prcr::Prc1,
prcr::Prc1,
Prcr_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
1,
0x1,
1,
0,
prcr::Prc1,
prcr::Prc1,
Prcr_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[inline(always)]
pub fn prc3(
self,
) -> crate::common::RegisterField<
3,
0x1,
1,
0,
prcr::Prc3,
prcr::Prc3,
Prcr_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
3,
0x1,
1,
0,
prcr::Prc3,
prcr::Prc3,
Prcr_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[inline(always)]
pub fn prkey(
self,
) -> crate::common::RegisterField<8, 0xff, 1, 0, u8, u8, Prcr_SPEC, crate::common::W> {
crate::common::RegisterField::<8,0xff,1,0,u8,u8,Prcr_SPEC,crate::common::W>::from_register(self,0)
}
}
impl ::core::default::Default for Prcr {
#[inline(always)]
fn default() -> Prcr {
<crate::RegValueT<Prcr_SPEC> as RegisterValue<_>>::new(0)
}
}
pub mod prcr {
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Prc0_SPEC;
pub type Prc0 = crate::EnumBitfieldStruct<u8, Prc0_SPEC>;
impl Prc0 {
pub const _0: Self = Self::new(0);
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Prc1_SPEC;
pub type Prc1 = crate::EnumBitfieldStruct<u8, Prc1_SPEC>;
impl Prc1 {
pub const _0: Self = Self::new(0);
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Prc3_SPEC;
pub type Prc3 = crate::EnumBitfieldStruct<u8, Prc3_SPEC>;
impl Prc3 {
pub const _0: Self = Self::new(0);
pub const _1: Self = Self::new(1);
}
}
#[doc(hidden)]
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct Syocdcr_SPEC;
impl crate::sealed::RegSpec for Syocdcr_SPEC {
type DataType = u8;
}
pub type Syocdcr = crate::RegValueT<Syocdcr_SPEC>;
impl Syocdcr {
#[inline(always)]
pub fn dbgen(
self,
) -> crate::common::RegisterField<
7,
0x1,
1,
0,
syocdcr::Dbgen,
syocdcr::Dbgen,
Syocdcr_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
7,
0x1,
1,
0,
syocdcr::Dbgen,
syocdcr::Dbgen,
Syocdcr_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
}
impl ::core::default::Default for Syocdcr {
#[inline(always)]
fn default() -> Syocdcr {
<crate::RegValueT<Syocdcr_SPEC> as RegisterValue<_>>::new(0)
}
}
pub mod syocdcr {
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Dbgen_SPEC;
pub type Dbgen = crate::EnumBitfieldStruct<u8, Dbgen_SPEC>;
impl Dbgen {
pub const _0: Self = Self::new(0);
pub const _1: Self = Self::new(1);
}
}
#[doc(hidden)]
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct Rstsr0_SPEC;
impl crate::sealed::RegSpec for Rstsr0_SPEC {
type DataType = u8;
}
pub type Rstsr0 = crate::RegValueT<Rstsr0_SPEC>;
impl Rstsr0 {
#[inline(always)]
pub fn porf(
self,
) -> crate::common::RegisterField<
0,
0x1,
1,
0,
rstsr0::Porf,
rstsr0::Porf,
Rstsr0_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
0,
0x1,
1,
0,
rstsr0::Porf,
rstsr0::Porf,
Rstsr0_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[inline(always)]
pub fn lvd0rf(
self,
) -> crate::common::RegisterField<
1,
0x1,
1,
0,
rstsr0::Lvd0Rf,
rstsr0::Lvd0Rf,
Rstsr0_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
1,
0x1,
1,
0,
rstsr0::Lvd0Rf,
rstsr0::Lvd0Rf,
Rstsr0_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[inline(always)]
pub fn lvd1rf(
self,
) -> crate::common::RegisterField<
2,
0x1,
1,
0,
rstsr0::Lvd1Rf,
rstsr0::Lvd1Rf,
Rstsr0_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
2,
0x1,
1,
0,
rstsr0::Lvd1Rf,
rstsr0::Lvd1Rf,
Rstsr0_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[inline(always)]
pub fn lvd2rf(
self,
) -> crate::common::RegisterField<
3,
0x1,
1,
0,
rstsr0::Lvd2Rf,
rstsr0::Lvd2Rf,
Rstsr0_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
3,
0x1,
1,
0,
rstsr0::Lvd2Rf,
rstsr0::Lvd2Rf,
Rstsr0_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
}
impl ::core::default::Default for Rstsr0 {
#[inline(always)]
fn default() -> Rstsr0 {
<crate::RegValueT<Rstsr0_SPEC> as RegisterValue<_>>::new(0)
}
}
pub mod rstsr0 {
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Porf_SPEC;
pub type Porf = crate::EnumBitfieldStruct<u8, Porf_SPEC>;
impl Porf {
pub const _0: Self = Self::new(0);
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Lvd0Rf_SPEC;
pub type Lvd0Rf = crate::EnumBitfieldStruct<u8, Lvd0Rf_SPEC>;
impl Lvd0Rf {
pub const _0: Self = Self::new(0);
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Lvd1Rf_SPEC;
pub type Lvd1Rf = crate::EnumBitfieldStruct<u8, Lvd1Rf_SPEC>;
impl Lvd1Rf {
pub const _0: Self = Self::new(0);
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Lvd2Rf_SPEC;
pub type Lvd2Rf = crate::EnumBitfieldStruct<u8, Lvd2Rf_SPEC>;
impl Lvd2Rf {
pub const _0: Self = Self::new(0);
pub const _1: Self = Self::new(1);
}
}
#[doc(hidden)]
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct Rstsr2_SPEC;
impl crate::sealed::RegSpec for Rstsr2_SPEC {
type DataType = u8;
}
pub type Rstsr2 = crate::RegValueT<Rstsr2_SPEC>;
impl Rstsr2 {
#[inline(always)]
pub fn cwsf(
self,
) -> crate::common::RegisterField<
0,
0x1,
1,
0,
rstsr2::Cwsf,
rstsr2::Cwsf,
Rstsr2_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
0,
0x1,
1,
0,
rstsr2::Cwsf,
rstsr2::Cwsf,
Rstsr2_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
}
impl ::core::default::Default for Rstsr2 {
#[inline(always)]
fn default() -> Rstsr2 {
<crate::RegValueT<Rstsr2_SPEC> as RegisterValue<_>>::new(0)
}
}
pub mod rstsr2 {
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Cwsf_SPEC;
pub type Cwsf = crate::EnumBitfieldStruct<u8, Cwsf_SPEC>;
impl Cwsf {
pub const _0: Self = Self::new(0);
pub const _1: Self = Self::new(1);
}
}
#[doc(hidden)]
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct Momcr_SPEC;
impl crate::sealed::RegSpec for Momcr_SPEC {
type DataType = u8;
}
pub type Momcr = crate::RegValueT<Momcr_SPEC>;
impl Momcr {
#[inline(always)]
pub fn modrv1(
self,
) -> crate::common::RegisterField<
3,
0x1,
1,
0,
momcr::Modrv1,
momcr::Modrv1,
Momcr_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
3,
0x1,
1,
0,
momcr::Modrv1,
momcr::Modrv1,
Momcr_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[inline(always)]
pub fn mosel(
self,
) -> crate::common::RegisterField<
6,
0x1,
1,
0,
momcr::Mosel,
momcr::Mosel,
Momcr_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
6,
0x1,
1,
0,
momcr::Mosel,
momcr::Mosel,
Momcr_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
}
impl ::core::default::Default for Momcr {
#[inline(always)]
fn default() -> Momcr {
<crate::RegValueT<Momcr_SPEC> as RegisterValue<_>>::new(0)
}
}
pub mod momcr {
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Modrv1_SPEC;
pub type Modrv1 = crate::EnumBitfieldStruct<u8, Modrv1_SPEC>;
impl Modrv1 {
pub const _0: Self = Self::new(0);
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Mosel_SPEC;
pub type Mosel = crate::EnumBitfieldStruct<u8, Mosel_SPEC>;
impl Mosel {
pub const _0: Self = Self::new(0);
pub const _1: Self = Self::new(1);
}
}
#[doc(hidden)]
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct Lvcmpcr_SPEC;
impl crate::sealed::RegSpec for Lvcmpcr_SPEC {
type DataType = u8;
}
pub type Lvcmpcr = crate::RegValueT<Lvcmpcr_SPEC>;
impl Lvcmpcr {
#[inline(always)]
pub fn lvd1e(
self,
) -> crate::common::RegisterField<
5,
0x1,
1,
0,
lvcmpcr::Lvd1E,
lvcmpcr::Lvd1E,
Lvcmpcr_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
5,
0x1,
1,
0,
lvcmpcr::Lvd1E,
lvcmpcr::Lvd1E,
Lvcmpcr_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[inline(always)]
pub fn lvd2e(
self,
) -> crate::common::RegisterField<
6,
0x1,
1,
0,
lvcmpcr::Lvd2E,
lvcmpcr::Lvd2E,
Lvcmpcr_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
6,
0x1,
1,
0,
lvcmpcr::Lvd2E,
lvcmpcr::Lvd2E,
Lvcmpcr_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
}
impl ::core::default::Default for Lvcmpcr {
#[inline(always)]
fn default() -> Lvcmpcr {
<crate::RegValueT<Lvcmpcr_SPEC> as RegisterValue<_>>::new(0)
}
}
pub mod lvcmpcr {
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Lvd1E_SPEC;
pub type Lvd1E = crate::EnumBitfieldStruct<u8, Lvd1E_SPEC>;
impl Lvd1E {
pub const _0: Self = Self::new(0);
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Lvd2E_SPEC;
pub type Lvd2E = crate::EnumBitfieldStruct<u8, Lvd2E_SPEC>;
impl Lvd2E {
pub const _0: Self = Self::new(0);
pub const _1: Self = Self::new(1);
}
}
#[doc(hidden)]
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct Lvdlvlr_SPEC;
impl crate::sealed::RegSpec for Lvdlvlr_SPEC {
type DataType = u8;
}
pub type Lvdlvlr = crate::RegValueT<Lvdlvlr_SPEC>;
impl Lvdlvlr {
#[inline(always)]
pub fn lvd1lvl(
self,
) -> crate::common::RegisterField<
0,
0x1f,
1,
0,
lvdlvlr::Lvd1Lvl,
lvdlvlr::Lvd1Lvl,
Lvdlvlr_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
0,
0x1f,
1,
0,
lvdlvlr::Lvd1Lvl,
lvdlvlr::Lvd1Lvl,
Lvdlvlr_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[inline(always)]
pub fn lvd2lvl(
self,
) -> crate::common::RegisterField<
5,
0x7,
1,
0,
lvdlvlr::Lvd2Lvl,
lvdlvlr::Lvd2Lvl,
Lvdlvlr_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
5,
0x7,
1,
0,
lvdlvlr::Lvd2Lvl,
lvdlvlr::Lvd2Lvl,
Lvdlvlr_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
}
impl ::core::default::Default for Lvdlvlr {
#[inline(always)]
fn default() -> Lvdlvlr {
<crate::RegValueT<Lvdlvlr_SPEC> as RegisterValue<_>>::new(7)
}
}
pub mod lvdlvlr {
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Lvd1Lvl_SPEC;
pub type Lvd1Lvl = crate::EnumBitfieldStruct<u8, Lvd1Lvl_SPEC>;
impl Lvd1Lvl {
pub const _0_X_00: Self = Self::new(0);
pub const _0_X_01: Self = Self::new(1);
pub const _0_X_02: Self = Self::new(2);
pub const _0_X_03: Self = Self::new(3);
pub const _0_X_04: Self = Self::new(4);
pub const _0_X_05: Self = Self::new(5);
pub const _0_X_06: Self = Self::new(6);
pub const _0_X_07: Self = Self::new(7);
pub const _0_X_08: Self = Self::new(8);
pub const _0_X_09: Self = Self::new(9);
pub const _0_X_0_A: Self = Self::new(10);
pub const _0_X_0_B: Self = Self::new(11);
pub const _0_X_0_C: Self = Self::new(12);
pub const _0_X_0_D: Self = Self::new(13);
pub const _0_X_0_E: Self = Self::new(14);
pub const _0_X_0_F: Self = Self::new(15);
pub const OTHERS: Self = Self::new(0);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Lvd2Lvl_SPEC;
pub type Lvd2Lvl = crate::EnumBitfieldStruct<u8, Lvd2Lvl_SPEC>;
impl Lvd2Lvl {
pub const _000: Self = Self::new(0);
pub const _001: Self = Self::new(1);
pub const _010: Self = Self::new(2);
pub const _011: Self = Self::new(3);
pub const OTHERS: Self = Self::new(0);
}
}
#[doc(hidden)]
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct Lvd1Cr0_SPEC;
impl crate::sealed::RegSpec for Lvd1Cr0_SPEC {
type DataType = u8;
}
pub type Lvd1Cr0 = crate::RegValueT<Lvd1Cr0_SPEC>;
impl Lvd1Cr0 {
#[inline(always)]
pub fn rie(
self,
) -> crate::common::RegisterField<
0,
0x1,
1,
0,
lvd1cr0::Rie,
lvd1cr0::Rie,
Lvd1Cr0_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
0,
0x1,
1,
0,
lvd1cr0::Rie,
lvd1cr0::Rie,
Lvd1Cr0_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[inline(always)]
pub fn cmpe(
self,
) -> crate::common::RegisterField<
2,
0x1,
1,
0,
lvd1cr0::Cmpe,
lvd1cr0::Cmpe,
Lvd1Cr0_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
2,
0x1,
1,
0,
lvd1cr0::Cmpe,
lvd1cr0::Cmpe,
Lvd1Cr0_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[inline(always)]
pub fn ri(
self,
) -> crate::common::RegisterField<
6,
0x1,
1,
0,
lvd1cr0::Ri,
lvd1cr0::Ri,
Lvd1Cr0_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
6,
0x1,
1,
0,
lvd1cr0::Ri,
lvd1cr0::Ri,
Lvd1Cr0_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[inline(always)]
pub fn rn(
self,
) -> crate::common::RegisterField<
7,
0x1,
1,
0,
lvd1cr0::Rn,
lvd1cr0::Rn,
Lvd1Cr0_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
7,
0x1,
1,
0,
lvd1cr0::Rn,
lvd1cr0::Rn,
Lvd1Cr0_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
}
impl ::core::default::Default for Lvd1Cr0 {
#[inline(always)]
fn default() -> Lvd1Cr0 {
<crate::RegValueT<Lvd1Cr0_SPEC> as RegisterValue<_>>::new(128)
}
}
pub mod lvd1cr0 {
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Rie_SPEC;
pub type Rie = crate::EnumBitfieldStruct<u8, Rie_SPEC>;
impl Rie {
pub const _0: Self = Self::new(0);
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Cmpe_SPEC;
pub type Cmpe = crate::EnumBitfieldStruct<u8, Cmpe_SPEC>;
impl Cmpe {
pub const _0: Self = Self::new(0);
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Ri_SPEC;
pub type Ri = crate::EnumBitfieldStruct<u8, Ri_SPEC>;
impl Ri {
pub const _0: Self = Self::new(0);
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Rn_SPEC;
pub type Rn = crate::EnumBitfieldStruct<u8, Rn_SPEC>;
impl Rn {
pub const _0: Self = Self::new(0);
pub const _1: Self = Self::new(1);
}
}
#[doc(hidden)]
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct Lvd2Cr0_SPEC;
impl crate::sealed::RegSpec for Lvd2Cr0_SPEC {
type DataType = u8;
}
pub type Lvd2Cr0 = crate::RegValueT<Lvd2Cr0_SPEC>;
impl Lvd2Cr0 {
#[inline(always)]
pub fn rie(
self,
) -> crate::common::RegisterField<
0,
0x1,
1,
0,
lvd2cr0::Rie,
lvd2cr0::Rie,
Lvd2Cr0_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
0,
0x1,
1,
0,
lvd2cr0::Rie,
lvd2cr0::Rie,
Lvd2Cr0_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[inline(always)]
pub fn cmpe(
self,
) -> crate::common::RegisterField<
2,
0x1,
1,
0,
lvd2cr0::Cmpe,
lvd2cr0::Cmpe,
Lvd2Cr0_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
2,
0x1,
1,
0,
lvd2cr0::Cmpe,
lvd2cr0::Cmpe,
Lvd2Cr0_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[inline(always)]
pub fn ri(
self,
) -> crate::common::RegisterField<
6,
0x1,
1,
0,
lvd2cr0::Ri,
lvd2cr0::Ri,
Lvd2Cr0_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
6,
0x1,
1,
0,
lvd2cr0::Ri,
lvd2cr0::Ri,
Lvd2Cr0_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[inline(always)]
pub fn rn(
self,
) -> crate::common::RegisterField<
7,
0x1,
1,
0,
lvd2cr0::Rn,
lvd2cr0::Rn,
Lvd2Cr0_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
7,
0x1,
1,
0,
lvd2cr0::Rn,
lvd2cr0::Rn,
Lvd2Cr0_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
}
impl ::core::default::Default for Lvd2Cr0 {
#[inline(always)]
fn default() -> Lvd2Cr0 {
<crate::RegValueT<Lvd2Cr0_SPEC> as RegisterValue<_>>::new(128)
}
}
pub mod lvd2cr0 {
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Rie_SPEC;
pub type Rie = crate::EnumBitfieldStruct<u8, Rie_SPEC>;
impl Rie {
pub const _0: Self = Self::new(0);
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Cmpe_SPEC;
pub type Cmpe = crate::EnumBitfieldStruct<u8, Cmpe_SPEC>;
impl Cmpe {
pub const _0: Self = Self::new(0);
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Ri_SPEC;
pub type Ri = crate::EnumBitfieldStruct<u8, Ri_SPEC>;
impl Ri {
pub const _0: Self = Self::new(0);
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Rn_SPEC;
pub type Rn = crate::EnumBitfieldStruct<u8, Rn_SPEC>;
impl Rn {
pub const _0: Self = Self::new(0);
pub const _1: Self = Self::new(1);
}
}
#[doc(hidden)]
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct Sosccr_SPEC;
impl crate::sealed::RegSpec for Sosccr_SPEC {
type DataType = u8;
}
pub type Sosccr = crate::RegValueT<Sosccr_SPEC>;
impl Sosccr {
#[inline(always)]
pub fn sostp(
self,
) -> crate::common::RegisterField<
0,
0x1,
1,
0,
sosccr::Sostp,
sosccr::Sostp,
Sosccr_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
0,
0x1,
1,
0,
sosccr::Sostp,
sosccr::Sostp,
Sosccr_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
}
impl ::core::default::Default for Sosccr {
#[inline(always)]
fn default() -> Sosccr {
<crate::RegValueT<Sosccr_SPEC> as RegisterValue<_>>::new(1)
}
}
pub mod sosccr {
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Sostp_SPEC;
pub type Sostp = crate::EnumBitfieldStruct<u8, Sostp_SPEC>;
impl Sostp {
pub const _0: Self = Self::new(0);
pub const _1: Self = Self::new(1);
}
}
#[doc(hidden)]
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct Somcr_SPEC;
impl crate::sealed::RegSpec for Somcr_SPEC {
type DataType = u8;
}
pub type Somcr = crate::RegValueT<Somcr_SPEC>;
impl Somcr {
#[inline(always)]
pub fn sodrv(
self,
) -> crate::common::RegisterField<
0,
0x3,
1,
0,
somcr::Sodrv,
somcr::Sodrv,
Somcr_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
0,
0x3,
1,
0,
somcr::Sodrv,
somcr::Sodrv,
Somcr_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
}
impl ::core::default::Default for Somcr {
#[inline(always)]
fn default() -> Somcr {
<crate::RegValueT<Somcr_SPEC> as RegisterValue<_>>::new(0)
}
}
pub mod somcr {
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Sodrv_SPEC;
pub type Sodrv = crate::EnumBitfieldStruct<u8, Sodrv_SPEC>;
impl Sodrv {
pub const _00: Self = Self::new(0);
pub const _01: Self = Self::new(1);
pub const _10: Self = Self::new(2);
pub const _11: Self = Self::new(3);
}
}
#[doc(hidden)]
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct Somrg_SPEC;
impl crate::sealed::RegSpec for Somrg_SPEC {
type DataType = u8;
}
pub type Somrg = crate::RegValueT<Somrg_SPEC>;
impl Somrg {
#[inline(always)]
pub fn soscmrg(
self,
) -> crate::common::RegisterField<
0,
0x3,
1,
0,
somrg::Soscmrg,
somrg::Soscmrg,
Somrg_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
0,
0x3,
1,
0,
somrg::Soscmrg,
somrg::Soscmrg,
Somrg_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
}
impl ::core::default::Default for Somrg {
#[inline(always)]
fn default() -> Somrg {
<crate::RegValueT<Somrg_SPEC> as RegisterValue<_>>::new(0)
}
}
pub mod somrg {
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Soscmrg_SPEC;
pub type Soscmrg = crate::EnumBitfieldStruct<u8, Soscmrg_SPEC>;
impl Soscmrg {
pub const _00: Self = Self::new(0);
pub const _01: Self = Self::new(1);
pub const _10: Self = Self::new(2);
pub const _11: Self = Self::new(3);
}
}
#[doc(hidden)]
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct Lococr_SPEC;
impl crate::sealed::RegSpec for Lococr_SPEC {
type DataType = u8;
}
pub type Lococr = crate::RegValueT<Lococr_SPEC>;
impl Lococr {
#[inline(always)]
pub fn lcstp(
self,
) -> crate::common::RegisterField<
0,
0x1,
1,
0,
lococr::Lcstp,
lococr::Lcstp,
Lococr_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
0,
0x1,
1,
0,
lococr::Lcstp,
lococr::Lcstp,
Lococr_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
}
impl ::core::default::Default for Lococr {
#[inline(always)]
fn default() -> Lococr {
<crate::RegValueT<Lococr_SPEC> as RegisterValue<_>>::new(0)
}
}
pub mod lococr {
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Lcstp_SPEC;
pub type Lcstp = crate::EnumBitfieldStruct<u8, Lcstp_SPEC>;
impl Lcstp {
pub const _0: Self = Self::new(0);
pub const _1: Self = Self::new(1);
}
}
#[doc(hidden)]
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct Locoutcr_SPEC;
impl crate::sealed::RegSpec for Locoutcr_SPEC {
type DataType = u8;
}
pub type Locoutcr = crate::RegValueT<Locoutcr_SPEC>;
impl Locoutcr {
#[inline(always)]
pub fn locoutrm(
self,
) -> crate::common::RegisterField<0, 0xff, 1, 0, u8, u8, Locoutcr_SPEC, crate::common::RW> {
crate::common::RegisterField::<0,0xff,1,0,u8,u8,Locoutcr_SPEC,crate::common::RW>::from_register(self,0)
}
}
impl ::core::default::Default for Locoutcr {
#[inline(always)]
fn default() -> Locoutcr {
<crate::RegValueT<Locoutcr_SPEC> as RegisterValue<_>>::new(0)
}
}