#![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"BUS Control"]
unsafe impl ::core::marker::Send for super::Bus {}
unsafe impl ::core::marker::Sync for super::Bus {}
impl super::Bus {
#[allow(unused)]
#[inline(always)]
pub(crate) const fn _svd2pac_as_ptr(&self) -> *mut u8 {
self.ptr
}
#[doc = "CS0 Control Register"]
#[inline(always)]
pub const fn cs0cr(&self) -> &'static crate::common::Reg<self::Cs0Cr_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Cs0Cr_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(2050usize),
)
}
}
#[doc = "CS1 Control Register"]
#[inline(always)]
pub const fn cs1cr(&self) -> &'static crate::common::Reg<self::Cs1Cr_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Cs1Cr_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(2066usize),
)
}
}
#[doc = "CS%s Control Register"]
#[inline(always)]
pub const fn cscr(
&self,
) -> &'static crate::common::ClusterRegisterArray<
crate::common::Reg<self::Cscr_SPEC, crate::common::RW>,
4,
0x10,
> {
unsafe {
crate::common::ClusterRegisterArray::from_ptr(self._svd2pac_as_ptr().add(0x842usize))
}
}
#[inline(always)]
pub const fn cs4cr(&self) -> &'static crate::common::Reg<self::Cscr_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Cscr_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(0x842usize),
)
}
}
#[inline(always)]
pub const fn cs5cr(&self) -> &'static crate::common::Reg<self::Cscr_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Cscr_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(0x852usize),
)
}
}
#[inline(always)]
pub const fn cs6cr(&self) -> &'static crate::common::Reg<self::Cscr_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Cscr_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(0x862usize),
)
}
}
#[inline(always)]
pub const fn cs7cr(&self) -> &'static crate::common::Reg<self::Cscr_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Cscr_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(0x872usize),
)
}
}
#[doc = "CS%s Recovery Cycle Register"]
#[inline(always)]
pub const fn csrec(
&self,
) -> &'static crate::common::ClusterRegisterArray<
crate::common::Reg<self::Csrec_SPEC, crate::common::RW>,
4,
0x10,
> {
unsafe {
crate::common::ClusterRegisterArray::from_ptr(self._svd2pac_as_ptr().add(0x84ausize))
}
}
#[inline(always)]
pub const fn cs4rec(&self) -> &'static crate::common::Reg<self::Csrec_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Csrec_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(0x84ausize),
)
}
}
#[inline(always)]
pub const fn cs5rec(&self) -> &'static crate::common::Reg<self::Csrec_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Csrec_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(0x85ausize),
)
}
}
#[inline(always)]
pub const fn cs6rec(&self) -> &'static crate::common::Reg<self::Csrec_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Csrec_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(0x86ausize),
)
}
}
#[inline(always)]
pub const fn cs7rec(&self) -> &'static crate::common::Reg<self::Csrec_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Csrec_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(0x87ausize),
)
}
}
#[doc = "CS Recovery Cycle Insertion Enable Register"]
#[inline(always)]
pub const fn csrecen(
&self,
) -> &'static crate::common::Reg<self::Csrecen_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Csrecen_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(2176usize),
)
}
}
#[doc = "CS%s Mode Register"]
#[inline(always)]
pub const fn csmod(
&self,
) -> &'static crate::common::ClusterRegisterArray<
crate::common::Reg<self::Csmod_SPEC, crate::common::RW>,
4,
0x10,
> {
unsafe {
crate::common::ClusterRegisterArray::from_ptr(self._svd2pac_as_ptr().add(0x42usize))
}
}
#[inline(always)]
pub const fn cs4mod(&self) -> &'static crate::common::Reg<self::Csmod_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Csmod_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(0x42usize),
)
}
}
#[inline(always)]
pub const fn cs5mod(&self) -> &'static crate::common::Reg<self::Csmod_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Csmod_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(0x52usize),
)
}
}
#[inline(always)]
pub const fn cs6mod(&self) -> &'static crate::common::Reg<self::Csmod_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Csmod_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(0x62usize),
)
}
}
#[inline(always)]
pub const fn cs7mod(&self) -> &'static crate::common::Reg<self::Csmod_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Csmod_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(0x72usize),
)
}
}
#[doc = "CS%s Wait Control Register 1"]
#[inline(always)]
pub const fn cswcr1(
&self,
) -> &'static crate::common::ClusterRegisterArray<
crate::common::Reg<self::Cswcr1_SPEC, crate::common::RW>,
4,
0x10,
> {
unsafe {
crate::common::ClusterRegisterArray::from_ptr(self._svd2pac_as_ptr().add(0x44usize))
}
}
#[inline(always)]
pub const fn cs4wcr1(
&self,
) -> &'static crate::common::Reg<self::Cswcr1_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Cswcr1_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(0x44usize),
)
}
}
#[inline(always)]
pub const fn cs5wcr1(
&self,
) -> &'static crate::common::Reg<self::Cswcr1_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Cswcr1_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(0x54usize),
)
}
}
#[inline(always)]
pub const fn cs6wcr1(
&self,
) -> &'static crate::common::Reg<self::Cswcr1_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Cswcr1_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(0x64usize),
)
}
}
#[inline(always)]
pub const fn cs7wcr1(
&self,
) -> &'static crate::common::Reg<self::Cswcr1_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Cswcr1_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(0x74usize),
)
}
}
#[doc = "CS%s Wait Control Register 2"]
#[inline(always)]
pub const fn cswcr2(
&self,
) -> &'static crate::common::ClusterRegisterArray<
crate::common::Reg<self::Cswcr2_SPEC, crate::common::RW>,
4,
0x10,
> {
unsafe {
crate::common::ClusterRegisterArray::from_ptr(self._svd2pac_as_ptr().add(0x48usize))
}
}
#[inline(always)]
pub const fn cs4wcr2(
&self,
) -> &'static crate::common::Reg<self::Cswcr2_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Cswcr2_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(0x48usize),
)
}
}
#[inline(always)]
pub const fn cs5wcr2(
&self,
) -> &'static crate::common::Reg<self::Cswcr2_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Cswcr2_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(0x58usize),
)
}
}
#[inline(always)]
pub const fn cs6wcr2(
&self,
) -> &'static crate::common::Reg<self::Cswcr2_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Cswcr2_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(0x68usize),
)
}
}
#[inline(always)]
pub const fn cs7wcr2(
&self,
) -> &'static crate::common::Reg<self::Cswcr2_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Cswcr2_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(0x78usize),
)
}
}
#[doc = "Bus Error Address Register %s"]
#[inline(always)]
pub const fn buserradd(
&self,
) -> &'static crate::common::ClusterRegisterArray<
crate::common::Reg<self::Buserradd_SPEC, crate::common::R>,
4,
0x10,
> {
unsafe {
crate::common::ClusterRegisterArray::from_ptr(self._svd2pac_as_ptr().add(0x1800usize))
}
}
#[inline(always)]
pub const fn bus1erradd(
&self,
) -> &'static crate::common::Reg<self::Buserradd_SPEC, crate::common::R> {
unsafe {
crate::common::Reg::<self::Buserradd_SPEC, crate::common::R>::from_ptr(
self._svd2pac_as_ptr().add(0x1800usize),
)
}
}
#[inline(always)]
pub const fn bus2erradd(
&self,
) -> &'static crate::common::Reg<self::Buserradd_SPEC, crate::common::R> {
unsafe {
crate::common::Reg::<self::Buserradd_SPEC, crate::common::R>::from_ptr(
self._svd2pac_as_ptr().add(0x1810usize),
)
}
}
#[inline(always)]
pub const fn bus3erradd(
&self,
) -> &'static crate::common::Reg<self::Buserradd_SPEC, crate::common::R> {
unsafe {
crate::common::Reg::<self::Buserradd_SPEC, crate::common::R>::from_ptr(
self._svd2pac_as_ptr().add(0x1820usize),
)
}
}
#[inline(always)]
pub const fn bus4erradd(
&self,
) -> &'static crate::common::Reg<self::Buserradd_SPEC, crate::common::R> {
unsafe {
crate::common::Reg::<self::Buserradd_SPEC, crate::common::R>::from_ptr(
self._svd2pac_as_ptr().add(0x1830usize),
)
}
}
#[doc = "Bus Error Status Register %s"]
#[inline(always)]
pub const fn buserrstat(
&self,
) -> &'static crate::common::ClusterRegisterArray<
crate::common::Reg<self::Buserrstat_SPEC, crate::common::R>,
4,
0x10,
> {
unsafe {
crate::common::ClusterRegisterArray::from_ptr(self._svd2pac_as_ptr().add(0x1804usize))
}
}
#[inline(always)]
pub const fn bus1errstat(
&self,
) -> &'static crate::common::Reg<self::Buserrstat_SPEC, crate::common::R> {
unsafe {
crate::common::Reg::<self::Buserrstat_SPEC, crate::common::R>::from_ptr(
self._svd2pac_as_ptr().add(0x1804usize),
)
}
}
#[inline(always)]
pub const fn bus2errstat(
&self,
) -> &'static crate::common::Reg<self::Buserrstat_SPEC, crate::common::R> {
unsafe {
crate::common::Reg::<self::Buserrstat_SPEC, crate::common::R>::from_ptr(
self._svd2pac_as_ptr().add(0x1814usize),
)
}
}
#[inline(always)]
pub const fn bus3errstat(
&self,
) -> &'static crate::common::Reg<self::Buserrstat_SPEC, crate::common::R> {
unsafe {
crate::common::Reg::<self::Buserrstat_SPEC, crate::common::R>::from_ptr(
self._svd2pac_as_ptr().add(0x1824usize),
)
}
}
#[inline(always)]
pub const fn bus4errstat(
&self,
) -> &'static crate::common::Reg<self::Buserrstat_SPEC, crate::common::R> {
unsafe {
crate::common::Reg::<self::Buserrstat_SPEC, crate::common::R>::from_ptr(
self._svd2pac_as_ptr().add(0x1834usize),
)
}
}
#[doc = "Master Bus Control Register %s"]
#[inline(always)]
pub const fn busmcnt(
&self,
) -> &'static crate::common::ClusterRegisterArray<
crate::common::Reg<self::Busmcnt_SPEC, crate::common::RW>,
2,
0x4,
> {
unsafe {
crate::common::ClusterRegisterArray::from_ptr(self._svd2pac_as_ptr().add(0x1000usize))
}
}
#[inline(always)]
pub const fn busmcntm4i(
&self,
) -> &'static crate::common::Reg<self::Busmcnt_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Busmcnt_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(0x1000usize),
)
}
}
#[inline(always)]
pub const fn busmcntm4d(
&self,
) -> &'static crate::common::Reg<self::Busmcnt_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Busmcnt_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(0x1004usize),
)
}
}
#[doc = "Master Bus Control Register SYS"]
#[inline(always)]
pub const fn busmcntsys(
&self,
) -> &'static crate::common::Reg<self::Busmcntsys_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Busmcntsys_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(4104usize),
)
}
}
#[doc = "Master Bus Control Register DMA"]
#[inline(always)]
pub const fn busmcntdma(
&self,
) -> &'static crate::common::Reg<self::Busmcntdma_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Busmcntdma_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(4108usize),
)
}
}
#[doc = "Slave Bus Control Register MBIU"]
#[inline(always)]
pub const fn busscntmbiu(
&self,
) -> &'static crate::common::Reg<self::Busscntmbiu_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Busscntmbiu_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(4360usize),
)
}
}
#[doc = "Slave Bus Control Register P6B"]
#[inline(always)]
pub const fn busscntp6b(
&self,
) -> &'static crate::common::Reg<self::Busscntp6B_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Busscntp6B_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(4392usize),
)
}
}
#[doc = "Slave Bus Control Register %s"]
#[inline(always)]
pub const fn busscnt(
&self,
) -> &'static crate::common::ClusterRegisterArray<
crate::common::Reg<self::Busscnt_SPEC, crate::common::RW>,
3,
0x4,
> {
unsafe {
crate::common::ClusterRegisterArray::from_ptr(self._svd2pac_as_ptr().add(0x1130usize))
}
}
#[inline(always)]
pub const fn busscntfbu(
&self,
) -> &'static crate::common::Reg<self::Busscnt_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Busscnt_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(0x1130usize),
)
}
}
#[inline(always)]
pub const fn busscntext(
&self,
) -> &'static crate::common::Reg<self::Busscnt_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Busscnt_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(0x1134usize),
)
}
}
#[inline(always)]
pub const fn busscntext2(
&self,
) -> &'static crate::common::Reg<self::Busscnt_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Busscnt_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(0x1138usize),
)
}
}
}
#[doc(hidden)]
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct Cs0Cr_SPEC;
impl crate::sealed::RegSpec for Cs0Cr_SPEC {
type DataType = u16;
}
#[doc = "CS0 Control Register"]
pub type Cs0Cr = crate::RegValueT<Cs0Cr_SPEC>;
impl Cs0Cr {
#[doc = "Address/Data Multiplexed I/O Interface Select"]
#[inline(always)]
pub fn mpxen(
self,
) -> crate::common::RegisterField<
12,
0x1,
1,
0,
cs0cr::Mpxen,
cs0cr::Mpxen,
Cs0Cr_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
12,
0x1,
1,
0,
cs0cr::Mpxen,
cs0cr::Mpxen,
Cs0Cr_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[doc = "Endian Mode"]
#[inline(always)]
pub fn emode(
self,
) -> crate::common::RegisterField<
8,
0x1,
1,
0,
cs0cr::Emode,
cs0cr::Emode,
Cs0Cr_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
8,
0x1,
1,
0,
cs0cr::Emode,
cs0cr::Emode,
Cs0Cr_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[doc = "External Bus Width Select"]
#[inline(always)]
pub fn bsize(
self,
) -> crate::common::RegisterField<
4,
0x3,
1,
0,
cs0cr::Bsize,
cs0cr::Bsize,
Cs0Cr_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
4,
0x3,
1,
0,
cs0cr::Bsize,
cs0cr::Bsize,
Cs0Cr_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[doc = "These bits are read as 000. The write value should be 000."]
#[inline(always)]
pub fn reserved(
self,
) -> crate::common::RegisterField<1, 0x7, 1, 0, u8, u8, Cs0Cr_SPEC, crate::common::RW> {
crate::common::RegisterField::<1,0x7,1,0,u8,u8,Cs0Cr_SPEC,crate::common::RW>::from_register(self,0)
}
#[doc = "Operation Enable"]
#[inline(always)]
pub fn exenb(
self,
) -> crate::common::RegisterField<
0,
0x1,
1,
0,
cs0cr::Exenb,
cs0cr::Exenb,
Cs0Cr_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
0,
0x1,
1,
0,
cs0cr::Exenb,
cs0cr::Exenb,
Cs0Cr_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
}
impl ::core::default::Default for Cs0Cr {
#[inline(always)]
fn default() -> Cs0Cr {
<crate::RegValueT<Cs0Cr_SPEC> as RegisterValue<_>>::new(33)
}
}
pub mod cs0cr {
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Mpxen_SPEC;
pub type Mpxen = crate::EnumBitfieldStruct<u8, Mpxen_SPEC>;
impl Mpxen {
#[doc = "Separate bus interface is selected for area n"]
pub const _0: Self = Self::new(0);
#[doc = "Address/data multiplexed I/O interface is selected for area n. (n = 0 to 7)"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Emode_SPEC;
pub type Emode = crate::EnumBitfieldStruct<u8, Emode_SPEC>;
impl Emode {
#[doc = "Little Endian"]
pub const _0: Self = Self::new(0);
#[doc = "Big Endian"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Bsize_SPEC;
pub type Bsize = crate::EnumBitfieldStruct<u8, Bsize_SPEC>;
impl Bsize {
#[doc = "A 16-bit bus space"]
pub const _00: Self = Self::new(0);
#[doc = "Setting prohibited"]
pub const _01: Self = Self::new(1);
#[doc = "An 8-bit bus space"]
pub const _10: Self = Self::new(2);
#[doc = "Setting prohibited"]
pub const _11: Self = Self::new(3);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Exenb_SPEC;
pub type Exenb = crate::EnumBitfieldStruct<u8, Exenb_SPEC>;
impl Exenb {
#[doc = "Disable operation"]
pub const _0: Self = Self::new(0);
#[doc = "Enable operation"]
pub const _1: Self = Self::new(1);
}
}
#[doc(hidden)]
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct Cs1Cr_SPEC;
impl crate::sealed::RegSpec for Cs1Cr_SPEC {
type DataType = u16;
}
#[doc = "CS1 Control Register"]
pub type Cs1Cr = crate::RegValueT<Cs1Cr_SPEC>;
impl Cs1Cr {
#[doc = "Address/Data Multiplexed I/O Interface Select"]
#[inline(always)]
pub fn mpxen(
self,
) -> crate::common::RegisterField<
12,
0x1,
1,
0,
cs1cr::Mpxen,
cs1cr::Mpxen,
Cs1Cr_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
12,
0x1,
1,
0,
cs1cr::Mpxen,
cs1cr::Mpxen,
Cs1Cr_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[doc = "Endian Mode"]
#[inline(always)]
pub fn emode(
self,
) -> crate::common::RegisterField<
8,
0x1,
1,
0,
cs1cr::Emode,
cs1cr::Emode,
Cs1Cr_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
8,
0x1,
1,
0,
cs1cr::Emode,
cs1cr::Emode,
Cs1Cr_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[doc = "External Bus Width Select"]
#[inline(always)]
pub fn bsize(
self,
) -> crate::common::RegisterField<
4,
0x3,
1,
0,
cs1cr::Bsize,
cs1cr::Bsize,
Cs1Cr_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
4,
0x3,
1,
0,
cs1cr::Bsize,
cs1cr::Bsize,
Cs1Cr_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[doc = "These bits are read as 000. The write value should be 000."]
#[inline(always)]
pub fn reserved(
self,
) -> crate::common::RegisterField<1, 0x7, 1, 0, u8, u8, Cs1Cr_SPEC, crate::common::RW> {
crate::common::RegisterField::<1,0x7,1,0,u8,u8,Cs1Cr_SPEC,crate::common::RW>::from_register(self,0)
}
#[doc = "Operation Enable"]
#[inline(always)]
pub fn exenb(
self,
) -> crate::common::RegisterField<
0,
0x1,
1,
0,
cs1cr::Exenb,
cs1cr::Exenb,
Cs1Cr_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
0,
0x1,
1,
0,
cs1cr::Exenb,
cs1cr::Exenb,
Cs1Cr_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
}
impl ::core::default::Default for Cs1Cr {
#[inline(always)]
fn default() -> Cs1Cr {
<crate::RegValueT<Cs1Cr_SPEC> as RegisterValue<_>>::new(0)
}
}
pub mod cs1cr {
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Mpxen_SPEC;
pub type Mpxen = crate::EnumBitfieldStruct<u8, Mpxen_SPEC>;
impl Mpxen {
#[doc = "Separate bus interface is selected for area n"]
pub const _0: Self = Self::new(0);
#[doc = "Address/data multiplexed I/O interface is selected for area n. (n = 0 to 7)"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Emode_SPEC;
pub type Emode = crate::EnumBitfieldStruct<u8, Emode_SPEC>;
impl Emode {
#[doc = "Little Endian"]
pub const _0: Self = Self::new(0);
#[doc = "Big Endian"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Bsize_SPEC;
pub type Bsize = crate::EnumBitfieldStruct<u8, Bsize_SPEC>;
impl Bsize {
#[doc = "A 16-bit bus space"]
pub const _00: Self = Self::new(0);
#[doc = "Setting prohibited"]
pub const _01: Self = Self::new(1);
#[doc = "An 8-bit bus space"]
pub const _10: Self = Self::new(2);
#[doc = "Setting prohibited"]
pub const _11: Self = Self::new(3);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Exenb_SPEC;
pub type Exenb = crate::EnumBitfieldStruct<u8, Exenb_SPEC>;
impl Exenb {
#[doc = "Disable operation"]
pub const _0: Self = Self::new(0);
#[doc = "Enable operation"]
pub const _1: Self = Self::new(1);
}
}
#[doc(hidden)]
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct Cscr_SPEC;
impl crate::sealed::RegSpec for Cscr_SPEC {
type DataType = u16;
}
#[doc = "CS%s Control Register"]
pub type Cscr = crate::RegValueT<Cscr_SPEC>;
impl Cscr {
#[doc = "Address/Data Multiplexed I/O Interface Select"]
#[inline(always)]
pub fn mpxen(
self,
) -> crate::common::RegisterField<
12,
0x1,
1,
0,
cscr::Mpxen,
cscr::Mpxen,
Cscr_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
12,
0x1,
1,
0,
cscr::Mpxen,
cscr::Mpxen,
Cscr_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[doc = "Endian Mode"]
#[inline(always)]
pub fn emode(
self,
) -> crate::common::RegisterField<
8,
0x1,
1,
0,
cscr::Emode,
cscr::Emode,
Cscr_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
8,
0x1,
1,
0,
cscr::Emode,
cscr::Emode,
Cscr_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[doc = "External Bus Width Select"]
#[inline(always)]
pub fn bsize(
self,
) -> crate::common::RegisterField<
4,
0x3,
1,
0,
cscr::Bsize,
cscr::Bsize,
Cscr_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
4,
0x3,
1,
0,
cscr::Bsize,
cscr::Bsize,
Cscr_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[doc = "These bits are read as 000. The write value should be 000."]
#[inline(always)]
pub fn reserved(
self,
) -> crate::common::RegisterField<1, 0x7, 1, 0, u8, u8, Cscr_SPEC, crate::common::RW> {
crate::common::RegisterField::<1,0x7,1,0,u8,u8,Cscr_SPEC,crate::common::RW>::from_register(self,0)
}
#[doc = "Operation Enable"]
#[inline(always)]
pub fn exenb(
self,
) -> crate::common::RegisterField<
0,
0x1,
1,
0,
cscr::Exenb,
cscr::Exenb,
Cscr_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
0,
0x1,
1,
0,
cscr::Exenb,
cscr::Exenb,
Cscr_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
}
impl ::core::default::Default for Cscr {
#[inline(always)]
fn default() -> Cscr {
<crate::RegValueT<Cscr_SPEC> as RegisterValue<_>>::new(0)
}
}
pub mod cscr {
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Mpxen_SPEC;
pub type Mpxen = crate::EnumBitfieldStruct<u8, Mpxen_SPEC>;
impl Mpxen {
#[doc = "Separate bus interface is selected for area n"]
pub const _0: Self = Self::new(0);
#[doc = "Address/data multiplexed I/O interface is selected for area n. (n = 0 to 7)"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Emode_SPEC;
pub type Emode = crate::EnumBitfieldStruct<u8, Emode_SPEC>;
impl Emode {
#[doc = "Little Endian"]
pub const _0: Self = Self::new(0);
#[doc = "Big Endian"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Bsize_SPEC;
pub type Bsize = crate::EnumBitfieldStruct<u8, Bsize_SPEC>;
impl Bsize {
#[doc = "A 16-bit bus space"]
pub const _00: Self = Self::new(0);
#[doc = "Setting prohibited"]
pub const _01: Self = Self::new(1);
#[doc = "An 8-bit bus space"]
pub const _10: Self = Self::new(2);
#[doc = "Setting prohibited"]
pub const _11: Self = Self::new(3);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Exenb_SPEC;
pub type Exenb = crate::EnumBitfieldStruct<u8, Exenb_SPEC>;
impl Exenb {
#[doc = "Disable operation"]
pub const _0: Self = Self::new(0);
#[doc = "Enable operation"]
pub const _1: Self = Self::new(1);
}
}
#[doc(hidden)]
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct Csrec_SPEC;
impl crate::sealed::RegSpec for Csrec_SPEC {
type DataType = u16;
}
#[doc = "CS%s Recovery Cycle Register"]
pub type Csrec = crate::RegValueT<Csrec_SPEC>;
impl Csrec {
#[doc = "Write Recovery"]
#[inline(always)]
pub fn wrcv(
self,
) -> crate::common::RegisterField<
8,
0xf,
1,
0,
csrec::Wrcv,
csrec::Wrcv,
Csrec_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
8,
0xf,
1,
0,
csrec::Wrcv,
csrec::Wrcv,
Csrec_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[doc = "These bits are read as 0000. The write value should be 0000."]
#[inline(always)]
pub fn reserved(
self,
) -> crate::common::RegisterField<4, 0xf, 1, 0, u8, u8, Csrec_SPEC, crate::common::RW> {
crate::common::RegisterField::<4,0xf,1,0,u8,u8,Csrec_SPEC,crate::common::RW>::from_register(self,0)
}
#[doc = "Read Recovery"]
#[inline(always)]
pub fn rrcv(
self,
) -> crate::common::RegisterField<
0,
0xf,
1,
0,
csrec::Rrcv,
csrec::Rrcv,
Csrec_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
0,
0xf,
1,
0,
csrec::Rrcv,
csrec::Rrcv,
Csrec_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
}
impl ::core::default::Default for Csrec {
#[inline(always)]
fn default() -> Csrec {
<crate::RegValueT<Csrec_SPEC> as RegisterValue<_>>::new(0)
}
}
pub mod csrec {
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Wrcv_SPEC;
pub type Wrcv = crate::EnumBitfieldStruct<u8, Wrcv_SPEC>;
impl Wrcv {
#[doc = "No recovery cycle is inserted."]
pub const _0_X_0: Self = Self::new(0);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Rrcv_SPEC;
pub type Rrcv = crate::EnumBitfieldStruct<u8, Rrcv_SPEC>;
impl Rrcv {
#[doc = "No recovery cycle is inserted."]
pub const _0_X_0: Self = Self::new(0);
}
}
#[doc(hidden)]
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct Csrecen_SPEC;
impl crate::sealed::RegSpec for Csrecen_SPEC {
type DataType = u16;
}
#[doc = "CS Recovery Cycle Insertion Enable Register"]
pub type Csrecen = crate::RegValueT<Csrecen_SPEC>;
impl Csrecen {
#[doc = "Multiplexed Bus Recovery Cycle Insertion Enable 7"]
#[inline(always)]
pub fn rcvenm7(
self,
) -> crate::common::RegisterField<
15,
0x1,
1,
0,
csrecen::Rcvenm7,
csrecen::Rcvenm7,
Csrecen_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
15,
0x1,
1,
0,
csrecen::Rcvenm7,
csrecen::Rcvenm7,
Csrecen_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[doc = "Multiplexed Bus Recovery Cycle Insertion Enable 6"]
#[inline(always)]
pub fn rcvenm6(
self,
) -> crate::common::RegisterField<
14,
0x1,
1,
0,
csrecen::Rcvenm6,
csrecen::Rcvenm6,
Csrecen_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
14,
0x1,
1,
0,
csrecen::Rcvenm6,
csrecen::Rcvenm6,
Csrecen_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[doc = "Multiplexed Bus Recovery Cycle Insertion Enable 5"]
#[inline(always)]
pub fn rcvenm5(
self,
) -> crate::common::RegisterField<
13,
0x1,
1,
0,
csrecen::Rcvenm5,
csrecen::Rcvenm5,
Csrecen_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
13,
0x1,
1,
0,
csrecen::Rcvenm5,
csrecen::Rcvenm5,
Csrecen_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[doc = "Multiplexed Bus Recovery Cycle Insertion Enable 4"]
#[inline(always)]
pub fn rcvenm4(
self,
) -> crate::common::RegisterField<
12,
0x1,
1,
0,
csrecen::Rcvenm4,
csrecen::Rcvenm4,
Csrecen_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
12,
0x1,
1,
0,
csrecen::Rcvenm4,
csrecen::Rcvenm4,
Csrecen_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[doc = "Multiplexed Bus Recovery Cycle Insertion Enable 3"]
#[inline(always)]
pub fn rcvenm3(
self,
) -> crate::common::RegisterField<
11,
0x1,
1,
0,
csrecen::Rcvenm3,
csrecen::Rcvenm3,
Csrecen_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
11,
0x1,
1,
0,
csrecen::Rcvenm3,
csrecen::Rcvenm3,
Csrecen_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[doc = "Multiplexed Bus Recovery Cycle Insertion Enable 2"]
#[inline(always)]
pub fn rcvenm2(
self,
) -> crate::common::RegisterField<
10,
0x1,
1,
0,
csrecen::Rcvenm2,
csrecen::Rcvenm2,
Csrecen_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
10,
0x1,
1,
0,
csrecen::Rcvenm2,
csrecen::Rcvenm2,
Csrecen_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[doc = "Multiplexed Bus Recovery Cycle Insertion Enable 1"]
#[inline(always)]
pub fn rcvenm1(
self,
) -> crate::common::RegisterField<
9,
0x1,
1,
0,
csrecen::Rcvenm1,
csrecen::Rcvenm1,
Csrecen_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
9,
0x1,
1,
0,
csrecen::Rcvenm1,
csrecen::Rcvenm1,
Csrecen_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[doc = "Multiplexed Bus Recovery Cycle Insertion Enable 0"]
#[inline(always)]
pub fn rcvenm0(
self,
) -> crate::common::RegisterField<
8,
0x1,
1,
0,
csrecen::Rcvenm0,
csrecen::Rcvenm0,
Csrecen_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
8,
0x1,
1,
0,
csrecen::Rcvenm0,
csrecen::Rcvenm0,
Csrecen_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[doc = "Separate Bus Recovery Cycle Insertion Enable 7"]
#[inline(always)]
pub fn rcven7(
self,
) -> crate::common::RegisterField<
7,
0x1,
1,
0,
csrecen::Rcven7,
csrecen::Rcven7,
Csrecen_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
7,
0x1,
1,
0,
csrecen::Rcven7,
csrecen::Rcven7,
Csrecen_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[doc = "Separate Bus Recovery Cycle Insertion Enable 6"]
#[inline(always)]
pub fn rcven6(
self,
) -> crate::common::RegisterField<
6,
0x1,
1,
0,
csrecen::Rcven6,
csrecen::Rcven6,
Csrecen_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
6,
0x1,
1,
0,
csrecen::Rcven6,
csrecen::Rcven6,
Csrecen_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[doc = "Separate Bus Recovery Cycle Insertion Enable 5"]
#[inline(always)]
pub fn rcven5(
self,
) -> crate::common::RegisterField<
5,
0x1,
1,
0,
csrecen::Rcven5,
csrecen::Rcven5,
Csrecen_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
5,
0x1,
1,
0,
csrecen::Rcven5,
csrecen::Rcven5,
Csrecen_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[doc = "Separate Bus Recovery Cycle Insertion Enable 4"]
#[inline(always)]
pub fn rcven4(
self,
) -> crate::common::RegisterField<
4,
0x1,
1,
0,
csrecen::Rcven4,
csrecen::Rcven4,
Csrecen_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
4,
0x1,
1,
0,
csrecen::Rcven4,
csrecen::Rcven4,
Csrecen_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[doc = "Separate Bus Recovery Cycle Insertion Enable 3"]
#[inline(always)]
pub fn rcven3(
self,
) -> crate::common::RegisterField<
3,
0x1,
1,
0,
csrecen::Rcven3,
csrecen::Rcven3,
Csrecen_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
3,
0x1,
1,
0,
csrecen::Rcven3,
csrecen::Rcven3,
Csrecen_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[doc = "Separate Bus Recovery Cycle Insertion Enable 2"]
#[inline(always)]
pub fn rcven2(
self,
) -> crate::common::RegisterField<
2,
0x1,
1,
0,
csrecen::Rcven2,
csrecen::Rcven2,
Csrecen_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
2,
0x1,
1,
0,
csrecen::Rcven2,
csrecen::Rcven2,
Csrecen_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[doc = "Separate Bus Recovery Cycle Insertion Enable 1"]
#[inline(always)]
pub fn rcven1(
self,
) -> crate::common::RegisterField<
1,
0x1,
1,
0,
csrecen::Rcven1,
csrecen::Rcven1,
Csrecen_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
1,
0x1,
1,
0,
csrecen::Rcven1,
csrecen::Rcven1,
Csrecen_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[doc = "Separate Bus Recovery Cycle Insertion Enable 0"]
#[inline(always)]
pub fn rcven0(
self,
) -> crate::common::RegisterField<
0,
0x1,
1,
0,
csrecen::Rcven0,
csrecen::Rcven0,
Csrecen_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
0,
0x1,
1,
0,
csrecen::Rcven0,
csrecen::Rcven0,
Csrecen_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
}
impl ::core::default::Default for Csrecen {
#[inline(always)]
fn default() -> Csrecen {
<crate::RegValueT<Csrecen_SPEC> as RegisterValue<_>>::new(15934)
}
}
pub mod csrecen {
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Rcvenm7_SPEC;
pub type Rcvenm7 = crate::EnumBitfieldStruct<u8, Rcvenm7_SPEC>;
impl Rcvenm7 {
#[doc = "Recovery cycle insertion is disabled."]
pub const _0: Self = Self::new(0);
#[doc = "Recovery cycle insertion is enabled."]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Rcvenm6_SPEC;
pub type Rcvenm6 = crate::EnumBitfieldStruct<u8, Rcvenm6_SPEC>;
impl Rcvenm6 {
#[doc = "Recovery cycle insertion is disabled."]
pub const _0: Self = Self::new(0);
#[doc = "Recovery cycle insertion is enabled."]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Rcvenm5_SPEC;
pub type Rcvenm5 = crate::EnumBitfieldStruct<u8, Rcvenm5_SPEC>;
impl Rcvenm5 {
#[doc = "Recovery cycle insertion is disabled."]
pub const _0: Self = Self::new(0);
#[doc = "Recovery cycle insertion is enabled."]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Rcvenm4_SPEC;
pub type Rcvenm4 = crate::EnumBitfieldStruct<u8, Rcvenm4_SPEC>;
impl Rcvenm4 {
#[doc = "Recovery cycle insertion is disabled."]
pub const _0: Self = Self::new(0);
#[doc = "Recovery cycle insertion is enabled."]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Rcvenm3_SPEC;
pub type Rcvenm3 = crate::EnumBitfieldStruct<u8, Rcvenm3_SPEC>;
impl Rcvenm3 {
#[doc = "Recovery cycle insertion is disabled."]
pub const _0: Self = Self::new(0);
#[doc = "Recovery cycle insertion is enabled."]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Rcvenm2_SPEC;
pub type Rcvenm2 = crate::EnumBitfieldStruct<u8, Rcvenm2_SPEC>;
impl Rcvenm2 {
#[doc = "Recovery cycle insertion is disabled."]
pub const _0: Self = Self::new(0);
#[doc = "Recovery cycle insertion is enabled."]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Rcvenm1_SPEC;
pub type Rcvenm1 = crate::EnumBitfieldStruct<u8, Rcvenm1_SPEC>;
impl Rcvenm1 {
#[doc = "Recovery cycle insertion is disabled."]
pub const _0: Self = Self::new(0);
#[doc = "Recovery cycle insertion is enabled."]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Rcvenm0_SPEC;
pub type Rcvenm0 = crate::EnumBitfieldStruct<u8, Rcvenm0_SPEC>;
impl Rcvenm0 {
#[doc = "Recovery cycle insertion is disabled."]
pub const _0: Self = Self::new(0);
#[doc = "Recovery cycle insertion is enabled."]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Rcven7_SPEC;
pub type Rcven7 = crate::EnumBitfieldStruct<u8, Rcven7_SPEC>;
impl Rcven7 {
#[doc = "Recovery cycle insertion is disabled."]
pub const _0: Self = Self::new(0);
#[doc = "Recovery cycle insertion is enabled."]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Rcven6_SPEC;
pub type Rcven6 = crate::EnumBitfieldStruct<u8, Rcven6_SPEC>;
impl Rcven6 {
#[doc = "Recovery cycle insertion is disabled."]
pub const _0: Self = Self::new(0);
#[doc = "Recovery cycle insertion is enabled."]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Rcven5_SPEC;
pub type Rcven5 = crate::EnumBitfieldStruct<u8, Rcven5_SPEC>;
impl Rcven5 {
#[doc = "Recovery cycle insertion is disabled."]
pub const _0: Self = Self::new(0);
#[doc = "Recovery cycle insertion is enabled."]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Rcven4_SPEC;
pub type Rcven4 = crate::EnumBitfieldStruct<u8, Rcven4_SPEC>;
impl Rcven4 {
#[doc = "Recovery cycle insertion is disabled."]
pub const _0: Self = Self::new(0);
#[doc = "Recovery cycle insertion is enabled."]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Rcven3_SPEC;
pub type Rcven3 = crate::EnumBitfieldStruct<u8, Rcven3_SPEC>;
impl Rcven3 {
#[doc = "Recovery cycle insertion is disabled."]
pub const _0: Self = Self::new(0);
#[doc = "Recovery cycle insertion is enabled."]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Rcven2_SPEC;
pub type Rcven2 = crate::EnumBitfieldStruct<u8, Rcven2_SPEC>;
impl Rcven2 {
#[doc = "Recovery cycle insertion is disabled."]
pub const _0: Self = Self::new(0);
#[doc = "Recovery cycle insertion is enabled."]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Rcven1_SPEC;
pub type Rcven1 = crate::EnumBitfieldStruct<u8, Rcven1_SPEC>;
impl Rcven1 {
#[doc = "Recovery cycle insertion is disabled."]
pub const _0: Self = Self::new(0);
#[doc = "Recovery cycle insertion is enabled."]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Rcven0_SPEC;
pub type Rcven0 = crate::EnumBitfieldStruct<u8, Rcven0_SPEC>;
impl Rcven0 {
#[doc = "Recovery cycle insertion is disabled."]
pub const _0: Self = Self::new(0);
#[doc = "Recovery cycle insertion is enabled."]
pub const _1: Self = Self::new(1);
}
}
#[doc(hidden)]
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct Csmod_SPEC;
impl crate::sealed::RegSpec for Csmod_SPEC {
type DataType = u16;
}
#[doc = "CS%s Mode Register"]
pub type Csmod = crate::RegValueT<Csmod_SPEC>;
impl Csmod {
#[doc = "Page Read Access Mode Select"]
#[inline(always)]
pub fn prmod(
self,
) -> crate::common::RegisterField<
15,
0x1,
1,
0,
csmod::Prmod,
csmod::Prmod,
Csmod_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
15,
0x1,
1,
0,
csmod::Prmod,
csmod::Prmod,
Csmod_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[doc = "Page Write Access Enable"]
#[inline(always)]
pub fn pwenb(
self,
) -> crate::common::RegisterField<
9,
0x1,
1,
0,
csmod::Pwenb,
csmod::Pwenb,
Csmod_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
9,
0x1,
1,
0,
csmod::Pwenb,
csmod::Pwenb,
Csmod_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[doc = "Page Read Access Enable"]
#[inline(always)]
pub fn prenb(
self,
) -> crate::common::RegisterField<
8,
0x1,
1,
0,
csmod::Prenb,
csmod::Prenb,
Csmod_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
8,
0x1,
1,
0,
csmod::Prenb,
csmod::Prenb,
Csmod_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[doc = "External Wait Enable"]
#[inline(always)]
pub fn ewenb(
self,
) -> crate::common::RegisterField<
3,
0x1,
1,
0,
csmod::Ewenb,
csmod::Ewenb,
Csmod_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
3,
0x1,
1,
0,
csmod::Ewenb,
csmod::Ewenb,
Csmod_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[doc = "These bits are read as 00. The write value should be 00."]
#[inline(always)]
pub fn reserved(
self,
) -> crate::common::RegisterField<1, 0x3, 1, 0, u8, u8, Csmod_SPEC, crate::common::RW> {
crate::common::RegisterField::<1,0x3,1,0,u8,u8,Csmod_SPEC,crate::common::RW>::from_register(self,0)
}
#[doc = "Write Access Mode Select"]
#[inline(always)]
pub fn wrmod(
self,
) -> crate::common::RegisterField<
0,
0x1,
1,
0,
csmod::Wrmod,
csmod::Wrmod,
Csmod_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
0,
0x1,
1,
0,
csmod::Wrmod,
csmod::Wrmod,
Csmod_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
}
impl ::core::default::Default for Csmod {
#[inline(always)]
fn default() -> Csmod {
<crate::RegValueT<Csmod_SPEC> as RegisterValue<_>>::new(0)
}
}
pub mod csmod {
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Prmod_SPEC;
pub type Prmod = crate::EnumBitfieldStruct<u8, Prmod_SPEC>;
impl Prmod {
#[doc = "Normal access compatible mode"]
pub const _0: Self = Self::new(0);
#[doc = "External data read continuous assertion mode"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Pwenb_SPEC;
pub type Pwenb = crate::EnumBitfieldStruct<u8, Pwenb_SPEC>;
impl Pwenb {
#[doc = "Disable"]
pub const _0: Self = Self::new(0);
#[doc = "Enable"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Prenb_SPEC;
pub type Prenb = crate::EnumBitfieldStruct<u8, Prenb_SPEC>;
impl Prenb {
#[doc = "Disable"]
pub const _0: Self = Self::new(0);
#[doc = "Enable"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Ewenb_SPEC;
pub type Ewenb = crate::EnumBitfieldStruct<u8, Ewenb_SPEC>;
impl Ewenb {
#[doc = "Disable"]
pub const _0: Self = Self::new(0);
#[doc = "Enable"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Wrmod_SPEC;
pub type Wrmod = crate::EnumBitfieldStruct<u8, Wrmod_SPEC>;
impl Wrmod {
#[doc = "Byte strobe mode"]
pub const _0: Self = Self::new(0);
#[doc = "Single write strobe mode"]
pub const _1: Self = Self::new(1);
}
}
#[doc(hidden)]
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct Cswcr1_SPEC;
impl crate::sealed::RegSpec for Cswcr1_SPEC {
type DataType = u32;
}
#[doc = "CS%s Wait Control Register 1"]
pub type Cswcr1 = crate::RegValueT<Cswcr1_SPEC>;
impl Cswcr1 {
#[doc = "Normal Read Cycle Wait Select"]
#[inline(always)]
pub fn csrwait(
self,
) -> crate::common::RegisterField<
24,
0x1f,
1,
0,
cswcr1::Csrwait,
cswcr1::Csrwait,
Cswcr1_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
24,
0x1f,
1,
0,
cswcr1::Csrwait,
cswcr1::Csrwait,
Cswcr1_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[doc = "Normal Write Cycle Wait Select"]
#[inline(always)]
pub fn cswwait(
self,
) -> crate::common::RegisterField<
16,
0x1f,
1,
0,
cswcr1::Cswwait,
cswcr1::Cswwait,
Cswcr1_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
16,
0x1f,
1,
0,
cswcr1::Cswwait,
cswcr1::Cswwait,
Cswcr1_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[doc = "Page Read Cycle Wait Select\nNOTE: The CSPRWAIT value is valid only when the PRENB bit in CSnMOD is set to 1."]
#[inline(always)]
pub fn csprwait(
self,
) -> crate::common::RegisterField<
8,
0x7,
1,
0,
cswcr1::Csprwait,
cswcr1::Csprwait,
Cswcr1_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
8,
0x7,
1,
0,
cswcr1::Csprwait,
cswcr1::Csprwait,
Cswcr1_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[doc = "These bits are read as 00000. The write value should be 00000."]
#[inline(always)]
pub fn reserved(
self,
) -> crate::common::RegisterField<3, 0x1f, 1, 0, u8, u8, Cswcr1_SPEC, crate::common::RW> {
crate::common::RegisterField::<3,0x1f,1,0,u8,u8,Cswcr1_SPEC,crate::common::RW>::from_register(self,0)
}
#[doc = "Page Write Cycle Wait Select\nNOTE: The CSPWWAIT value is valid only when the PWENB bit in CSnMOD is set to 1."]
#[inline(always)]
pub fn cspwwait(
self,
) -> crate::common::RegisterField<
0,
0x7,
1,
0,
cswcr1::Cspwwait,
cswcr1::Cspwwait,
Cswcr1_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
0,
0x7,
1,
0,
cswcr1::Cspwwait,
cswcr1::Cspwwait,
Cswcr1_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
}
impl ::core::default::Default for Cswcr1 {
#[inline(always)]
fn default() -> Cswcr1 {
<crate::RegValueT<Cswcr1_SPEC> as RegisterValue<_>>::new(117901063)
}
}
pub mod cswcr1 {
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Csrwait_SPEC;
pub type Csrwait = crate::EnumBitfieldStruct<u8, Csrwait_SPEC>;
impl Csrwait {
#[doc = "No wait is inserted."]
pub const _0_X_00: Self = Self::new(0);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Cswwait_SPEC;
pub type Cswwait = crate::EnumBitfieldStruct<u8, Cswwait_SPEC>;
impl Cswwait {
#[doc = "No wait is inserted."]
pub const _0_X_00: Self = Self::new(0);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Csprwait_SPEC;
pub type Csprwait = crate::EnumBitfieldStruct<u8, Csprwait_SPEC>;
impl Csprwait {
#[doc = "No wait is inserted."]
pub const _0_X_0: Self = Self::new(0);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Cspwwait_SPEC;
pub type Cspwwait = crate::EnumBitfieldStruct<u8, Cspwwait_SPEC>;
impl Cspwwait {
#[doc = "No wait is inserted."]
pub const _0_X_0: Self = Self::new(0);
}
}
#[doc(hidden)]
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct Cswcr2_SPEC;
impl crate::sealed::RegSpec for Cswcr2_SPEC {
type DataType = u32;
}
#[doc = "CS%s Wait Control Register 2"]
pub type Cswcr2 = crate::RegValueT<Cswcr2_SPEC>;
impl Cswcr2 {
#[doc = "CS Assert Wait Select"]
#[inline(always)]
pub fn cson(
self,
) -> crate::common::RegisterField<
28,
0x7,
1,
0,
cswcr2::Cson,
cswcr2::Cson,
Cswcr2_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
28,
0x7,
1,
0,
cswcr2::Cson,
cswcr2::Cson,
Cswcr2_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[doc = "Write Data Output Wait Select"]
#[inline(always)]
pub fn wdon(
self,
) -> crate::common::RegisterField<
24,
0x7,
1,
0,
cswcr2::Wdon,
cswcr2::Wdon,
Cswcr2_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
24,
0x7,
1,
0,
cswcr2::Wdon,
cswcr2::Wdon,
Cswcr2_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[doc = "WR Assert Wait Select"]
#[inline(always)]
pub fn wron(
self,
) -> crate::common::RegisterField<
20,
0x7,
1,
0,
cswcr2::Wron,
cswcr2::Wron,
Cswcr2_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
20,
0x7,
1,
0,
cswcr2::Wron,
cswcr2::Wron,
Cswcr2_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[doc = "RD Assert Wait Select"]
#[inline(always)]
pub fn rdon(
self,
) -> crate::common::RegisterField<
16,
0x7,
1,
0,
cswcr2::Rdon,
cswcr2::Rdon,
Cswcr2_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
16,
0x7,
1,
0,
cswcr2::Rdon,
cswcr2::Rdon,
Cswcr2_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[doc = "Address Cycle Wait Select"]
#[inline(always)]
pub fn r#await(
self,
) -> crate::common::RegisterField<
12,
0x3,
1,
0,
cswcr2::Await,
cswcr2::Await,
Cswcr2_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
12,
0x3,
1,
0,
cswcr2::Await,
cswcr2::Await,
Cswcr2_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[doc = "Write Data Output Extension Cycle Select"]
#[inline(always)]
pub fn wdoff(
self,
) -> crate::common::RegisterField<
8,
0x7,
1,
0,
cswcr2::Wdoff,
cswcr2::Wdoff,
Cswcr2_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
8,
0x7,
1,
0,
cswcr2::Wdoff,
cswcr2::Wdoff,
Cswcr2_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[doc = "Write-Access CS Extension Cycle Select"]
#[inline(always)]
pub fn cswoff(
self,
) -> crate::common::RegisterField<
4,
0x7,
1,
0,
cswcr2::Cswoff,
cswcr2::Cswoff,
Cswcr2_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
4,
0x7,
1,
0,
cswcr2::Cswoff,
cswcr2::Cswoff,
Cswcr2_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[doc = "This bit is read as 0. The write value should be 0."]
#[inline(always)]
pub fn reserved(
self,
) -> crate::common::RegisterFieldBool<3, 1, 0, Cswcr2_SPEC, crate::common::RW> {
crate::common::RegisterFieldBool::<3, 1, 0, Cswcr2_SPEC, crate::common::RW>::from_register(
self, 0,
)
}
#[doc = "Read-Access CS Extension Cycle Select"]
#[inline(always)]
pub fn csroff(
self,
) -> crate::common::RegisterField<
0,
0x7,
1,
0,
cswcr2::Csroff,
cswcr2::Csroff,
Cswcr2_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
0,
0x7,
1,
0,
cswcr2::Csroff,
cswcr2::Csroff,
Cswcr2_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
}
impl ::core::default::Default for Cswcr2 {
#[inline(always)]
fn default() -> Cswcr2 {
<crate::RegValueT<Cswcr2_SPEC> as RegisterValue<_>>::new(7)
}
}
pub mod cswcr2 {
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Cson_SPEC;
pub type Cson = crate::EnumBitfieldStruct<u8, Cson_SPEC>;
impl Cson {
#[doc = "No wait is inserted."]
pub const _0_X_0: Self = Self::new(0);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Wdon_SPEC;
pub type Wdon = crate::EnumBitfieldStruct<u8, Wdon_SPEC>;
impl Wdon {
#[doc = "No wait is inserted."]
pub const _0_X_0: Self = Self::new(0);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Wron_SPEC;
pub type Wron = crate::EnumBitfieldStruct<u8, Wron_SPEC>;
impl Wron {
#[doc = "No wait is inserted."]
pub const _0_X_0: Self = Self::new(0);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Rdon_SPEC;
pub type Rdon = crate::EnumBitfieldStruct<u8, Rdon_SPEC>;
impl Rdon {
#[doc = "No wait is inserted."]
pub const _0_X_0: Self = Self::new(0);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Await_SPEC;
pub type Await = crate::EnumBitfieldStruct<u8, Await_SPEC>;
impl Await {
#[doc = "No wait is inserted."]
pub const _0_X_0: Self = Self::new(0);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Wdoff_SPEC;
pub type Wdoff = crate::EnumBitfieldStruct<u8, Wdoff_SPEC>;
impl Wdoff {
#[doc = "No wait is inserted."]
pub const _0_X_0: Self = Self::new(0);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Cswoff_SPEC;
pub type Cswoff = crate::EnumBitfieldStruct<u8, Cswoff_SPEC>;
impl Cswoff {
#[doc = "No wait is inserted."]
pub const _0_X_0: Self = Self::new(0);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Csroff_SPEC;
pub type Csroff = crate::EnumBitfieldStruct<u8, Csroff_SPEC>;
impl Csroff {
#[doc = "No wait is inserted."]
pub const _0_X_0: Self = Self::new(0);
}
}
#[doc(hidden)]
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct Buserradd_SPEC;
impl crate::sealed::RegSpec for Buserradd_SPEC {
type DataType = u32;
}
#[doc = "Bus Error Address Register %s"]
pub type Buserradd = crate::RegValueT<Buserradd_SPEC>;
impl Buserradd {
#[doc = "Bus Error Address\nWhen a bus error occurs, It stores an error address."]
#[inline(always)]
pub fn berad(
self,
) -> crate::common::RegisterField<0, 0xffffffff, 1, 0, u32, u32, Buserradd_SPEC, crate::common::R>
{
crate::common::RegisterField::<
0,
0xffffffff,
1,
0,
u32,
u32,
Buserradd_SPEC,
crate::common::R,
>::from_register(self, 0)
}
}
impl ::core::default::Default for Buserradd {
#[inline(always)]
fn default() -> Buserradd {
<crate::RegValueT<Buserradd_SPEC> as RegisterValue<_>>::new(0)
}
}
#[doc(hidden)]
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct Buserrstat_SPEC;
impl crate::sealed::RegSpec for Buserrstat_SPEC {
type DataType = u8;
}
#[doc = "Bus Error Status Register %s"]
pub type Buserrstat = crate::RegValueT<Buserrstat_SPEC>;
impl Buserrstat {
#[doc = "Bus Error Status\nWhen bus error assert, error flag occurs."]
#[inline(always)]
pub fn errstat(
self,
) -> crate::common::RegisterField<
7,
0x1,
1,
0,
buserrstat::Errstat,
buserrstat::Errstat,
Buserrstat_SPEC,
crate::common::R,
> {
crate::common::RegisterField::<
7,
0x1,
1,
0,
buserrstat::Errstat,
buserrstat::Errstat,
Buserrstat_SPEC,
crate::common::R,
>::from_register(self, 0)
}
#[doc = "These bits are read as 000000."]
#[inline(always)]
pub fn reserved(
self,
) -> crate::common::RegisterField<1, 0x3f, 1, 0, u8, u8, Buserrstat_SPEC, crate::common::R>
{
crate::common::RegisterField::<1,0x3f,1,0,u8,u8,Buserrstat_SPEC,crate::common::R>::from_register(self,0)
}
#[doc = "Error access status\nThe status at the time of the error"]
#[inline(always)]
pub fn accstat(
self,
) -> crate::common::RegisterField<
0,
0x1,
1,
0,
buserrstat::Accstat,
buserrstat::Accstat,
Buserrstat_SPEC,
crate::common::R,
> {
crate::common::RegisterField::<
0,
0x1,
1,
0,
buserrstat::Accstat,
buserrstat::Accstat,
Buserrstat_SPEC,
crate::common::R,
>::from_register(self, 0)
}
}
impl ::core::default::Default for Buserrstat {
#[inline(always)]
fn default() -> Buserrstat {
<crate::RegValueT<Buserrstat_SPEC> as RegisterValue<_>>::new(0)
}
}
pub mod buserrstat {
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Errstat_SPEC;
pub type Errstat = crate::EnumBitfieldStruct<u8, Errstat_SPEC>;
impl Errstat {
#[doc = "No bus error occurred"]
pub const _0: Self = Self::new(0);
#[doc = "Bus error occurred"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Accstat_SPEC;
pub type Accstat = crate::EnumBitfieldStruct<u8, Accstat_SPEC>;
impl Accstat {
#[doc = "Read access"]
pub const _0: Self = Self::new(0);
#[doc = "Write Access"]
pub const _1: Self = Self::new(1);
}
}
#[doc(hidden)]
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct Busmcnt_SPEC;
impl crate::sealed::RegSpec for Busmcnt_SPEC {
type DataType = u16;
}
#[doc = "Master Bus Control Register %s"]
pub type Busmcnt = crate::RegValueT<Busmcnt_SPEC>;
impl Busmcnt {
#[doc = "Ignore Error Responses"]
#[inline(always)]
pub fn ieres(
self,
) -> crate::common::RegisterField<
15,
0x1,
1,
0,
busmcnt::Ieres,
busmcnt::Ieres,
Busmcnt_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
15,
0x1,
1,
0,
busmcnt::Ieres,
busmcnt::Ieres,
Busmcnt_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[doc = "These bits are read as 000000000000000. The write value should be 000000000000000."]
#[inline(always)]
pub fn reserved(
self,
) -> crate::common::RegisterField<0, 0x7fff, 1, 0, u16, u16, Busmcnt_SPEC, crate::common::RW>
{
crate::common::RegisterField::<0,0x7fff,1,0,u16,u16,Busmcnt_SPEC,crate::common::RW>::from_register(self,0)
}
}
impl ::core::default::Default for Busmcnt {
#[inline(always)]
fn default() -> Busmcnt {
<crate::RegValueT<Busmcnt_SPEC> as RegisterValue<_>>::new(0)
}
}
pub mod busmcnt {
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Ieres_SPEC;
pub type Ieres = crate::EnumBitfieldStruct<u8, Ieres_SPEC>;
impl Ieres {
#[doc = "Bus error will be reported."]
pub const _0: Self = Self::new(0);
#[doc = "Bus error will not be reported."]
pub const _1: Self = Self::new(1);
}
}
#[doc(hidden)]
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct Busmcntsys_SPEC;
impl crate::sealed::RegSpec for Busmcntsys_SPEC {
type DataType = u16;
}
#[doc = "Master Bus Control Register SYS"]
pub type Busmcntsys = crate::RegValueT<Busmcntsys_SPEC>;
impl Busmcntsys {
#[doc = "Ignore Error Responses"]
#[inline(always)]
pub fn ieres(
self,
) -> crate::common::RegisterField<
15,
0x1,
1,
0,
busmcntsys::Ieres,
busmcntsys::Ieres,
Busmcntsys_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
15,
0x1,
1,
0,
busmcntsys::Ieres,
busmcntsys::Ieres,
Busmcntsys_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[doc = "These bits are read as 000000000000000. The write value should be 000000000000000."]
#[inline(always)]
pub fn reserved(
self,
) -> crate::common::RegisterField<0, 0x7fff, 1, 0, u16, u16, Busmcntsys_SPEC, crate::common::RW>
{
crate::common::RegisterField::<0,0x7fff,1,0,u16,u16,Busmcntsys_SPEC,crate::common::RW>::from_register(self,0)
}
}
impl ::core::default::Default for Busmcntsys {
#[inline(always)]
fn default() -> Busmcntsys {
<crate::RegValueT<Busmcntsys_SPEC> as RegisterValue<_>>::new(0)
}
}
pub mod busmcntsys {
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Ieres_SPEC;
pub type Ieres = crate::EnumBitfieldStruct<u8, Ieres_SPEC>;
impl Ieres {
#[doc = "Bus error will be reported."]
pub const _0: Self = Self::new(0);
#[doc = "Bus error will not be reported."]
pub const _1: Self = Self::new(1);
}
}
#[doc(hidden)]
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct Busmcntdma_SPEC;
impl crate::sealed::RegSpec for Busmcntdma_SPEC {
type DataType = u16;
}
#[doc = "Master Bus Control Register DMA"]
pub type Busmcntdma = crate::RegValueT<Busmcntdma_SPEC>;
impl Busmcntdma {
#[doc = "Ignore Error Responses"]
#[inline(always)]
pub fn ieres(
self,
) -> crate::common::RegisterField<
15,
0x1,
1,
0,
busmcntdma::Ieres,
busmcntdma::Ieres,
Busmcntdma_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
15,
0x1,
1,
0,
busmcntdma::Ieres,
busmcntdma::Ieres,
Busmcntdma_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[doc = "These bits are read as 000000000000000. The write value should be 000000000000000."]
#[inline(always)]
pub fn reserved(
self,
) -> crate::common::RegisterField<0, 0x7fff, 1, 0, u16, u16, Busmcntdma_SPEC, crate::common::RW>
{
crate::common::RegisterField::<0,0x7fff,1,0,u16,u16,Busmcntdma_SPEC,crate::common::RW>::from_register(self,0)
}
}
impl ::core::default::Default for Busmcntdma {
#[inline(always)]
fn default() -> Busmcntdma {
<crate::RegValueT<Busmcntdma_SPEC> as RegisterValue<_>>::new(0)
}
}
pub mod busmcntdma {
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Ieres_SPEC;
pub type Ieres = crate::EnumBitfieldStruct<u8, Ieres_SPEC>;
impl Ieres {
#[doc = "Bus error will be reported."]
pub const _0: Self = Self::new(0);
#[doc = "Bus error will not be reported."]
pub const _1: Self = Self::new(1);
}
}
#[doc(hidden)]
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct Busscntmbiu_SPEC;
impl crate::sealed::RegSpec for Busscntmbiu_SPEC {
type DataType = u16;
}
#[doc = "Slave Bus Control Register MBIU"]
pub type Busscntmbiu = crate::RegValueT<Busscntmbiu_SPEC>;
impl Busscntmbiu {
#[doc = "Early Write Response\nWhether the next write request is accepted or not until a response for the write transaction comes back."]
#[inline(always)]
pub fn ewres(
self,
) -> crate::common::RegisterField<
8,
0x1,
1,
0,
busscntmbiu::Ewres,
busscntmbiu::Ewres,
Busscntmbiu_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
8,
0x1,
1,
0,
busscntmbiu::Ewres,
busscntmbiu::Ewres,
Busscntmbiu_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[doc = "Arbitration Method\nSpecify the priority between groups"]
#[inline(always)]
pub fn arbmet(
self,
) -> crate::common::RegisterField<
4,
0x3,
1,
0,
busscntmbiu::Arbmet,
busscntmbiu::Arbmet,
Busscntmbiu_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
4,
0x3,
1,
0,
busscntmbiu::Arbmet,
busscntmbiu::Arbmet,
Busscntmbiu_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[doc = "These bits are read as 0000. The write value should be 0000."]
#[inline(always)]
pub fn reserved(
self,
) -> crate::common::RegisterField<0, 0xf, 1, 0, u8, u8, Busscntmbiu_SPEC, crate::common::RW>
{
crate::common::RegisterField::<0,0xf,1,0,u8,u8,Busscntmbiu_SPEC,crate::common::RW>::from_register(self,0)
}
}
impl ::core::default::Default for Busscntmbiu {
#[inline(always)]
fn default() -> Busscntmbiu {
<crate::RegValueT<Busscntmbiu_SPEC> as RegisterValue<_>>::new(0)
}
}
pub mod busscntmbiu {
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Ewres_SPEC;
pub type Ewres = crate::EnumBitfieldStruct<u8, Ewres_SPEC>;
impl Ewres {
#[doc = "Not accepted."]
pub const _0: Self = Self::new(0);
#[doc = "Accepted but error response is ignored."]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Arbmet_SPEC;
pub type Arbmet = crate::EnumBitfieldStruct<u8, Arbmet_SPEC>;
impl Arbmet {
#[doc = "fixed priority"]
pub const _00: Self = Self::new(0);
#[doc = "round-robin"]
pub const _01: Self = Self::new(1);
}
}
#[doc(hidden)]
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct Busscntp6B_SPEC;
impl crate::sealed::RegSpec for Busscntp6B_SPEC {
type DataType = u16;
}
#[doc = "Slave Bus Control Register P6B"]
pub type Busscntp6B = crate::RegValueT<Busscntp6B_SPEC>;
impl Busscntp6B {
#[doc = "Early Write Response\nWhether the next write request is accepted or not until a response for the write transaction comes back."]
#[inline(always)]
pub fn ewres(
self,
) -> crate::common::RegisterField<
8,
0x1,
1,
0,
busscntp6b::Ewres,
busscntp6b::Ewres,
Busscntp6B_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
8,
0x1,
1,
0,
busscntp6b::Ewres,
busscntp6b::Ewres,
Busscntp6B_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[doc = "Arbitration Method\nSpecify the priority between groups"]
#[inline(always)]
pub fn arbmet(
self,
) -> crate::common::RegisterField<
4,
0x3,
1,
0,
busscntp6b::Arbmet,
busscntp6b::Arbmet,
Busscntp6B_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
4,
0x3,
1,
0,
busscntp6b::Arbmet,
busscntp6b::Arbmet,
Busscntp6B_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[doc = "These bits are read as 0000. The write value should be 0000."]
#[inline(always)]
pub fn reserved(
self,
) -> crate::common::RegisterField<0, 0xf, 1, 0, u8, u8, Busscntp6B_SPEC, crate::common::RW>
{
crate::common::RegisterField::<0,0xf,1,0,u8,u8,Busscntp6B_SPEC,crate::common::RW>::from_register(self,0)
}
}
impl ::core::default::Default for Busscntp6B {
#[inline(always)]
fn default() -> Busscntp6B {
<crate::RegValueT<Busscntp6B_SPEC> as RegisterValue<_>>::new(0)
}
}
pub mod busscntp6b {
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Ewres_SPEC;
pub type Ewres = crate::EnumBitfieldStruct<u8, Ewres_SPEC>;
impl Ewres {
#[doc = "Not accepted."]
pub const _0: Self = Self::new(0);
#[doc = "Accepted but error response is ignored."]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Arbmet_SPEC;
pub type Arbmet = crate::EnumBitfieldStruct<u8, Arbmet_SPEC>;
impl Arbmet {
#[doc = "fixed priority"]
pub const _00: Self = Self::new(0);
#[doc = "round-robin"]
pub const _01: Self = Self::new(1);
}
}
#[doc(hidden)]
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct Busscnt_SPEC;
impl crate::sealed::RegSpec for Busscnt_SPEC {
type DataType = u16;
}
#[doc = "Slave Bus Control Register %s"]
pub type Busscnt = crate::RegValueT<Busscnt_SPEC>;
impl Busscnt {
#[doc = "Early Write Response\nWhether the next write request is accepted or not until a response for the write transaction comes back."]
#[inline(always)]
pub fn ewres(
self,
) -> crate::common::RegisterField<
8,
0x1,
1,
0,
busscnt::Ewres,
busscnt::Ewres,
Busscnt_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
8,
0x1,
1,
0,
busscnt::Ewres,
busscnt::Ewres,
Busscnt_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[doc = "Arbitration Method\nSpecify the priority between groups"]
#[inline(always)]
pub fn arbmet(
self,
) -> crate::common::RegisterField<
4,
0x3,
1,
0,
busscnt::Arbmet,
busscnt::Arbmet,
Busscnt_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
4,
0x3,
1,
0,
busscnt::Arbmet,
busscnt::Arbmet,
Busscnt_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[doc = "These bits are read as 0000. The write value should be 0000."]
#[inline(always)]
pub fn reserved(
self,
) -> crate::common::RegisterField<0, 0xf, 1, 0, u8, u8, Busscnt_SPEC, crate::common::RW> {
crate::common::RegisterField::<0,0xf,1,0,u8,u8,Busscnt_SPEC,crate::common::RW>::from_register(self,0)
}
}
impl ::core::default::Default for Busscnt {
#[inline(always)]
fn default() -> Busscnt {
<crate::RegValueT<Busscnt_SPEC> as RegisterValue<_>>::new(0)
}
}
pub mod busscnt {
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Ewres_SPEC;
pub type Ewres = crate::EnumBitfieldStruct<u8, Ewres_SPEC>;
impl Ewres {
#[doc = "Not accepted."]
pub const _0: Self = Self::new(0);
#[doc = "Accepted but error response is ignored."]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Arbmet_SPEC;
pub type Arbmet = crate::EnumBitfieldStruct<u8, Arbmet_SPEC>;
impl Arbmet {
#[doc = "fixed priority"]
pub const _00: Self = Self::new(0);
#[doc = "round-robin"]
pub const _01: Self = Self::new(1);
}
}