#![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"USB 2.0 Full-Speed Module"]
unsafe impl ::core::marker::Send for super::Usbfs {}
unsafe impl ::core::marker::Sync for super::Usbfs {}
impl super::Usbfs {
#[allow(unused)]
#[inline(always)]
pub(crate) const fn _svd2pac_as_ptr(&self) -> *mut u8 {
self.ptr
}
#[inline(always)]
pub const fn syscfg(
&self,
) -> &'static crate::common::Reg<self::Syscfg_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Syscfg_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(0usize),
)
}
}
#[inline(always)]
pub const fn syssts0(
&self,
) -> &'static crate::common::Reg<self::Syssts0_SPEC, crate::common::R> {
unsafe {
crate::common::Reg::<self::Syssts0_SPEC, crate::common::R>::from_ptr(
self._svd2pac_as_ptr().add(4usize),
)
}
}
#[inline(always)]
pub const fn dvstctr0(
&self,
) -> &'static crate::common::Reg<self::Dvstctr0_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Dvstctr0_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(8usize),
)
}
}
#[inline(always)]
pub const fn cfifo(&self) -> &'static crate::common::Reg<self::Cfifo_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Cfifo_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(20usize),
)
}
}
#[inline(always)]
pub const fn cfifol(
&self,
) -> &'static crate::common::Reg<self::Cfifol_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Cfifol_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(20usize),
)
}
}
#[inline(always)]
pub const fn dfifo(
&self,
) -> &'static crate::common::ClusterRegisterArray<
crate::common::Reg<self::Dfifo_SPEC, crate::common::RW>,
2,
0x4,
> {
unsafe {
crate::common::ClusterRegisterArray::from_ptr(self._svd2pac_as_ptr().add(0x18usize))
}
}
#[inline(always)]
pub const fn dfifol(
&self,
) -> &'static crate::common::ClusterRegisterArray<
crate::common::Reg<self::Dfifol_SPEC, crate::common::RW>,
2,
0x4,
> {
unsafe {
crate::common::ClusterRegisterArray::from_ptr(self._svd2pac_as_ptr().add(0x18usize))
}
}
#[inline(always)]
pub const fn cfifosel(
&self,
) -> &'static crate::common::Reg<self::Cfifosel_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Cfifosel_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(32usize),
)
}
}
#[inline(always)]
pub const fn cfifoctr(
&self,
) -> &'static crate::common::Reg<self::Cfifoctr_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Cfifoctr_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(34usize),
)
}
}
#[inline(always)]
pub const fn dfifosel(
&self,
) -> &'static crate::common::ClusterRegisterArray<
crate::common::Reg<self::Dfifosel_SPEC, crate::common::RW>,
2,
0x4,
> {
unsafe {
crate::common::ClusterRegisterArray::from_ptr(self._svd2pac_as_ptr().add(0x28usize))
}
}
#[inline(always)]
pub const fn dfifoctr(
&self,
) -> &'static crate::common::ClusterRegisterArray<
crate::common::Reg<self::Dfifoctr_SPEC, crate::common::RW>,
2,
0x4,
> {
unsafe {
crate::common::ClusterRegisterArray::from_ptr(self._svd2pac_as_ptr().add(0x2ausize))
}
}
#[inline(always)]
pub const fn intenb0(
&self,
) -> &'static crate::common::Reg<self::Intenb0_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Intenb0_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(48usize),
)
}
}
#[inline(always)]
pub const fn intenb1(
&self,
) -> &'static crate::common::Reg<self::Intenb1_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Intenb1_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(50usize),
)
}
}
#[inline(always)]
pub const fn brdyenb(
&self,
) -> &'static crate::common::Reg<self::Brdyenb_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Brdyenb_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(54usize),
)
}
}
#[inline(always)]
pub const fn nrdyenb(
&self,
) -> &'static crate::common::Reg<self::Nrdyenb_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Nrdyenb_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(56usize),
)
}
}
#[inline(always)]
pub const fn bempenb(
&self,
) -> &'static crate::common::Reg<self::Bempenb_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Bempenb_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(58usize),
)
}
}
#[inline(always)]
pub const fn sofcfg(
&self,
) -> &'static crate::common::Reg<self::Sofcfg_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Sofcfg_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(60usize),
)
}
}
#[inline(always)]
pub const fn intsts0(
&self,
) -> &'static crate::common::Reg<self::Intsts0_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Intsts0_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(64usize),
)
}
}
#[inline(always)]
pub const fn intsts1(
&self,
) -> &'static crate::common::Reg<self::Intsts1_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Intsts1_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(66usize),
)
}
}
#[inline(always)]
pub const fn brdysts(
&self,
) -> &'static crate::common::Reg<self::Brdysts_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Brdysts_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(70usize),
)
}
}
#[inline(always)]
pub const fn nrdysts(
&self,
) -> &'static crate::common::Reg<self::Nrdysts_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Nrdysts_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(72usize),
)
}
}
#[inline(always)]
pub const fn bempsts(
&self,
) -> &'static crate::common::Reg<self::Bempsts_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Bempsts_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(74usize),
)
}
}
#[inline(always)]
pub const fn frmnum(
&self,
) -> &'static crate::common::Reg<self::Frmnum_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Frmnum_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(76usize),
)
}
}
#[inline(always)]
pub const fn dvchgr(
&self,
) -> &'static crate::common::Reg<self::Dvchgr_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Dvchgr_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(78usize),
)
}
}
#[inline(always)]
pub const fn usbaddr(
&self,
) -> &'static crate::common::Reg<self::Usbaddr_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Usbaddr_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(80usize),
)
}
}
#[inline(always)]
pub const fn usbreq(
&self,
) -> &'static crate::common::Reg<self::Usbreq_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Usbreq_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(84usize),
)
}
}
#[inline(always)]
pub const fn usbval(
&self,
) -> &'static crate::common::Reg<self::Usbval_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Usbval_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(86usize),
)
}
}
#[inline(always)]
pub const fn usbindx(
&self,
) -> &'static crate::common::Reg<self::Usbindx_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Usbindx_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(88usize),
)
}
}
#[inline(always)]
pub const fn usbleng(
&self,
) -> &'static crate::common::Reg<self::Usbleng_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Usbleng_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(90usize),
)
}
}
#[inline(always)]
pub const fn dcpcfg(
&self,
) -> &'static crate::common::Reg<self::Dcpcfg_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Dcpcfg_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(92usize),
)
}
}
#[inline(always)]
pub const fn dcpmaxp(
&self,
) -> &'static crate::common::Reg<self::Dcpmaxp_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Dcpmaxp_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(94usize),
)
}
}
#[inline(always)]
pub const fn dcpctr(
&self,
) -> &'static crate::common::Reg<self::Dcpctr_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Dcpctr_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(96usize),
)
}
}
#[inline(always)]
pub const fn pipesel(
&self,
) -> &'static crate::common::Reg<self::Pipesel_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Pipesel_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(100usize),
)
}
}
#[inline(always)]
pub const fn pipecfg(
&self,
) -> &'static crate::common::Reg<self::Pipecfg_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Pipecfg_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(104usize),
)
}
}
#[inline(always)]
pub const fn pipemaxp(
&self,
) -> &'static crate::common::Reg<self::Pipemaxp_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Pipemaxp_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(108usize),
)
}
}
#[inline(always)]
pub const fn pipeperi(
&self,
) -> &'static crate::common::Reg<self::Pipeperi_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Pipeperi_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(110usize),
)
}
}
#[inline(always)]
pub const fn pipectr(
&self,
) -> &'static crate::common::ClusterRegisterArray<
crate::common::Reg<self::Pipectr_SPEC, crate::common::RW>,
4,
0x2,
> {
unsafe {
crate::common::ClusterRegisterArray::from_ptr(self._svd2pac_as_ptr().add(0x7ausize))
}
}
#[inline(always)]
pub const fn pipetre(
&self,
) -> &'static crate::common::ClusterRegisterArray<
crate::common::Reg<self::Pipetre_SPEC, crate::common::RW>,
5,
0x4,
> {
unsafe {
crate::common::ClusterRegisterArray::from_ptr(self._svd2pac_as_ptr().add(0x90usize))
}
}
#[inline(always)]
pub const fn pipetrn(
&self,
) -> &'static crate::common::ClusterRegisterArray<
crate::common::Reg<self::Pipetrn_SPEC, crate::common::RW>,
5,
0x4,
> {
unsafe {
crate::common::ClusterRegisterArray::from_ptr(self._svd2pac_as_ptr().add(0x92usize))
}
}
#[inline(always)]
pub const fn bcctrl1(
&self,
) -> &'static crate::common::Reg<self::Bcctrl1_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Bcctrl1_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(176usize),
)
}
}
#[inline(always)]
pub const fn bcctrl2(
&self,
) -> &'static crate::common::Reg<self::Bcctrl2_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Bcctrl2_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(180usize),
)
}
}
#[inline(always)]
pub const fn devadd(
&self,
) -> &'static crate::common::ClusterRegisterArray<
crate::common::Reg<self::Devadd_SPEC, crate::common::RW>,
6,
0x2,
> {
unsafe {
crate::common::ClusterRegisterArray::from_ptr(self._svd2pac_as_ptr().add(0xd0usize))
}
}
#[inline(always)]
pub const fn physectrl(
&self,
) -> &'static crate::common::Reg<self::Physectrl_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Physectrl_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(244usize),
)
}
}
#[inline(always)]
pub const fn dpusr0r(
&self,
) -> &'static crate::common::Reg<self::Dpusr0R_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Dpusr0R_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(1024usize),
)
}
}
#[inline(always)]
pub const fn dpusr1r(
&self,
) -> &'static crate::common::Reg<self::Dpusr1R_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Dpusr1R_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(1028usize),
)
}
}
}
#[doc(hidden)]
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct Syscfg_SPEC;
impl crate::sealed::RegSpec for Syscfg_SPEC {
type DataType = u16;
}
pub type Syscfg = crate::RegValueT<Syscfg_SPEC>;
impl Syscfg {
#[inline(always)]
pub fn usbe(
self,
) -> crate::common::RegisterField<
0,
0x1,
1,
0,
syscfg::Usbe,
syscfg::Usbe,
Syscfg_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
0,
0x1,
1,
0,
syscfg::Usbe,
syscfg::Usbe,
Syscfg_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[inline(always)]
pub fn dprpu(
self,
) -> crate::common::RegisterField<
4,
0x1,
1,
0,
syscfg::Dprpu,
syscfg::Dprpu,
Syscfg_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
4,
0x1,
1,
0,
syscfg::Dprpu,
syscfg::Dprpu,
Syscfg_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[inline(always)]
pub fn drpd(
self,
) -> crate::common::RegisterField<
5,
0x1,
1,
0,
syscfg::Drpd,
syscfg::Drpd,
Syscfg_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
5,
0x1,
1,
0,
syscfg::Drpd,
syscfg::Drpd,
Syscfg_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[inline(always)]
pub fn dcfm(
self,
) -> crate::common::RegisterField<
6,
0x1,
1,
0,
syscfg::Dcfm,
syscfg::Dcfm,
Syscfg_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
6,
0x1,
1,
0,
syscfg::Dcfm,
syscfg::Dcfm,
Syscfg_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[inline(always)]
pub fn scke(
self,
) -> crate::common::RegisterField<
10,
0x1,
1,
0,
syscfg::Scke,
syscfg::Scke,
Syscfg_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
10,
0x1,
1,
0,
syscfg::Scke,
syscfg::Scke,
Syscfg_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
}
impl ::core::default::Default for Syscfg {
#[inline(always)]
fn default() -> Syscfg {
<crate::RegValueT<Syscfg_SPEC> as RegisterValue<_>>::new(0)
}
}
pub mod syscfg {
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Usbe_SPEC;
pub type Usbe = crate::EnumBitfieldStruct<u8, Usbe_SPEC>;
impl Usbe {
pub const _0: Self = Self::new(0);
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Dprpu_SPEC;
pub type Dprpu = crate::EnumBitfieldStruct<u8, Dprpu_SPEC>;
impl Dprpu {
pub const _0: Self = Self::new(0);
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Drpd_SPEC;
pub type Drpd = crate::EnumBitfieldStruct<u8, Drpd_SPEC>;
impl Drpd {
pub const _0: Self = Self::new(0);
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Dcfm_SPEC;
pub type Dcfm = crate::EnumBitfieldStruct<u8, Dcfm_SPEC>;
impl Dcfm {
pub const _0: Self = Self::new(0);
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Scke_SPEC;
pub type Scke = crate::EnumBitfieldStruct<u8, Scke_SPEC>;
impl Scke {
pub const _0: Self = Self::new(0);
pub const _1: Self = Self::new(1);
}
}
#[doc(hidden)]
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct Syssts0_SPEC;
impl crate::sealed::RegSpec for Syssts0_SPEC {
type DataType = u16;
}
pub type Syssts0 = crate::RegValueT<Syssts0_SPEC>;
impl Syssts0 {
#[inline(always)]
pub fn lnst(
self,
) -> crate::common::RegisterField<0, 0x3, 1, 0, u8, u8, Syssts0_SPEC, crate::common::R> {
crate::common::RegisterField::<0,0x3,1,0,u8,u8,Syssts0_SPEC,crate::common::R>::from_register(self,0)
}
#[inline(always)]
pub fn idmon(
self,
) -> crate::common::RegisterField<
2,
0x1,
1,
0,
syssts0::Idmon,
syssts0::Idmon,
Syssts0_SPEC,
crate::common::R,
> {
crate::common::RegisterField::<
2,
0x1,
1,
0,
syssts0::Idmon,
syssts0::Idmon,
Syssts0_SPEC,
crate::common::R,
>::from_register(self, 0)
}
#[inline(always)]
pub fn sofea(
self,
) -> crate::common::RegisterField<
5,
0x1,
1,
0,
syssts0::Sofea,
syssts0::Sofea,
Syssts0_SPEC,
crate::common::R,
> {
crate::common::RegisterField::<
5,
0x1,
1,
0,
syssts0::Sofea,
syssts0::Sofea,
Syssts0_SPEC,
crate::common::R,
>::from_register(self, 0)
}
#[inline(always)]
pub fn htact(
self,
) -> crate::common::RegisterField<
6,
0x1,
1,
0,
syssts0::Htact,
syssts0::Htact,
Syssts0_SPEC,
crate::common::R,
> {
crate::common::RegisterField::<
6,
0x1,
1,
0,
syssts0::Htact,
syssts0::Htact,
Syssts0_SPEC,
crate::common::R,
>::from_register(self, 0)
}
#[inline(always)]
pub fn ovcmon(
self,
) -> crate::common::RegisterField<14, 0x3, 1, 0, u8, u8, Syssts0_SPEC, crate::common::R> {
crate::common::RegisterField::<14,0x3,1,0,u8,u8,Syssts0_SPEC,crate::common::R>::from_register(self,0)
}
}
impl ::core::default::Default for Syssts0 {
#[inline(always)]
fn default() -> Syssts0 {
<crate::RegValueT<Syssts0_SPEC> as RegisterValue<_>>::new(0)
}
}
pub mod syssts0 {
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Idmon_SPEC;
pub type Idmon = crate::EnumBitfieldStruct<u8, Idmon_SPEC>;
impl Idmon {
pub const _0: Self = Self::new(0);
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Sofea_SPEC;
pub type Sofea = crate::EnumBitfieldStruct<u8, Sofea_SPEC>;
impl Sofea {
pub const _0: Self = Self::new(0);
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Htact_SPEC;
pub type Htact = crate::EnumBitfieldStruct<u8, Htact_SPEC>;
impl Htact {
pub const _0: Self = Self::new(0);
pub const _1: Self = Self::new(1);
}
}
#[doc(hidden)]
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct Dvstctr0_SPEC;
impl crate::sealed::RegSpec for Dvstctr0_SPEC {
type DataType = u16;
}
pub type Dvstctr0 = crate::RegValueT<Dvstctr0_SPEC>;
impl Dvstctr0 {
#[inline(always)]
pub fn rhst(
self,
) -> crate::common::RegisterField<
0,
0x7,
1,
0,
dvstctr0::Rhst,
dvstctr0::Rhst,
Dvstctr0_SPEC,
crate::common::R,
> {
crate::common::RegisterField::<
0,
0x7,
1,
0,
dvstctr0::Rhst,
dvstctr0::Rhst,
Dvstctr0_SPEC,
crate::common::R,
>::from_register(self, 0)
}
#[inline(always)]
pub fn uact(
self,
) -> crate::common::RegisterField<
4,
0x1,
1,
0,
dvstctr0::Uact,
dvstctr0::Uact,
Dvstctr0_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
4,
0x1,
1,
0,
dvstctr0::Uact,
dvstctr0::Uact,
Dvstctr0_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[inline(always)]
pub fn resume(
self,
) -> crate::common::RegisterField<
5,
0x1,
1,
0,
dvstctr0::Resume,
dvstctr0::Resume,
Dvstctr0_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
5,
0x1,
1,
0,
dvstctr0::Resume,
dvstctr0::Resume,
Dvstctr0_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[inline(always)]
pub fn usbrst(
self,
) -> crate::common::RegisterField<
6,
0x1,
1,
0,
dvstctr0::Usbrst,
dvstctr0::Usbrst,
Dvstctr0_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
6,
0x1,
1,
0,
dvstctr0::Usbrst,
dvstctr0::Usbrst,
Dvstctr0_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[inline(always)]
pub fn rwupe(
self,
) -> crate::common::RegisterField<
7,
0x1,
1,
0,
dvstctr0::Rwupe,
dvstctr0::Rwupe,
Dvstctr0_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
7,
0x1,
1,
0,
dvstctr0::Rwupe,
dvstctr0::Rwupe,
Dvstctr0_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[inline(always)]
pub fn wkup(
self,
) -> crate::common::RegisterField<
8,
0x1,
1,
0,
dvstctr0::Wkup,
dvstctr0::Wkup,
Dvstctr0_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
8,
0x1,
1,
0,
dvstctr0::Wkup,
dvstctr0::Wkup,
Dvstctr0_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[inline(always)]
pub fn vbusen(
self,
) -> crate::common::RegisterField<
9,
0x1,
1,
0,
dvstctr0::Vbusen,
dvstctr0::Vbusen,
Dvstctr0_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
9,
0x1,
1,
0,
dvstctr0::Vbusen,
dvstctr0::Vbusen,
Dvstctr0_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[inline(always)]
pub fn exicen(
self,
) -> crate::common::RegisterField<
10,
0x1,
1,
0,
dvstctr0::Exicen,
dvstctr0::Exicen,
Dvstctr0_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
10,
0x1,
1,
0,
dvstctr0::Exicen,
dvstctr0::Exicen,
Dvstctr0_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[inline(always)]
pub fn hnpbtoa(
self,
) -> crate::common::RegisterFieldBool<11, 1, 0, Dvstctr0_SPEC, crate::common::RW> {
crate::common::RegisterFieldBool::<11,1,0,Dvstctr0_SPEC,crate::common::RW>::from_register(self,0)
}
}
impl ::core::default::Default for Dvstctr0 {
#[inline(always)]
fn default() -> Dvstctr0 {
<crate::RegValueT<Dvstctr0_SPEC> as RegisterValue<_>>::new(0)
}
}
pub mod dvstctr0 {
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Rhst_SPEC;
pub type Rhst = crate::EnumBitfieldStruct<u8, Rhst_SPEC>;
impl Rhst {
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);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Uact_SPEC;
pub type Uact = crate::EnumBitfieldStruct<u8, Uact_SPEC>;
impl Uact {
pub const _0: Self = Self::new(0);
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Resume_SPEC;
pub type Resume = crate::EnumBitfieldStruct<u8, Resume_SPEC>;
impl Resume {
pub const _0: Self = Self::new(0);
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Usbrst_SPEC;
pub type Usbrst = crate::EnumBitfieldStruct<u8, Usbrst_SPEC>;
impl Usbrst {
pub const _0: Self = Self::new(0);
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Rwupe_SPEC;
pub type Rwupe = crate::EnumBitfieldStruct<u8, Rwupe_SPEC>;
impl Rwupe {
pub const _0: Self = Self::new(0);
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Wkup_SPEC;
pub type Wkup = crate::EnumBitfieldStruct<u8, Wkup_SPEC>;
impl Wkup {
pub const _0: Self = Self::new(0);
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Vbusen_SPEC;
pub type Vbusen = crate::EnumBitfieldStruct<u8, Vbusen_SPEC>;
impl Vbusen {
pub const _0: Self = Self::new(0);
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Exicen_SPEC;
pub type Exicen = crate::EnumBitfieldStruct<u8, Exicen_SPEC>;
impl Exicen {
pub const _0: Self = Self::new(0);
pub const _1: Self = Self::new(1);
}
}
#[doc(hidden)]
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct Cfifo_SPEC;
impl crate::sealed::RegSpec for Cfifo_SPEC {
type DataType = u16;
}
pub type Cfifo = crate::RegValueT<Cfifo_SPEC>;
impl Cfifo {
#[inline(always)]
pub fn fifoport(
self,
) -> crate::common::RegisterField<0, 0xffff, 1, 0, u16, u16, Cfifo_SPEC, crate::common::RW>
{
crate::common::RegisterField::<0,0xffff,1,0,u16,u16,Cfifo_SPEC,crate::common::RW>::from_register(self,0)
}
}
impl ::core::default::Default for Cfifo {
#[inline(always)]
fn default() -> Cfifo {
<crate::RegValueT<Cfifo_SPEC> as RegisterValue<_>>::new(0)
}
}
#[doc(hidden)]
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct Cfifol_SPEC;
impl crate::sealed::RegSpec for Cfifol_SPEC {
type DataType = u8;
}
pub type Cfifol = crate::RegValueT<Cfifol_SPEC>;
impl NoBitfieldReg<Cfifol_SPEC> for Cfifol {}
impl ::core::default::Default for Cfifol {
#[inline(always)]
fn default() -> Cfifol {
<crate::RegValueT<Cfifol_SPEC> as RegisterValue<_>>::new(0)
}
}
#[doc(hidden)]
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct Dfifo_SPEC;
impl crate::sealed::RegSpec for Dfifo_SPEC {
type DataType = u16;
}
pub type Dfifo = crate::RegValueT<Dfifo_SPEC>;
impl Dfifo {
#[inline(always)]
pub fn fifoport(
self,
) -> crate::common::RegisterField<0, 0xffff, 1, 0, u16, u16, Dfifo_SPEC, crate::common::RW>
{
crate::common::RegisterField::<0,0xffff,1,0,u16,u16,Dfifo_SPEC,crate::common::RW>::from_register(self,0)
}
}
impl ::core::default::Default for Dfifo {
#[inline(always)]
fn default() -> Dfifo {
<crate::RegValueT<Dfifo_SPEC> as RegisterValue<_>>::new(0)
}
}
#[doc(hidden)]
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct Dfifol_SPEC;
impl crate::sealed::RegSpec for Dfifol_SPEC {
type DataType = u8;
}
pub type Dfifol = crate::RegValueT<Dfifol_SPEC>;
impl NoBitfieldReg<Dfifol_SPEC> for Dfifol {}
impl ::core::default::Default for Dfifol {
#[inline(always)]
fn default() -> Dfifol {
<crate::RegValueT<Dfifol_SPEC> as RegisterValue<_>>::new(0)
}
}
#[doc(hidden)]
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct Cfifosel_SPEC;
impl crate::sealed::RegSpec for Cfifosel_SPEC {
type DataType = u16;
}
pub type Cfifosel = crate::RegValueT<Cfifosel_SPEC>;
impl Cfifosel {
#[inline(always)]
pub fn curpipe(
self,
) -> crate::common::RegisterField<
0,
0xf,
1,
0,
cfifosel::Curpipe,
cfifosel::Curpipe,
Cfifosel_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
0,
0xf,
1,
0,
cfifosel::Curpipe,
cfifosel::Curpipe,
Cfifosel_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[inline(always)]
pub fn isel(
self,
) -> crate::common::RegisterField<
5,
0x1,
1,
0,
cfifosel::Isel,
cfifosel::Isel,
Cfifosel_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
5,
0x1,
1,
0,
cfifosel::Isel,
cfifosel::Isel,
Cfifosel_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[inline(always)]
pub fn bigend(
self,
) -> crate::common::RegisterField<
8,
0x1,
1,
0,
cfifosel::Bigend,
cfifosel::Bigend,
Cfifosel_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
8,
0x1,
1,
0,
cfifosel::Bigend,
cfifosel::Bigend,
Cfifosel_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[inline(always)]
pub fn mbw(
self,
) -> crate::common::RegisterField<
10,
0x1,
1,
0,
cfifosel::Mbw,
cfifosel::Mbw,
Cfifosel_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
10,
0x1,
1,
0,
cfifosel::Mbw,
cfifosel::Mbw,
Cfifosel_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[inline(always)]
pub fn rew(
self,
) -> crate::common::RegisterField<
14,
0x1,
1,
0,
cfifosel::Rew,
cfifosel::Rew,
Cfifosel_SPEC,
crate::common::W,
> {
crate::common::RegisterField::<
14,
0x1,
1,
0,
cfifosel::Rew,
cfifosel::Rew,
Cfifosel_SPEC,
crate::common::W,
>::from_register(self, 0)
}
#[inline(always)]
pub fn rcnt(
self,
) -> crate::common::RegisterField<
15,
0x1,
1,
0,
cfifosel::Rcnt,
cfifosel::Rcnt,
Cfifosel_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
15,
0x1,
1,
0,
cfifosel::Rcnt,
cfifosel::Rcnt,
Cfifosel_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
}
impl ::core::default::Default for Cfifosel {
#[inline(always)]
fn default() -> Cfifosel {
<crate::RegValueT<Cfifosel_SPEC> as RegisterValue<_>>::new(0)
}
}
pub mod cfifosel {
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Curpipe_SPEC;
pub type Curpipe = crate::EnumBitfieldStruct<u8, Curpipe_SPEC>;
impl Curpipe {
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);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Isel_SPEC;
pub type Isel = crate::EnumBitfieldStruct<u8, Isel_SPEC>;
impl Isel {
pub const _0: Self = Self::new(0);
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Bigend_SPEC;
pub type Bigend = crate::EnumBitfieldStruct<u8, Bigend_SPEC>;
impl Bigend {
pub const _0: Self = Self::new(0);
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Mbw_SPEC;
pub type Mbw = crate::EnumBitfieldStruct<u8, Mbw_SPEC>;
impl Mbw {
pub const _0: Self = Self::new(0);
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Rew_SPEC;
pub type Rew = crate::EnumBitfieldStruct<u8, Rew_SPEC>;
impl Rew {
pub const _0: Self = Self::new(0);
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Rcnt_SPEC;
pub type Rcnt = crate::EnumBitfieldStruct<u8, Rcnt_SPEC>;
impl Rcnt {
pub const _0: Self = Self::new(0);
pub const _1: Self = Self::new(1);
}
}
#[doc(hidden)]
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct Cfifoctr_SPEC;
impl crate::sealed::RegSpec for Cfifoctr_SPEC {
type DataType = u16;
}
pub type Cfifoctr = crate::RegValueT<Cfifoctr_SPEC>;
impl Cfifoctr {
#[inline(always)]
pub fn dtln(
self,
) -> crate::common::RegisterField<0, 0x1ff, 1, 0, u16, u16, Cfifoctr_SPEC, crate::common::R>
{
crate::common::RegisterField::<0,0x1ff,1,0,u16,u16,Cfifoctr_SPEC,crate::common::R>::from_register(self,0)
}
#[inline(always)]
pub fn frdy(
self,
) -> crate::common::RegisterField<
13,
0x1,
1,
0,
cfifoctr::Frdy,
cfifoctr::Frdy,
Cfifoctr_SPEC,
crate::common::R,
> {
crate::common::RegisterField::<
13,
0x1,
1,
0,
cfifoctr::Frdy,
cfifoctr::Frdy,
Cfifoctr_SPEC,
crate::common::R,
>::from_register(self, 0)
}
#[inline(always)]
pub fn bclr(
self,
) -> crate::common::RegisterField<
14,
0x1,
1,
0,
cfifoctr::Bclr,
cfifoctr::Bclr,
Cfifoctr_SPEC,
crate::common::W,
> {
crate::common::RegisterField::<
14,
0x1,
1,
0,
cfifoctr::Bclr,
cfifoctr::Bclr,
Cfifoctr_SPEC,
crate::common::W,
>::from_register(self, 0)
}
#[inline(always)]
pub fn bval(
self,
) -> crate::common::RegisterField<
15,
0x1,
1,
0,
cfifoctr::Bval,
cfifoctr::Bval,
Cfifoctr_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
15,
0x1,
1,
0,
cfifoctr::Bval,
cfifoctr::Bval,
Cfifoctr_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
}
impl ::core::default::Default for Cfifoctr {
#[inline(always)]
fn default() -> Cfifoctr {
<crate::RegValueT<Cfifoctr_SPEC> as RegisterValue<_>>::new(0)
}
}
pub mod cfifoctr {
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Frdy_SPEC;
pub type Frdy = crate::EnumBitfieldStruct<u8, Frdy_SPEC>;
impl Frdy {
pub const _0: Self = Self::new(0);
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Bclr_SPEC;
pub type Bclr = crate::EnumBitfieldStruct<u8, Bclr_SPEC>;
impl Bclr {
pub const _0: Self = Self::new(0);
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Bval_SPEC;
pub type Bval = crate::EnumBitfieldStruct<u8, Bval_SPEC>;
impl Bval {
pub const _0: Self = Self::new(0);
pub const _1: Self = Self::new(1);
}
}
#[doc(hidden)]
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct Dfifosel_SPEC;
impl crate::sealed::RegSpec for Dfifosel_SPEC {
type DataType = u16;
}
pub type Dfifosel = crate::RegValueT<Dfifosel_SPEC>;
impl Dfifosel {
#[inline(always)]
pub fn curpipe(
self,
) -> crate::common::RegisterField<
0,
0xf,
1,
0,
dfifosel::Curpipe,
dfifosel::Curpipe,
Dfifosel_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
0,
0xf,
1,
0,
dfifosel::Curpipe,
dfifosel::Curpipe,
Dfifosel_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[inline(always)]
pub fn bigend(
self,
) -> crate::common::RegisterField<
8,
0x1,
1,
0,
dfifosel::Bigend,
dfifosel::Bigend,
Dfifosel_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
8,
0x1,
1,
0,
dfifosel::Bigend,
dfifosel::Bigend,
Dfifosel_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[inline(always)]
pub fn mbw(
self,
) -> crate::common::RegisterField<
10,
0x1,
1,
0,
dfifosel::Mbw,
dfifosel::Mbw,
Dfifosel_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
10,
0x1,
1,
0,
dfifosel::Mbw,
dfifosel::Mbw,
Dfifosel_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[inline(always)]
pub fn dreqe(
self,
) -> crate::common::RegisterField<
12,
0x1,
1,
0,
dfifosel::Dreqe,
dfifosel::Dreqe,
Dfifosel_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
12,
0x1,
1,
0,
dfifosel::Dreqe,
dfifosel::Dreqe,
Dfifosel_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[inline(always)]
pub fn dclrm(
self,
) -> crate::common::RegisterField<
13,
0x1,
1,
0,
dfifosel::Dclrm,
dfifosel::Dclrm,
Dfifosel_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
13,
0x1,
1,
0,
dfifosel::Dclrm,
dfifosel::Dclrm,
Dfifosel_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[inline(always)]
pub fn rew(
self,
) -> crate::common::RegisterField<
14,
0x1,
1,
0,
dfifosel::Rew,
dfifosel::Rew,
Dfifosel_SPEC,
crate::common::W,
> {
crate::common::RegisterField::<
14,
0x1,
1,
0,
dfifosel::Rew,
dfifosel::Rew,
Dfifosel_SPEC,
crate::common::W,
>::from_register(self, 0)
}
#[inline(always)]
pub fn rcnt(
self,
) -> crate::common::RegisterField<
15,
0x1,
1,
0,
dfifosel::Rcnt,
dfifosel::Rcnt,
Dfifosel_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
15,
0x1,
1,
0,
dfifosel::Rcnt,
dfifosel::Rcnt,
Dfifosel_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
}
impl ::core::default::Default for Dfifosel {
#[inline(always)]
fn default() -> Dfifosel {
<crate::RegValueT<Dfifosel_SPEC> as RegisterValue<_>>::new(0)
}
}
pub mod dfifosel {
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Curpipe_SPEC;
pub type Curpipe = crate::EnumBitfieldStruct<u8, Curpipe_SPEC>;
impl Curpipe {
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);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Bigend_SPEC;
pub type Bigend = crate::EnumBitfieldStruct<u8, Bigend_SPEC>;
impl Bigend {
pub const _0: Self = Self::new(0);
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Mbw_SPEC;
pub type Mbw = crate::EnumBitfieldStruct<u8, Mbw_SPEC>;
impl Mbw {
pub const _0: Self = Self::new(0);
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Dreqe_SPEC;
pub type Dreqe = crate::EnumBitfieldStruct<u8, Dreqe_SPEC>;
impl Dreqe {
pub const _0: Self = Self::new(0);
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Dclrm_SPEC;
pub type Dclrm = crate::EnumBitfieldStruct<u8, Dclrm_SPEC>;
impl Dclrm {
pub const _0: Self = Self::new(0);
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Rew_SPEC;
pub type Rew = crate::EnumBitfieldStruct<u8, Rew_SPEC>;
impl Rew {
pub const _0: Self = Self::new(0);
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Rcnt_SPEC;
pub type Rcnt = crate::EnumBitfieldStruct<u8, Rcnt_SPEC>;
impl Rcnt {
pub const _0: Self = Self::new(0);
pub const _1: Self = Self::new(1);
}
}
#[doc(hidden)]
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct Dfifoctr_SPEC;
impl crate::sealed::RegSpec for Dfifoctr_SPEC {
type DataType = u16;
}
pub type Dfifoctr = crate::RegValueT<Dfifoctr_SPEC>;
impl Dfifoctr {
#[inline(always)]
pub fn dtln(
self,
) -> crate::common::RegisterField<0, 0x1ff, 1, 0, u16, u16, Dfifoctr_SPEC, crate::common::R>
{
crate::common::RegisterField::<0,0x1ff,1,0,u16,u16,Dfifoctr_SPEC,crate::common::R>::from_register(self,0)
}
#[inline(always)]
pub fn frdy(
self,
) -> crate::common::RegisterField<
13,
0x1,
1,
0,
dfifoctr::Frdy,
dfifoctr::Frdy,
Dfifoctr_SPEC,
crate::common::R,
> {
crate::common::RegisterField::<
13,
0x1,
1,
0,
dfifoctr::Frdy,
dfifoctr::Frdy,
Dfifoctr_SPEC,
crate::common::R,
>::from_register(self, 0)
}
#[inline(always)]
pub fn bclr(
self,
) -> crate::common::RegisterField<
14,
0x1,
1,
0,
dfifoctr::Bclr,
dfifoctr::Bclr,
Dfifoctr_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
14,
0x1,
1,
0,
dfifoctr::Bclr,
dfifoctr::Bclr,
Dfifoctr_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[inline(always)]
pub fn bval(
self,
) -> crate::common::RegisterField<
15,
0x1,
1,
0,
dfifoctr::Bval,
dfifoctr::Bval,
Dfifoctr_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
15,
0x1,
1,
0,
dfifoctr::Bval,
dfifoctr::Bval,
Dfifoctr_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
}
impl ::core::default::Default for Dfifoctr {
#[inline(always)]
fn default() -> Dfifoctr {
<crate::RegValueT<Dfifoctr_SPEC> as RegisterValue<_>>::new(0)
}
}
pub mod dfifoctr {
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Frdy_SPEC;
pub type Frdy = crate::EnumBitfieldStruct<u8, Frdy_SPEC>;
impl Frdy {
pub const _0: Self = Self::new(0);
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Bclr_SPEC;
pub type Bclr = crate::EnumBitfieldStruct<u8, Bclr_SPEC>;
impl Bclr {
pub const _0: Self = Self::new(0);
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Bval_SPEC;
pub type Bval = crate::EnumBitfieldStruct<u8, Bval_SPEC>;
impl Bval {
pub const _0: Self = Self::new(0);
pub const _1: Self = Self::new(1);
}
}
#[doc(hidden)]
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct Intenb0_SPEC;
impl crate::sealed::RegSpec for Intenb0_SPEC {
type DataType = u16;
}
pub type Intenb0 = crate::RegValueT<Intenb0_SPEC>;
impl Intenb0 {
#[inline(always)]
pub fn brdye(
self,
) -> crate::common::RegisterField<
8,
0x1,
1,
0,
intenb0::Brdye,
intenb0::Brdye,
Intenb0_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
8,
0x1,
1,
0,
intenb0::Brdye,
intenb0::Brdye,
Intenb0_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[inline(always)]
pub fn nrdye(
self,
) -> crate::common::RegisterField<
9,
0x1,
1,
0,
intenb0::Nrdye,
intenb0::Nrdye,
Intenb0_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
9,
0x1,
1,
0,
intenb0::Nrdye,
intenb0::Nrdye,
Intenb0_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[inline(always)]
pub fn bempe(
self,
) -> crate::common::RegisterField<
10,
0x1,
1,
0,
intenb0::Bempe,
intenb0::Bempe,
Intenb0_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
10,
0x1,
1,
0,
intenb0::Bempe,
intenb0::Bempe,
Intenb0_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[inline(always)]
pub fn ctre(
self,
) -> crate::common::RegisterField<
11,
0x1,
1,
0,
intenb0::Ctre,
intenb0::Ctre,
Intenb0_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
11,
0x1,
1,
0,
intenb0::Ctre,
intenb0::Ctre,
Intenb0_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[inline(always)]
pub fn dvse(
self,
) -> crate::common::RegisterField<
12,
0x1,
1,
0,
intenb0::Dvse,
intenb0::Dvse,
Intenb0_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
12,
0x1,
1,
0,
intenb0::Dvse,
intenb0::Dvse,
Intenb0_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[inline(always)]
pub fn sofe(
self,
) -> crate::common::RegisterField<
13,
0x1,
1,
0,
intenb0::Sofe,
intenb0::Sofe,
Intenb0_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
13,
0x1,
1,
0,
intenb0::Sofe,
intenb0::Sofe,
Intenb0_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[inline(always)]
pub fn rsme(
self,
) -> crate::common::RegisterField<
14,
0x1,
1,
0,
intenb0::Rsme,
intenb0::Rsme,
Intenb0_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
14,
0x1,
1,
0,
intenb0::Rsme,
intenb0::Rsme,
Intenb0_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[inline(always)]
pub fn vbse(
self,
) -> crate::common::RegisterField<
15,
0x1,
1,
0,
intenb0::Vbse,
intenb0::Vbse,
Intenb0_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
15,
0x1,
1,
0,
intenb0::Vbse,
intenb0::Vbse,
Intenb0_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
}
impl ::core::default::Default for Intenb0 {
#[inline(always)]
fn default() -> Intenb0 {
<crate::RegValueT<Intenb0_SPEC> as RegisterValue<_>>::new(0)
}
}
pub mod intenb0 {
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Brdye_SPEC;
pub type Brdye = crate::EnumBitfieldStruct<u8, Brdye_SPEC>;
impl Brdye {
pub const _0: Self = Self::new(0);
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Nrdye_SPEC;
pub type Nrdye = crate::EnumBitfieldStruct<u8, Nrdye_SPEC>;
impl Nrdye {
pub const _0: Self = Self::new(0);
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Bempe_SPEC;
pub type Bempe = crate::EnumBitfieldStruct<u8, Bempe_SPEC>;
impl Bempe {
pub const _0: Self = Self::new(0);
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Ctre_SPEC;
pub type Ctre = crate::EnumBitfieldStruct<u8, Ctre_SPEC>;
impl Ctre {
pub const _0: Self = Self::new(0);
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Dvse_SPEC;
pub type Dvse = crate::EnumBitfieldStruct<u8, Dvse_SPEC>;
impl Dvse {
pub const _0: Self = Self::new(0);
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Sofe_SPEC;
pub type Sofe = crate::EnumBitfieldStruct<u8, Sofe_SPEC>;
impl Sofe {
pub const _0: Self = Self::new(0);
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Rsme_SPEC;
pub type Rsme = crate::EnumBitfieldStruct<u8, Rsme_SPEC>;
impl Rsme {
pub const _0: Self = Self::new(0);
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Vbse_SPEC;
pub type Vbse = crate::EnumBitfieldStruct<u8, Vbse_SPEC>;
impl Vbse {
pub const _0: Self = Self::new(0);
pub const _1: Self = Self::new(1);
}
}
#[doc(hidden)]
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct Intenb1_SPEC;
impl crate::sealed::RegSpec for Intenb1_SPEC {
type DataType = u16;
}
pub type Intenb1 = crate::RegValueT<Intenb1_SPEC>;
impl Intenb1 {
#[inline(always)]
pub fn pddetinte(
self,
) -> crate::common::RegisterField<
0,
0x1,
1,
0,
intenb1::Pddetinte,
intenb1::Pddetinte,
Intenb1_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
0,
0x1,
1,
0,
intenb1::Pddetinte,
intenb1::Pddetinte,
Intenb1_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[inline(always)]
pub fn sacke(
self,
) -> crate::common::RegisterField<
4,
0x1,
1,
0,
intenb1::Sacke,
intenb1::Sacke,
Intenb1_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
4,
0x1,
1,
0,
intenb1::Sacke,
intenb1::Sacke,
Intenb1_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[inline(always)]
pub fn signe(
self,
) -> crate::common::RegisterField<
5,
0x1,
1,
0,
intenb1::Signe,
intenb1::Signe,
Intenb1_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
5,
0x1,
1,
0,
intenb1::Signe,
intenb1::Signe,
Intenb1_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[inline(always)]
pub fn eoferre(
self,
) -> crate::common::RegisterField<
6,
0x1,
1,
0,
intenb1::Eoferre,
intenb1::Eoferre,
Intenb1_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
6,
0x1,
1,
0,
intenb1::Eoferre,
intenb1::Eoferre,
Intenb1_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[inline(always)]
pub fn attche(
self,
) -> crate::common::RegisterField<
11,
0x1,
1,
0,
intenb1::Attche,
intenb1::Attche,
Intenb1_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
11,
0x1,
1,
0,
intenb1::Attche,
intenb1::Attche,
Intenb1_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[inline(always)]
pub fn dtche(
self,
) -> crate::common::RegisterField<
12,
0x1,
1,
0,
intenb1::Dtche,
intenb1::Dtche,
Intenb1_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
12,
0x1,
1,
0,
intenb1::Dtche,
intenb1::Dtche,
Intenb1_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[inline(always)]
pub fn bchge(
self,
) -> crate::common::RegisterField<
14,
0x1,
1,
0,
intenb1::Bchge,
intenb1::Bchge,
Intenb1_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
14,
0x1,
1,
0,
intenb1::Bchge,
intenb1::Bchge,
Intenb1_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[inline(always)]
pub fn ovrcre(
self,
) -> crate::common::RegisterField<
15,
0x1,
1,
0,
intenb1::Ovrcre,
intenb1::Ovrcre,
Intenb1_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
15,
0x1,
1,
0,
intenb1::Ovrcre,
intenb1::Ovrcre,
Intenb1_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
}
impl ::core::default::Default for Intenb1 {
#[inline(always)]
fn default() -> Intenb1 {
<crate::RegValueT<Intenb1_SPEC> as RegisterValue<_>>::new(0)
}
}
pub mod intenb1 {
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Pddetinte_SPEC;
pub type Pddetinte = crate::EnumBitfieldStruct<u8, Pddetinte_SPEC>;
impl Pddetinte {
pub const _0: Self = Self::new(0);
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Sacke_SPEC;
pub type Sacke = crate::EnumBitfieldStruct<u8, Sacke_SPEC>;
impl Sacke {
pub const _0: Self = Self::new(0);
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Signe_SPEC;
pub type Signe = crate::EnumBitfieldStruct<u8, Signe_SPEC>;
impl Signe {
pub const _0: Self = Self::new(0);
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Eoferre_SPEC;
pub type Eoferre = crate::EnumBitfieldStruct<u8, Eoferre_SPEC>;
impl Eoferre {
pub const _0: Self = Self::new(0);
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Attche_SPEC;
pub type Attche = crate::EnumBitfieldStruct<u8, Attche_SPEC>;
impl Attche {
pub const _0: Self = Self::new(0);
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Dtche_SPEC;
pub type Dtche = crate::EnumBitfieldStruct<u8, Dtche_SPEC>;
impl Dtche {
pub const _0: Self = Self::new(0);
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Bchge_SPEC;
pub type Bchge = crate::EnumBitfieldStruct<u8, Bchge_SPEC>;
impl Bchge {
pub const _0: Self = Self::new(0);
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Ovrcre_SPEC;
pub type Ovrcre = crate::EnumBitfieldStruct<u8, Ovrcre_SPEC>;
impl Ovrcre {
pub const _0: Self = Self::new(0);
pub const _1: Self = Self::new(1);
}
}
#[doc(hidden)]
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct Brdyenb_SPEC;
impl crate::sealed::RegSpec for Brdyenb_SPEC {
type DataType = u16;
}
pub type Brdyenb = crate::RegValueT<Brdyenb_SPEC>;
impl Brdyenb {
#[inline(always)]
pub fn pipe0brdye(
self,
) -> crate::common::RegisterField<
0,
0x1,
1,
0,
brdyenb::Pipe0Brdye,
brdyenb::Pipe0Brdye,
Brdyenb_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
0,
0x1,
1,
0,
brdyenb::Pipe0Brdye,
brdyenb::Pipe0Brdye,
Brdyenb_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[inline(always)]
pub fn pipe1brdye(
self,
) -> crate::common::RegisterField<
1,
0x1,
1,
0,
brdyenb::Pipe1Brdye,
brdyenb::Pipe1Brdye,
Brdyenb_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
1,
0x1,
1,
0,
brdyenb::Pipe1Brdye,
brdyenb::Pipe1Brdye,
Brdyenb_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[inline(always)]
pub fn pipe2brdye(
self,
) -> crate::common::RegisterField<
2,
0x1,
1,
0,
brdyenb::Pipe2Brdye,
brdyenb::Pipe2Brdye,
Brdyenb_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
2,
0x1,
1,
0,
brdyenb::Pipe2Brdye,
brdyenb::Pipe2Brdye,
Brdyenb_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[inline(always)]
pub fn pipe3brdye(
self,
) -> crate::common::RegisterField<
3,
0x1,
1,
0,
brdyenb::Pipe3Brdye,
brdyenb::Pipe3Brdye,
Brdyenb_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
3,
0x1,
1,
0,
brdyenb::Pipe3Brdye,
brdyenb::Pipe3Brdye,
Brdyenb_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[inline(always)]
pub fn pipe4brdye(
self,
) -> crate::common::RegisterField<
4,
0x1,
1,
0,
brdyenb::Pipe4Brdye,
brdyenb::Pipe4Brdye,
Brdyenb_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
4,
0x1,
1,
0,
brdyenb::Pipe4Brdye,
brdyenb::Pipe4Brdye,
Brdyenb_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[inline(always)]
pub fn pipe5brdye(
self,
) -> crate::common::RegisterField<
5,
0x1,
1,
0,
brdyenb::Pipe5Brdye,
brdyenb::Pipe5Brdye,
Brdyenb_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
5,
0x1,
1,
0,
brdyenb::Pipe5Brdye,
brdyenb::Pipe5Brdye,
Brdyenb_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[inline(always)]
pub fn pipe6brdye(
self,
) -> crate::common::RegisterField<
6,
0x1,
1,
0,
brdyenb::Pipe6Brdye,
brdyenb::Pipe6Brdye,
Brdyenb_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
6,
0x1,
1,
0,
brdyenb::Pipe6Brdye,
brdyenb::Pipe6Brdye,
Brdyenb_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[inline(always)]
pub fn pipe7brdye(
self,
) -> crate::common::RegisterField<
7,
0x1,
1,
0,
brdyenb::Pipe7Brdye,
brdyenb::Pipe7Brdye,
Brdyenb_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
7,
0x1,
1,
0,
brdyenb::Pipe7Brdye,
brdyenb::Pipe7Brdye,
Brdyenb_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[inline(always)]
pub fn pipe8brdye(
self,
) -> crate::common::RegisterField<
8,
0x1,
1,
0,
brdyenb::Pipe8Brdye,
brdyenb::Pipe8Brdye,
Brdyenb_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
8,
0x1,
1,
0,
brdyenb::Pipe8Brdye,
brdyenb::Pipe8Brdye,
Brdyenb_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[inline(always)]
pub fn pipe9brdye(
self,
) -> crate::common::RegisterField<
9,
0x1,
1,
0,
brdyenb::Pipe9Brdye,
brdyenb::Pipe9Brdye,
Brdyenb_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
9,
0x1,
1,
0,
brdyenb::Pipe9Brdye,
brdyenb::Pipe9Brdye,
Brdyenb_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
}
impl ::core::default::Default for Brdyenb {
#[inline(always)]
fn default() -> Brdyenb {
<crate::RegValueT<Brdyenb_SPEC> as RegisterValue<_>>::new(0)
}
}
pub mod brdyenb {
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Pipe0Brdye_SPEC;
pub type Pipe0Brdye = crate::EnumBitfieldStruct<u8, Pipe0Brdye_SPEC>;
impl Pipe0Brdye {
pub const _0: Self = Self::new(0);
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Pipe1Brdye_SPEC;
pub type Pipe1Brdye = crate::EnumBitfieldStruct<u8, Pipe1Brdye_SPEC>;
impl Pipe1Brdye {
pub const _0: Self = Self::new(0);
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Pipe2Brdye_SPEC;
pub type Pipe2Brdye = crate::EnumBitfieldStruct<u8, Pipe2Brdye_SPEC>;
impl Pipe2Brdye {
pub const _0: Self = Self::new(0);
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Pipe3Brdye_SPEC;
pub type Pipe3Brdye = crate::EnumBitfieldStruct<u8, Pipe3Brdye_SPEC>;
impl Pipe3Brdye {
pub const _0: Self = Self::new(0);
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Pipe4Brdye_SPEC;
pub type Pipe4Brdye = crate::EnumBitfieldStruct<u8, Pipe4Brdye_SPEC>;
impl Pipe4Brdye {
pub const _0: Self = Self::new(0);
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Pipe5Brdye_SPEC;
pub type Pipe5Brdye = crate::EnumBitfieldStruct<u8, Pipe5Brdye_SPEC>;
impl Pipe5Brdye {
pub const _0: Self = Self::new(0);
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Pipe6Brdye_SPEC;
pub type Pipe6Brdye = crate::EnumBitfieldStruct<u8, Pipe6Brdye_SPEC>;
impl Pipe6Brdye {
pub const _0: Self = Self::new(0);
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Pipe7Brdye_SPEC;
pub type Pipe7Brdye = crate::EnumBitfieldStruct<u8, Pipe7Brdye_SPEC>;
impl Pipe7Brdye {
pub const _0: Self = Self::new(0);
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Pipe8Brdye_SPEC;
pub type Pipe8Brdye = crate::EnumBitfieldStruct<u8, Pipe8Brdye_SPEC>;
impl Pipe8Brdye {
pub const _0: Self = Self::new(0);
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Pipe9Brdye_SPEC;
pub type Pipe9Brdye = crate::EnumBitfieldStruct<u8, Pipe9Brdye_SPEC>;
impl Pipe9Brdye {
pub const _0: Self = Self::new(0);
pub const _1: Self = Self::new(1);
}
}
#[doc(hidden)]
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct Nrdyenb_SPEC;
impl crate::sealed::RegSpec for Nrdyenb_SPEC {
type DataType = u16;
}
pub type Nrdyenb = crate::RegValueT<Nrdyenb_SPEC>;
impl Nrdyenb {
#[inline(always)]
pub fn pipe0nrdye(
self,
) -> crate::common::RegisterField<
0,
0x1,
1,
0,
nrdyenb::Pipe0Nrdye,
nrdyenb::Pipe0Nrdye,
Nrdyenb_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
0,
0x1,
1,
0,
nrdyenb::Pipe0Nrdye,
nrdyenb::Pipe0Nrdye,
Nrdyenb_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[inline(always)]
pub fn pipe1nrdye(
self,
) -> crate::common::RegisterField<
1,
0x1,
1,
0,
nrdyenb::Pipe1Nrdye,
nrdyenb::Pipe1Nrdye,
Nrdyenb_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
1,
0x1,
1,
0,
nrdyenb::Pipe1Nrdye,
nrdyenb::Pipe1Nrdye,
Nrdyenb_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[inline(always)]
pub fn pipe2nrdye(
self,
) -> crate::common::RegisterField<
2,
0x1,
1,
0,
nrdyenb::Pipe2Nrdye,
nrdyenb::Pipe2Nrdye,
Nrdyenb_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
2,
0x1,
1,
0,
nrdyenb::Pipe2Nrdye,
nrdyenb::Pipe2Nrdye,
Nrdyenb_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[inline(always)]
pub fn pipe3nrdye(
self,
) -> crate::common::RegisterField<
3,
0x1,
1,
0,
nrdyenb::Pipe3Nrdye,
nrdyenb::Pipe3Nrdye,
Nrdyenb_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
3,
0x1,
1,
0,
nrdyenb::Pipe3Nrdye,
nrdyenb::Pipe3Nrdye,
Nrdyenb_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[inline(always)]
pub fn pipe4nrdye(
self,
) -> crate::common::RegisterField<
4,
0x1,
1,
0,
nrdyenb::Pipe4Nrdye,
nrdyenb::Pipe4Nrdye,
Nrdyenb_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
4,
0x1,
1,
0,
nrdyenb::Pipe4Nrdye,
nrdyenb::Pipe4Nrdye,
Nrdyenb_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[inline(always)]
pub fn pipe5nrdye(
self,
) -> crate::common::RegisterField<
5,
0x1,
1,
0,
nrdyenb::Pipe5Nrdye,
nrdyenb::Pipe5Nrdye,
Nrdyenb_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
5,
0x1,
1,
0,
nrdyenb::Pipe5Nrdye,
nrdyenb::Pipe5Nrdye,
Nrdyenb_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[inline(always)]
pub fn pipe6nrdye(
self,
) -> crate::common::RegisterField<
6,
0x1,
1,
0,
nrdyenb::Pipe6Nrdye,
nrdyenb::Pipe6Nrdye,
Nrdyenb_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
6,
0x1,
1,
0,
nrdyenb::Pipe6Nrdye,
nrdyenb::Pipe6Nrdye,
Nrdyenb_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[inline(always)]
pub fn pipe7nrdye(
self,
) -> crate::common::RegisterField<
7,
0x1,
1,
0,
nrdyenb::Pipe7Nrdye,
nrdyenb::Pipe7Nrdye,
Nrdyenb_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
7,
0x1,
1,
0,
nrdyenb::Pipe7Nrdye,
nrdyenb::Pipe7Nrdye,
Nrdyenb_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[inline(always)]
pub fn pipe8nrdye(
self,
) -> crate::common::RegisterField<
8,
0x1,
1,
0,
nrdyenb::Pipe8Nrdye,
nrdyenb::Pipe8Nrdye,
Nrdyenb_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
8,
0x1,
1,
0,
nrdyenb::Pipe8Nrdye,
nrdyenb::Pipe8Nrdye,
Nrdyenb_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[inline(always)]
pub fn pipe9nrdye(
self,
) -> crate::common::RegisterField<
9,
0x1,
1,
0,
nrdyenb::Pipe9Nrdye,
nrdyenb::Pipe9Nrdye,
Nrdyenb_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
9,
0x1,
1,
0,
nrdyenb::Pipe9Nrdye,
nrdyenb::Pipe9Nrdye,
Nrdyenb_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
}
impl ::core::default::Default for Nrdyenb {
#[inline(always)]
fn default() -> Nrdyenb {
<crate::RegValueT<Nrdyenb_SPEC> as RegisterValue<_>>::new(0)
}
}
pub mod nrdyenb {
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Pipe0Nrdye_SPEC;
pub type Pipe0Nrdye = crate::EnumBitfieldStruct<u8, Pipe0Nrdye_SPEC>;
impl Pipe0Nrdye {
pub const _0: Self = Self::new(0);
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Pipe1Nrdye_SPEC;
pub type Pipe1Nrdye = crate::EnumBitfieldStruct<u8, Pipe1Nrdye_SPEC>;
impl Pipe1Nrdye {
pub const _0: Self = Self::new(0);
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Pipe2Nrdye_SPEC;
pub type Pipe2Nrdye = crate::EnumBitfieldStruct<u8, Pipe2Nrdye_SPEC>;
impl Pipe2Nrdye {
pub const _0: Self = Self::new(0);
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Pipe3Nrdye_SPEC;
pub type Pipe3Nrdye = crate::EnumBitfieldStruct<u8, Pipe3Nrdye_SPEC>;
impl Pipe3Nrdye {
pub const _0: Self = Self::new(0);
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Pipe4Nrdye_SPEC;
pub type Pipe4Nrdye = crate::EnumBitfieldStruct<u8, Pipe4Nrdye_SPEC>;
impl Pipe4Nrdye {
pub const _0: Self = Self::new(0);
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Pipe5Nrdye_SPEC;
pub type Pipe5Nrdye = crate::EnumBitfieldStruct<u8, Pipe5Nrdye_SPEC>;
impl Pipe5Nrdye {
pub const _0: Self = Self::new(0);
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Pipe6Nrdye_SPEC;
pub type Pipe6Nrdye = crate::EnumBitfieldStruct<u8, Pipe6Nrdye_SPEC>;
impl Pipe6Nrdye {
pub const _0: Self = Self::new(0);
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Pipe7Nrdye_SPEC;
pub type Pipe7Nrdye = crate::EnumBitfieldStruct<u8, Pipe7Nrdye_SPEC>;
impl Pipe7Nrdye {
pub const _0: Self = Self::new(0);
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Pipe8Nrdye_SPEC;
pub type Pipe8Nrdye = crate::EnumBitfieldStruct<u8, Pipe8Nrdye_SPEC>;
impl Pipe8Nrdye {
pub const _0: Self = Self::new(0);
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Pipe9Nrdye_SPEC;
pub type Pipe9Nrdye = crate::EnumBitfieldStruct<u8, Pipe9Nrdye_SPEC>;
impl Pipe9Nrdye {
pub const _0: Self = Self::new(0);
pub const _1: Self = Self::new(1);
}
}
#[doc(hidden)]
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct Bempenb_SPEC;
impl crate::sealed::RegSpec for Bempenb_SPEC {
type DataType = u16;
}
pub type Bempenb = crate::RegValueT<Bempenb_SPEC>;
impl Bempenb {
#[inline(always)]
pub fn pipe0bempe(
self,
) -> crate::common::RegisterField<
0,
0x1,
1,
0,
bempenb::Pipe0Bempe,
bempenb::Pipe0Bempe,
Bempenb_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
0,
0x1,
1,
0,
bempenb::Pipe0Bempe,
bempenb::Pipe0Bempe,
Bempenb_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[inline(always)]
pub fn pipe1bempe(
self,
) -> crate::common::RegisterField<
1,
0x1,
1,
0,
bempenb::Pipe1Bempe,
bempenb::Pipe1Bempe,
Bempenb_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
1,
0x1,
1,
0,
bempenb::Pipe1Bempe,
bempenb::Pipe1Bempe,
Bempenb_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[inline(always)]
pub fn pipe2bempe(
self,
) -> crate::common::RegisterField<
2,
0x1,
1,
0,
bempenb::Pipe2Bempe,
bempenb::Pipe2Bempe,
Bempenb_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
2,
0x1,
1,
0,
bempenb::Pipe2Bempe,
bempenb::Pipe2Bempe,
Bempenb_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[inline(always)]
pub fn pipe3bempe(
self,
) -> crate::common::RegisterField<
3,
0x1,
1,
0,
bempenb::Pipe3Bempe,
bempenb::Pipe3Bempe,
Bempenb_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
3,
0x1,
1,
0,
bempenb::Pipe3Bempe,
bempenb::Pipe3Bempe,
Bempenb_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[inline(always)]
pub fn pipe4bempe(
self,
) -> crate::common::RegisterField<
4,
0x1,
1,
0,
bempenb::Pipe4Bempe,
bempenb::Pipe4Bempe,
Bempenb_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
4,
0x1,
1,
0,
bempenb::Pipe4Bempe,
bempenb::Pipe4Bempe,
Bempenb_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[inline(always)]
pub fn pipe5bempe(
self,
) -> crate::common::RegisterField<
5,
0x1,
1,
0,
bempenb::Pipe5Bempe,
bempenb::Pipe5Bempe,
Bempenb_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
5,
0x1,
1,
0,
bempenb::Pipe5Bempe,
bempenb::Pipe5Bempe,
Bempenb_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[inline(always)]
pub fn pipe6bempe(
self,
) -> crate::common::RegisterField<
6,
0x1,
1,
0,
bempenb::Pipe6Bempe,
bempenb::Pipe6Bempe,
Bempenb_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
6,
0x1,
1,
0,
bempenb::Pipe6Bempe,
bempenb::Pipe6Bempe,
Bempenb_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[inline(always)]
pub fn pipe7bempe(
self,
) -> crate::common::RegisterField<
7,
0x1,
1,
0,
bempenb::Pipe7Bempe,
bempenb::Pipe7Bempe,
Bempenb_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
7,
0x1,
1,
0,
bempenb::Pipe7Bempe,
bempenb::Pipe7Bempe,
Bempenb_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[inline(always)]
pub fn pipe8bempe(
self,
) -> crate::common::RegisterField<
8,
0x1,
1,
0,
bempenb::Pipe8Bempe,
bempenb::Pipe8Bempe,
Bempenb_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
8,
0x1,
1,
0,
bempenb::Pipe8Bempe,
bempenb::Pipe8Bempe,
Bempenb_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[inline(always)]
pub fn pipe9bempe(
self,
) -> crate::common::RegisterField<
9,
0x1,
1,
0,
bempenb::Pipe9Bempe,
bempenb::Pipe9Bempe,
Bempenb_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
9,
0x1,
1,
0,
bempenb::Pipe9Bempe,
bempenb::Pipe9Bempe,
Bempenb_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
}
impl ::core::default::Default for Bempenb {
#[inline(always)]
fn default() -> Bempenb {
<crate::RegValueT<Bempenb_SPEC> as RegisterValue<_>>::new(0)
}
}
pub mod bempenb {
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Pipe0Bempe_SPEC;
pub type Pipe0Bempe = crate::EnumBitfieldStruct<u8, Pipe0Bempe_SPEC>;
impl Pipe0Bempe {
pub const _0: Self = Self::new(0);
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Pipe1Bempe_SPEC;
pub type Pipe1Bempe = crate::EnumBitfieldStruct<u8, Pipe1Bempe_SPEC>;
impl Pipe1Bempe {
pub const _0: Self = Self::new(0);
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Pipe2Bempe_SPEC;
pub type Pipe2Bempe = crate::EnumBitfieldStruct<u8, Pipe2Bempe_SPEC>;
impl Pipe2Bempe {
pub const _0: Self = Self::new(0);
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Pipe3Bempe_SPEC;
pub type Pipe3Bempe = crate::EnumBitfieldStruct<u8, Pipe3Bempe_SPEC>;
impl Pipe3Bempe {
pub const _0: Self = Self::new(0);
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Pipe4Bempe_SPEC;
pub type Pipe4Bempe = crate::EnumBitfieldStruct<u8, Pipe4Bempe_SPEC>;
impl Pipe4Bempe {
pub const _0: Self = Self::new(0);
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Pipe5Bempe_SPEC;
pub type Pipe5Bempe = crate::EnumBitfieldStruct<u8, Pipe5Bempe_SPEC>;
impl Pipe5Bempe {
pub const _0: Self = Self::new(0);
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Pipe6Bempe_SPEC;
pub type Pipe6Bempe = crate::EnumBitfieldStruct<u8, Pipe6Bempe_SPEC>;
impl Pipe6Bempe {
pub const _0: Self = Self::new(0);
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Pipe7Bempe_SPEC;
pub type Pipe7Bempe = crate::EnumBitfieldStruct<u8, Pipe7Bempe_SPEC>;
impl Pipe7Bempe {
pub const _0: Self = Self::new(0);
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Pipe8Bempe_SPEC;
pub type Pipe8Bempe = crate::EnumBitfieldStruct<u8, Pipe8Bempe_SPEC>;
impl Pipe8Bempe {
pub const _0: Self = Self::new(0);
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Pipe9Bempe_SPEC;
pub type Pipe9Bempe = crate::EnumBitfieldStruct<u8, Pipe9Bempe_SPEC>;
impl Pipe9Bempe {
pub const _0: Self = Self::new(0);
pub const _1: Self = Self::new(1);
}
}
#[doc(hidden)]
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct Sofcfg_SPEC;
impl crate::sealed::RegSpec for Sofcfg_SPEC {
type DataType = u16;
}
pub type Sofcfg = crate::RegValueT<Sofcfg_SPEC>;
impl Sofcfg {
#[inline(always)]
pub fn edgests(
self,
) -> crate::common::RegisterFieldBool<4, 1, 0, Sofcfg_SPEC, crate::common::R> {
crate::common::RegisterFieldBool::<4, 1, 0, Sofcfg_SPEC, crate::common::R>::from_register(
self, 0,
)
}
#[inline(always)]
pub fn brdym(
self,
) -> crate::common::RegisterField<
6,
0x1,
1,
0,
sofcfg::Brdym,
sofcfg::Brdym,
Sofcfg_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
6,
0x1,
1,
0,
sofcfg::Brdym,
sofcfg::Brdym,
Sofcfg_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[inline(always)]
pub fn trnensel(
self,
) -> crate::common::RegisterField<
8,
0x1,
1,
0,
sofcfg::Trnensel,
sofcfg::Trnensel,
Sofcfg_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
8,
0x1,
1,
0,
sofcfg::Trnensel,
sofcfg::Trnensel,
Sofcfg_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
}
impl ::core::default::Default for Sofcfg {
#[inline(always)]
fn default() -> Sofcfg {
<crate::RegValueT<Sofcfg_SPEC> as RegisterValue<_>>::new(0)
}
}
pub mod sofcfg {
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Brdym_SPEC;
pub type Brdym = crate::EnumBitfieldStruct<u8, Brdym_SPEC>;
impl Brdym {
pub const _0: Self = Self::new(0);
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Trnensel_SPEC;
pub type Trnensel = crate::EnumBitfieldStruct<u8, Trnensel_SPEC>;
impl Trnensel {
pub const _0: Self = Self::new(0);
pub const _1: Self = Self::new(1);
}
}
#[doc(hidden)]
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct Intsts0_SPEC;
impl crate::sealed::RegSpec for Intsts0_SPEC {
type DataType = u16;
}
pub type Intsts0 = crate::RegValueT<Intsts0_SPEC>;
impl Intsts0 {
#[inline(always)]
pub fn ctsq(
self,
) -> crate::common::RegisterField<
0,
0x7,
1,
0,
intsts0::Ctsq,
intsts0::Ctsq,
Intsts0_SPEC,
crate::common::R,
> {
crate::common::RegisterField::<
0,
0x7,
1,
0,
intsts0::Ctsq,
intsts0::Ctsq,
Intsts0_SPEC,
crate::common::R,
>::from_register(self, 0)
}
#[inline(always)]
pub fn valid(
self,
) -> crate::common::RegisterField<
3,
0x1,
1,
0,
intsts0::Valid,
intsts0::Valid,
Intsts0_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
3,
0x1,
1,
0,
intsts0::Valid,
intsts0::Valid,
Intsts0_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[inline(always)]
pub fn dvsq(
self,
) -> crate::common::RegisterField<
4,
0x7,
1,
0,
intsts0::Dvsq,
intsts0::Dvsq,
Intsts0_SPEC,
crate::common::R,
> {
crate::common::RegisterField::<
4,
0x7,
1,
0,
intsts0::Dvsq,
intsts0::Dvsq,
Intsts0_SPEC,
crate::common::R,
>::from_register(self, 0)
}
#[inline(always)]
pub fn vbsts(
self,
) -> crate::common::RegisterField<
7,
0x1,
1,
0,
intsts0::Vbsts,
intsts0::Vbsts,
Intsts0_SPEC,
crate::common::R,
> {
crate::common::RegisterField::<
7,
0x1,
1,
0,
intsts0::Vbsts,
intsts0::Vbsts,
Intsts0_SPEC,
crate::common::R,
>::from_register(self, 0)
}
#[inline(always)]
pub fn brdy(
self,
) -> crate::common::RegisterField<
8,
0x1,
1,
0,
intsts0::Brdy,
intsts0::Brdy,
Intsts0_SPEC,
crate::common::R,
> {
crate::common::RegisterField::<
8,
0x1,
1,
0,
intsts0::Brdy,
intsts0::Brdy,
Intsts0_SPEC,
crate::common::R,
>::from_register(self, 0)
}
#[inline(always)]
pub fn nrdy(
self,
) -> crate::common::RegisterField<
9,
0x1,
1,
0,
intsts0::Nrdy,
intsts0::Nrdy,
Intsts0_SPEC,
crate::common::R,
> {
crate::common::RegisterField::<
9,
0x1,
1,
0,
intsts0::Nrdy,
intsts0::Nrdy,
Intsts0_SPEC,
crate::common::R,
>::from_register(self, 0)
}
#[inline(always)]
pub fn bemp(
self,
) -> crate::common::RegisterField<
10,
0x1,
1,
0,
intsts0::Bemp,
intsts0::Bemp,
Intsts0_SPEC,
crate::common::R,
> {
crate::common::RegisterField::<
10,
0x1,
1,
0,
intsts0::Bemp,
intsts0::Bemp,
Intsts0_SPEC,
crate::common::R,
>::from_register(self, 0)
}
#[inline(always)]
pub fn ctrt(
self,
) -> crate::common::RegisterField<
11,
0x1,
1,
0,
intsts0::Ctrt,
intsts0::Ctrt,
Intsts0_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
11,
0x1,
1,
0,
intsts0::Ctrt,
intsts0::Ctrt,
Intsts0_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[inline(always)]
pub fn dvst(
self,
) -> crate::common::RegisterField<
12,
0x1,
1,
0,
intsts0::Dvst,
intsts0::Dvst,
Intsts0_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
12,
0x1,
1,
0,
intsts0::Dvst,
intsts0::Dvst,
Intsts0_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[inline(always)]
pub fn sofr(
self,
) -> crate::common::RegisterField<
13,
0x1,
1,
0,
intsts0::Sofr,
intsts0::Sofr,
Intsts0_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
13,
0x1,
1,
0,
intsts0::Sofr,
intsts0::Sofr,
Intsts0_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[inline(always)]
pub fn resm(
self,
) -> crate::common::RegisterField<
14,
0x1,
1,
0,
intsts0::Resm,
intsts0::Resm,
Intsts0_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
14,
0x1,
1,
0,
intsts0::Resm,
intsts0::Resm,
Intsts0_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[inline(always)]
pub fn vbint(
self,
) -> crate::common::RegisterField<
15,
0x1,
1,
0,
intsts0::Vbint,
intsts0::Vbint,
Intsts0_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
15,
0x1,
1,
0,
intsts0::Vbint,
intsts0::Vbint,
Intsts0_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
}
impl ::core::default::Default for Intsts0 {
#[inline(always)]
fn default() -> Intsts0 {
<crate::RegValueT<Intsts0_SPEC> as RegisterValue<_>>::new(0)
}
}
pub mod intsts0 {
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Ctsq_SPEC;
pub type Ctsq = crate::EnumBitfieldStruct<u8, Ctsq_SPEC>;
impl Ctsq {
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);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Valid_SPEC;
pub type Valid = crate::EnumBitfieldStruct<u8, Valid_SPEC>;
impl Valid {
pub const _0: Self = Self::new(0);
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Dvsq_SPEC;
pub type Dvsq = crate::EnumBitfieldStruct<u8, Dvsq_SPEC>;
impl Dvsq {
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);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Vbsts_SPEC;
pub type Vbsts = crate::EnumBitfieldStruct<u8, Vbsts_SPEC>;
impl Vbsts {
pub const _0: Self = Self::new(0);
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Brdy_SPEC;
pub type Brdy = crate::EnumBitfieldStruct<u8, Brdy_SPEC>;
impl Brdy {
pub const _0: Self = Self::new(0);
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Nrdy_SPEC;
pub type Nrdy = crate::EnumBitfieldStruct<u8, Nrdy_SPEC>;
impl Nrdy {
pub const _0: Self = Self::new(0);
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Bemp_SPEC;
pub type Bemp = crate::EnumBitfieldStruct<u8, Bemp_SPEC>;
impl Bemp {
pub const _0: Self = Self::new(0);
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Ctrt_SPEC;
pub type Ctrt = crate::EnumBitfieldStruct<u8, Ctrt_SPEC>;
impl Ctrt {
pub const _0: Self = Self::new(0);
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Dvst_SPEC;
pub type Dvst = crate::EnumBitfieldStruct<u8, Dvst_SPEC>;
impl Dvst {
pub const _0: Self = Self::new(0);
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Sofr_SPEC;
pub type Sofr = crate::EnumBitfieldStruct<u8, Sofr_SPEC>;
impl Sofr {
pub const _0: Self = Self::new(0);
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Resm_SPEC;
pub type Resm = crate::EnumBitfieldStruct<u8, Resm_SPEC>;
impl Resm {
pub const _0: Self = Self::new(0);
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Vbint_SPEC;
pub type Vbint = crate::EnumBitfieldStruct<u8, Vbint_SPEC>;
impl Vbint {
pub const _0: Self = Self::new(0);
pub const _1: Self = Self::new(1);
}
}
#[doc(hidden)]
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct Intsts1_SPEC;
impl crate::sealed::RegSpec for Intsts1_SPEC {
type DataType = u16;
}
pub type Intsts1 = crate::RegValueT<Intsts1_SPEC>;
impl Intsts1 {
#[inline(always)]
pub fn pddetint(
self,
) -> crate::common::RegisterField<
0,
0x1,
1,
0,
intsts1::Pddetint,
intsts1::Pddetint,
Intsts1_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
0,
0x1,
1,
0,
intsts1::Pddetint,
intsts1::Pddetint,
Intsts1_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[inline(always)]
pub fn sack(
self,
) -> crate::common::RegisterField<
4,
0x1,
1,
0,
intsts1::Sack,
intsts1::Sack,
Intsts1_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
4,
0x1,
1,
0,
intsts1::Sack,
intsts1::Sack,
Intsts1_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[inline(always)]
pub fn sign(
self,
) -> crate::common::RegisterField<
5,
0x1,
1,
0,
intsts1::Sign,
intsts1::Sign,
Intsts1_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
5,
0x1,
1,
0,
intsts1::Sign,
intsts1::Sign,
Intsts1_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[inline(always)]
pub fn eoferr(
self,
) -> crate::common::RegisterField<
6,
0x1,
1,
0,
intsts1::Eoferr,
intsts1::Eoferr,
Intsts1_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
6,
0x1,
1,
0,
intsts1::Eoferr,
intsts1::Eoferr,
Intsts1_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[inline(always)]
pub fn attch(
self,
) -> crate::common::RegisterField<
11,
0x1,
1,
0,
intsts1::Attch,
intsts1::Attch,
Intsts1_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
11,
0x1,
1,
0,
intsts1::Attch,
intsts1::Attch,
Intsts1_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[inline(always)]
pub fn dtch(
self,
) -> crate::common::RegisterField<
12,
0x1,
1,
0,
intsts1::Dtch,
intsts1::Dtch,
Intsts1_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
12,
0x1,
1,
0,
intsts1::Dtch,
intsts1::Dtch,
Intsts1_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[inline(always)]
pub fn bchg(
self,
) -> crate::common::RegisterField<
14,
0x1,
1,
0,
intsts1::Bchg,
intsts1::Bchg,
Intsts1_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
14,
0x1,
1,
0,
intsts1::Bchg,
intsts1::Bchg,
Intsts1_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[inline(always)]
pub fn ovrcr(
self,
) -> crate::common::RegisterField<
15,
0x1,
1,
0,
intsts1::Ovrcr,
intsts1::Ovrcr,
Intsts1_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
15,
0x1,
1,
0,
intsts1::Ovrcr,
intsts1::Ovrcr,
Intsts1_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
}
impl ::core::default::Default for Intsts1 {
#[inline(always)]
fn default() -> Intsts1 {
<crate::RegValueT<Intsts1_SPEC> as RegisterValue<_>>::new(0)
}
}
pub mod intsts1 {
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Pddetint_SPEC;
pub type Pddetint = crate::EnumBitfieldStruct<u8, Pddetint_SPEC>;
impl Pddetint {
pub const _0: Self = Self::new(0);
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Sack_SPEC;
pub type Sack = crate::EnumBitfieldStruct<u8, Sack_SPEC>;
impl Sack {
pub const _0: Self = Self::new(0);
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Sign_SPEC;
pub type Sign = crate::EnumBitfieldStruct<u8, Sign_SPEC>;
impl Sign {
pub const _0: Self = Self::new(0);
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Eoferr_SPEC;
pub type Eoferr = crate::EnumBitfieldStruct<u8, Eoferr_SPEC>;
impl Eoferr {
pub const _0: Self = Self::new(0);
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Attch_SPEC;
pub type Attch = crate::EnumBitfieldStruct<u8, Attch_SPEC>;
impl Attch {
pub const _0: Self = Self::new(0);
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Dtch_SPEC;
pub type Dtch = crate::EnumBitfieldStruct<u8, Dtch_SPEC>;
impl Dtch {
pub const _0: Self = Self::new(0);
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Bchg_SPEC;
pub type Bchg = crate::EnumBitfieldStruct<u8, Bchg_SPEC>;
impl Bchg {
pub const _0: Self = Self::new(0);
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Ovrcr_SPEC;
pub type Ovrcr = crate::EnumBitfieldStruct<u8, Ovrcr_SPEC>;
impl Ovrcr {
pub const _0: Self = Self::new(0);
pub const _1: Self = Self::new(1);
}
}
#[doc(hidden)]
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct Brdysts_SPEC;
impl crate::sealed::RegSpec for Brdysts_SPEC {
type DataType = u16;
}
pub type Brdysts = crate::RegValueT<Brdysts_SPEC>;
impl Brdysts {
#[inline(always)]
pub fn pipe0brdy(
self,
) -> crate::common::RegisterField<
0,
0x1,
1,
0,
brdysts::Pipe0Brdy,
brdysts::Pipe0Brdy,
Brdysts_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
0,
0x1,
1,
0,
brdysts::Pipe0Brdy,
brdysts::Pipe0Brdy,
Brdysts_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[inline(always)]
pub fn pipe1brdy(
self,
) -> crate::common::RegisterField<
1,
0x1,
1,
0,
brdysts::Pipe1Brdy,
brdysts::Pipe1Brdy,
Brdysts_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
1,
0x1,
1,
0,
brdysts::Pipe1Brdy,
brdysts::Pipe1Brdy,
Brdysts_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[inline(always)]
pub fn pipe2brdy(
self,
) -> crate::common::RegisterField<
2,
0x1,
1,
0,
brdysts::Pipe2Brdy,
brdysts::Pipe2Brdy,
Brdysts_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
2,
0x1,
1,
0,
brdysts::Pipe2Brdy,
brdysts::Pipe2Brdy,
Brdysts_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[inline(always)]
pub fn pipe3brdy(
self,
) -> crate::common::RegisterField<
3,
0x1,
1,
0,
brdysts::Pipe3Brdy,
brdysts::Pipe3Brdy,
Brdysts_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
3,
0x1,
1,
0,
brdysts::Pipe3Brdy,
brdysts::Pipe3Brdy,
Brdysts_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[inline(always)]
pub fn pipe4brdy(
self,
) -> crate::common::RegisterField<
4,
0x1,
1,
0,
brdysts::Pipe4Brdy,
brdysts::Pipe4Brdy,
Brdysts_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
4,
0x1,
1,
0,
brdysts::Pipe4Brdy,
brdysts::Pipe4Brdy,
Brdysts_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[inline(always)]
pub fn pipe5brdy(
self,
) -> crate::common::RegisterField<
5,
0x1,
1,
0,
brdysts::Pipe5Brdy,
brdysts::Pipe5Brdy,
Brdysts_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
5,
0x1,
1,
0,
brdysts::Pipe5Brdy,
brdysts::Pipe5Brdy,
Brdysts_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[inline(always)]
pub fn pipe6brdy(
self,
) -> crate::common::RegisterField<
6,
0x1,
1,
0,
brdysts::Pipe6Brdy,
brdysts::Pipe6Brdy,
Brdysts_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
6,
0x1,
1,
0,
brdysts::Pipe6Brdy,
brdysts::Pipe6Brdy,
Brdysts_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[inline(always)]
pub fn pipe7brdy(
self,
) -> crate::common::RegisterField<
7,
0x1,
1,
0,
brdysts::Pipe7Brdy,
brdysts::Pipe7Brdy,
Brdysts_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
7,
0x1,
1,
0,
brdysts::Pipe7Brdy,
brdysts::Pipe7Brdy,
Brdysts_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[inline(always)]
pub fn pipe8brdy(
self,
) -> crate::common::RegisterField<
8,
0x1,
1,
0,
brdysts::Pipe8Brdy,
brdysts::Pipe8Brdy,
Brdysts_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
8,
0x1,
1,
0,
brdysts::Pipe8Brdy,
brdysts::Pipe8Brdy,
Brdysts_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[inline(always)]
pub fn pipe9brdy(
self,
) -> crate::common::RegisterField<
9,
0x1,
1,
0,
brdysts::Pipe9Brdy,
brdysts::Pipe9Brdy,
Brdysts_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
9,
0x1,
1,
0,
brdysts::Pipe9Brdy,
brdysts::Pipe9Brdy,
Brdysts_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
}
impl ::core::default::Default for Brdysts {
#[inline(always)]
fn default() -> Brdysts {
<crate::RegValueT<Brdysts_SPEC> as RegisterValue<_>>::new(0)
}
}
pub mod brdysts {
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Pipe0Brdy_SPEC;
pub type Pipe0Brdy = crate::EnumBitfieldStruct<u8, Pipe0Brdy_SPEC>;
impl Pipe0Brdy {
pub const _0: Self = Self::new(0);
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Pipe1Brdy_SPEC;
pub type Pipe1Brdy = crate::EnumBitfieldStruct<u8, Pipe1Brdy_SPEC>;
impl Pipe1Brdy {
pub const _0: Self = Self::new(0);
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Pipe2Brdy_SPEC;
pub type Pipe2Brdy = crate::EnumBitfieldStruct<u8, Pipe2Brdy_SPEC>;
impl Pipe2Brdy {
pub const _0: Self = Self::new(0);
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Pipe3Brdy_SPEC;
pub type Pipe3Brdy = crate::EnumBitfieldStruct<u8, Pipe3Brdy_SPEC>;
impl Pipe3Brdy {
pub const _0: Self = Self::new(0);
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Pipe4Brdy_SPEC;
pub type Pipe4Brdy = crate::EnumBitfieldStruct<u8, Pipe4Brdy_SPEC>;
impl Pipe4Brdy {
pub const _0: Self = Self::new(0);
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Pipe5Brdy_SPEC;
pub type Pipe5Brdy = crate::EnumBitfieldStruct<u8, Pipe5Brdy_SPEC>;
impl Pipe5Brdy {
pub const _0: Self = Self::new(0);
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Pipe6Brdy_SPEC;
pub type Pipe6Brdy = crate::EnumBitfieldStruct<u8, Pipe6Brdy_SPEC>;
impl Pipe6Brdy {
pub const _0: Self = Self::new(0);
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Pipe7Brdy_SPEC;
pub type Pipe7Brdy = crate::EnumBitfieldStruct<u8, Pipe7Brdy_SPEC>;
impl Pipe7Brdy {
pub const _0: Self = Self::new(0);
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Pipe8Brdy_SPEC;
pub type Pipe8Brdy = crate::EnumBitfieldStruct<u8, Pipe8Brdy_SPEC>;
impl Pipe8Brdy {
pub const _0: Self = Self::new(0);
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Pipe9Brdy_SPEC;
pub type Pipe9Brdy = crate::EnumBitfieldStruct<u8, Pipe9Brdy_SPEC>;
impl Pipe9Brdy {
pub const _0: Self = Self::new(0);
pub const _1: Self = Self::new(1);
}
}
#[doc(hidden)]
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct Nrdysts_SPEC;
impl crate::sealed::RegSpec for Nrdysts_SPEC {
type DataType = u16;
}
pub type Nrdysts = crate::RegValueT<Nrdysts_SPEC>;
impl Nrdysts {
#[inline(always)]
pub fn pipe0nrdy(
self,
) -> crate::common::RegisterField<
0,
0x1,
1,
0,
nrdysts::Pipe0Nrdy,
nrdysts::Pipe0Nrdy,
Nrdysts_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
0,
0x1,
1,
0,
nrdysts::Pipe0Nrdy,
nrdysts::Pipe0Nrdy,
Nrdysts_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[inline(always)]
pub fn pipe1nrdy(
self,
) -> crate::common::RegisterField<
1,
0x1,
1,
0,
nrdysts::Pipe1Nrdy,
nrdysts::Pipe1Nrdy,
Nrdysts_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
1,
0x1,
1,
0,
nrdysts::Pipe1Nrdy,
nrdysts::Pipe1Nrdy,
Nrdysts_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[inline(always)]
pub fn pipe2nrdy(
self,
) -> crate::common::RegisterField<
2,
0x1,
1,
0,
nrdysts::Pipe2Nrdy,
nrdysts::Pipe2Nrdy,
Nrdysts_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
2,
0x1,
1,
0,
nrdysts::Pipe2Nrdy,
nrdysts::Pipe2Nrdy,
Nrdysts_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[inline(always)]
pub fn pipe3nrdy(
self,
) -> crate::common::RegisterField<
3,
0x1,
1,
0,
nrdysts::Pipe3Nrdy,
nrdysts::Pipe3Nrdy,
Nrdysts_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
3,
0x1,
1,
0,
nrdysts::Pipe3Nrdy,
nrdysts::Pipe3Nrdy,
Nrdysts_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[inline(always)]
pub fn pipe4nrdy(
self,
) -> crate::common::RegisterField<
4,
0x1,
1,
0,
nrdysts::Pipe4Nrdy,
nrdysts::Pipe4Nrdy,
Nrdysts_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
4,
0x1,
1,
0,
nrdysts::Pipe4Nrdy,
nrdysts::Pipe4Nrdy,
Nrdysts_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[inline(always)]
pub fn pipe5nrdy(
self,
) -> crate::common::RegisterField<
5,
0x1,
1,
0,
nrdysts::Pipe5Nrdy,
nrdysts::Pipe5Nrdy,
Nrdysts_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
5,
0x1,
1,
0,
nrdysts::Pipe5Nrdy,
nrdysts::Pipe5Nrdy,
Nrdysts_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[inline(always)]
pub fn pipe6nrdy(
self,
) -> crate::common::RegisterField<
6,
0x1,
1,
0,
nrdysts::Pipe6Nrdy,
nrdysts::Pipe6Nrdy,
Nrdysts_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
6,
0x1,
1,
0,
nrdysts::Pipe6Nrdy,
nrdysts::Pipe6Nrdy,
Nrdysts_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[inline(always)]
pub fn pipe7nrdy(
self,
) -> crate::common::RegisterField<
7,
0x1,
1,
0,
nrdysts::Pipe7Nrdy,
nrdysts::Pipe7Nrdy,
Nrdysts_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
7,
0x1,
1,
0,
nrdysts::Pipe7Nrdy,
nrdysts::Pipe7Nrdy,
Nrdysts_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[inline(always)]
pub fn pipe8nrdy(
self,
) -> crate::common::RegisterField<
8,
0x1,
1,
0,
nrdysts::Pipe8Nrdy,
nrdysts::Pipe8Nrdy,
Nrdysts_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
8,
0x1,
1,
0,
nrdysts::Pipe8Nrdy,
nrdysts::Pipe8Nrdy,
Nrdysts_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[inline(always)]
pub fn pipe9nrdy(
self,
) -> crate::common::RegisterField<
9,
0x1,
1,
0,
nrdysts::Pipe9Nrdy,
nrdysts::Pipe9Nrdy,
Nrdysts_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
9,
0x1,
1,
0,
nrdysts::Pipe9Nrdy,
nrdysts::Pipe9Nrdy,
Nrdysts_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
}
impl ::core::default::Default for Nrdysts {
#[inline(always)]
fn default() -> Nrdysts {
<crate::RegValueT<Nrdysts_SPEC> as RegisterValue<_>>::new(0)
}
}
pub mod nrdysts {
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Pipe0Nrdy_SPEC;
pub type Pipe0Nrdy = crate::EnumBitfieldStruct<u8, Pipe0Nrdy_SPEC>;
impl Pipe0Nrdy {
pub const _0: Self = Self::new(0);
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Pipe1Nrdy_SPEC;
pub type Pipe1Nrdy = crate::EnumBitfieldStruct<u8, Pipe1Nrdy_SPEC>;
impl Pipe1Nrdy {
pub const _0: Self = Self::new(0);
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Pipe2Nrdy_SPEC;
pub type Pipe2Nrdy = crate::EnumBitfieldStruct<u8, Pipe2Nrdy_SPEC>;
impl Pipe2Nrdy {
pub const _0: Self = Self::new(0);
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Pipe3Nrdy_SPEC;
pub type Pipe3Nrdy = crate::EnumBitfieldStruct<u8, Pipe3Nrdy_SPEC>;
impl Pipe3Nrdy {
pub const _0: Self = Self::new(0);
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Pipe4Nrdy_SPEC;
pub type Pipe4Nrdy = crate::EnumBitfieldStruct<u8, Pipe4Nrdy_SPEC>;
impl Pipe4Nrdy {
pub const _0: Self = Self::new(0);
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Pipe5Nrdy_SPEC;
pub type Pipe5Nrdy = crate::EnumBitfieldStruct<u8, Pipe5Nrdy_SPEC>;
impl Pipe5Nrdy {
pub const _0: Self = Self::new(0);
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Pipe6Nrdy_SPEC;
pub type Pipe6Nrdy = crate::EnumBitfieldStruct<u8, Pipe6Nrdy_SPEC>;
impl Pipe6Nrdy {
pub const _0: Self = Self::new(0);
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Pipe7Nrdy_SPEC;
pub type Pipe7Nrdy = crate::EnumBitfieldStruct<u8, Pipe7Nrdy_SPEC>;
impl Pipe7Nrdy {
pub const _0: Self = Self::new(0);
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Pipe8Nrdy_SPEC;
pub type Pipe8Nrdy = crate::EnumBitfieldStruct<u8, Pipe8Nrdy_SPEC>;
impl Pipe8Nrdy {
pub const _0: Self = Self::new(0);
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Pipe9Nrdy_SPEC;
pub type Pipe9Nrdy = crate::EnumBitfieldStruct<u8, Pipe9Nrdy_SPEC>;
impl Pipe9Nrdy {
pub const _0: Self = Self::new(0);
pub const _1: Self = Self::new(1);
}
}
#[doc(hidden)]
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct Bempsts_SPEC;
impl crate::sealed::RegSpec for Bempsts_SPEC {
type DataType = u16;
}
pub type Bempsts = crate::RegValueT<Bempsts_SPEC>;
impl Bempsts {
#[inline(always)]
pub fn pipe0bemp(
self,
) -> crate::common::RegisterField<
0,
0x1,
1,
0,
bempsts::Pipe0Bemp,
bempsts::Pipe0Bemp,
Bempsts_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
0,
0x1,
1,
0,
bempsts::Pipe0Bemp,
bempsts::Pipe0Bemp,
Bempsts_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[inline(always)]
pub fn pipe1bemp(
self,
) -> crate::common::RegisterField<
1,
0x1,
1,
0,
bempsts::Pipe1Bemp,
bempsts::Pipe1Bemp,
Bempsts_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
1,
0x1,
1,
0,
bempsts::Pipe1Bemp,
bempsts::Pipe1Bemp,
Bempsts_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[inline(always)]
pub fn pipe2bemp(
self,
) -> crate::common::RegisterField<
2,
0x1,
1,
0,
bempsts::Pipe2Bemp,
bempsts::Pipe2Bemp,
Bempsts_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
2,
0x1,
1,
0,
bempsts::Pipe2Bemp,
bempsts::Pipe2Bemp,
Bempsts_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[inline(always)]
pub fn pipe3bemp(
self,
) -> crate::common::RegisterField<
3,
0x1,
1,
0,
bempsts::Pipe3Bemp,
bempsts::Pipe3Bemp,
Bempsts_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
3,
0x1,
1,
0,
bempsts::Pipe3Bemp,
bempsts::Pipe3Bemp,
Bempsts_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[inline(always)]
pub fn pipe4bemp(
self,
) -> crate::common::RegisterField<
4,
0x1,
1,
0,
bempsts::Pipe4Bemp,
bempsts::Pipe4Bemp,
Bempsts_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
4,
0x1,
1,
0,
bempsts::Pipe4Bemp,
bempsts::Pipe4Bemp,
Bempsts_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[inline(always)]
pub fn pipe5bemp(
self,
) -> crate::common::RegisterField<
5,
0x1,
1,
0,
bempsts::Pipe5Bemp,
bempsts::Pipe5Bemp,
Bempsts_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
5,
0x1,
1,
0,
bempsts::Pipe5Bemp,
bempsts::Pipe5Bemp,
Bempsts_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[inline(always)]
pub fn pipe6bemp(
self,
) -> crate::common::RegisterField<
6,
0x1,
1,
0,
bempsts::Pipe6Bemp,
bempsts::Pipe6Bemp,
Bempsts_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
6,
0x1,
1,
0,
bempsts::Pipe6Bemp,
bempsts::Pipe6Bemp,
Bempsts_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[inline(always)]
pub fn pipe7bemp(
self,
) -> crate::common::RegisterField<
7,
0x1,
1,
0,
bempsts::Pipe7Bemp,
bempsts::Pipe7Bemp,
Bempsts_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
7,
0x1,
1,
0,
bempsts::Pipe7Bemp,
bempsts::Pipe7Bemp,
Bempsts_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[inline(always)]
pub fn pipe8bemp(
self,
) -> crate::common::RegisterField<
8,
0x1,
1,
0,
bempsts::Pipe8Bemp,
bempsts::Pipe8Bemp,
Bempsts_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
8,
0x1,
1,
0,
bempsts::Pipe8Bemp,
bempsts::Pipe8Bemp,
Bempsts_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[inline(always)]
pub fn pipe9bemp(
self,
) -> crate::common::RegisterField<
9,
0x1,
1,
0,
bempsts::Pipe9Bemp,
bempsts::Pipe9Bemp,
Bempsts_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
9,
0x1,
1,
0,
bempsts::Pipe9Bemp,
bempsts::Pipe9Bemp,
Bempsts_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
}
impl ::core::default::Default for Bempsts {
#[inline(always)]
fn default() -> Bempsts {
<crate::RegValueT<Bempsts_SPEC> as RegisterValue<_>>::new(0)
}
}
pub mod bempsts {
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Pipe0Bemp_SPEC;
pub type Pipe0Bemp = crate::EnumBitfieldStruct<u8, Pipe0Bemp_SPEC>;
impl Pipe0Bemp {
pub const _0: Self = Self::new(0);
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Pipe1Bemp_SPEC;
pub type Pipe1Bemp = crate::EnumBitfieldStruct<u8, Pipe1Bemp_SPEC>;
impl Pipe1Bemp {
pub const _0: Self = Self::new(0);
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Pipe2Bemp_SPEC;
pub type Pipe2Bemp = crate::EnumBitfieldStruct<u8, Pipe2Bemp_SPEC>;
impl Pipe2Bemp {
pub const _0: Self = Self::new(0);
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Pipe3Bemp_SPEC;
pub type Pipe3Bemp = crate::EnumBitfieldStruct<u8, Pipe3Bemp_SPEC>;
impl Pipe3Bemp {
pub const _0: Self = Self::new(0);
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Pipe4Bemp_SPEC;
pub type Pipe4Bemp = crate::EnumBitfieldStruct<u8, Pipe4Bemp_SPEC>;
impl Pipe4Bemp {
pub const _0: Self = Self::new(0);
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Pipe5Bemp_SPEC;
pub type Pipe5Bemp = crate::EnumBitfieldStruct<u8, Pipe5Bemp_SPEC>;
impl Pipe5Bemp {
pub const _0: Self = Self::new(0);
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Pipe6Bemp_SPEC;
pub type Pipe6Bemp = crate::EnumBitfieldStruct<u8, Pipe6Bemp_SPEC>;
impl Pipe6Bemp {
pub const _0: Self = Self::new(0);
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Pipe7Bemp_SPEC;
pub type Pipe7Bemp = crate::EnumBitfieldStruct<u8, Pipe7Bemp_SPEC>;
impl Pipe7Bemp {
pub const _0: Self = Self::new(0);
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Pipe8Bemp_SPEC;
pub type Pipe8Bemp = crate::EnumBitfieldStruct<u8, Pipe8Bemp_SPEC>;
impl Pipe8Bemp {
pub const _0: Self = Self::new(0);
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Pipe9Bemp_SPEC;
pub type Pipe9Bemp = crate::EnumBitfieldStruct<u8, Pipe9Bemp_SPEC>;
impl Pipe9Bemp {
pub const _0: Self = Self::new(0);
pub const _1: Self = Self::new(1);
}
}
#[doc(hidden)]
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct Frmnum_SPEC;
impl crate::sealed::RegSpec for Frmnum_SPEC {
type DataType = u16;
}
pub type Frmnum = crate::RegValueT<Frmnum_SPEC>;
impl Frmnum {
#[inline(always)]
pub fn frnm(
self,
) -> crate::common::RegisterField<0, 0x7ff, 1, 0, u16, u16, Frmnum_SPEC, crate::common::R> {
crate::common::RegisterField::<0,0x7ff,1,0,u16,u16,Frmnum_SPEC,crate::common::R>::from_register(self,0)
}
#[inline(always)]
pub fn crce(
self,
) -> crate::common::RegisterField<
14,
0x1,
1,
0,
frmnum::Crce,
frmnum::Crce,
Frmnum_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
14,
0x1,
1,
0,
frmnum::Crce,
frmnum::Crce,
Frmnum_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[inline(always)]
pub fn ovrn(
self,
) -> crate::common::RegisterField<
15,
0x1,
1,
0,
frmnum::Ovrn,
frmnum::Ovrn,
Frmnum_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
15,
0x1,
1,
0,
frmnum::Ovrn,
frmnum::Ovrn,
Frmnum_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
}
impl ::core::default::Default for Frmnum {
#[inline(always)]
fn default() -> Frmnum {
<crate::RegValueT<Frmnum_SPEC> as RegisterValue<_>>::new(0)
}
}
pub mod frmnum {
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Crce_SPEC;
pub type Crce = crate::EnumBitfieldStruct<u8, Crce_SPEC>;
impl Crce {
pub const _0: Self = Self::new(0);
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Ovrn_SPEC;
pub type Ovrn = crate::EnumBitfieldStruct<u8, Ovrn_SPEC>;
impl Ovrn {
pub const _0: Self = Self::new(0);
pub const _1: Self = Self::new(1);
}
}
#[doc(hidden)]
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct Dvchgr_SPEC;
impl crate::sealed::RegSpec for Dvchgr_SPEC {
type DataType = u16;
}
pub type Dvchgr = crate::RegValueT<Dvchgr_SPEC>;
impl Dvchgr {
#[inline(always)]
pub fn dvchg(
self,
) -> crate::common::RegisterField<
15,
0x1,
1,
0,
dvchgr::Dvchg,
dvchgr::Dvchg,
Dvchgr_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
15,
0x1,
1,
0,
dvchgr::Dvchg,
dvchgr::Dvchg,
Dvchgr_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
}
impl ::core::default::Default for Dvchgr {
#[inline(always)]
fn default() -> Dvchgr {
<crate::RegValueT<Dvchgr_SPEC> as RegisterValue<_>>::new(0)
}
}
pub mod dvchgr {
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Dvchg_SPEC;
pub type Dvchg = crate::EnumBitfieldStruct<u8, Dvchg_SPEC>;
impl Dvchg {
pub const _0: Self = Self::new(0);
pub const _1: Self = Self::new(1);
}
}
#[doc(hidden)]
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct Usbaddr_SPEC;
impl crate::sealed::RegSpec for Usbaddr_SPEC {
type DataType = u16;
}
pub type Usbaddr = crate::RegValueT<Usbaddr_SPEC>;
impl Usbaddr {
#[inline(always)]
pub fn usbaddr(
self,
) -> crate::common::RegisterField<0, 0x7f, 1, 0, u8, u8, Usbaddr_SPEC, crate::common::RW> {
crate::common::RegisterField::<0,0x7f,1,0,u8,u8,Usbaddr_SPEC,crate::common::RW>::from_register(self,0)
}
#[inline(always)]
pub fn stsrecov(
self,
) -> crate::common::RegisterField<
8,
0xf,
1,
0,
usbaddr::Stsrecov,
usbaddr::Stsrecov,
Usbaddr_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
8,
0xf,
1,
0,
usbaddr::Stsrecov,
usbaddr::Stsrecov,
Usbaddr_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
}
impl ::core::default::Default for Usbaddr {
#[inline(always)]
fn default() -> Usbaddr {
<crate::RegValueT<Usbaddr_SPEC> as RegisterValue<_>>::new(0)
}
}
pub mod usbaddr {
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Stsrecov_SPEC;
pub type Stsrecov = crate::EnumBitfieldStruct<u8, Stsrecov_SPEC>;
impl Stsrecov {
pub const _0_X_4: Self = Self::new(4);
pub const _0_X_8: Self = Self::new(8);
pub const _0_X_9: Self = Self::new(9);
pub const _0_X_A: Self = Self::new(10);
pub const _0_X_B: Self = Self::new(11);
pub const OTHERS: Self = Self::new(0);
}
}
#[doc(hidden)]
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct Usbreq_SPEC;
impl crate::sealed::RegSpec for Usbreq_SPEC {
type DataType = u16;
}
pub type Usbreq = crate::RegValueT<Usbreq_SPEC>;
impl Usbreq {
#[inline(always)]
pub fn bmrequesttype(
self,
) -> crate::common::RegisterField<0, 0xff, 1, 0, u8, u8, Usbreq_SPEC, crate::common::RW> {
crate::common::RegisterField::<0,0xff,1,0,u8,u8,Usbreq_SPEC,crate::common::RW>::from_register(self,0)
}
#[inline(always)]
pub fn brequest(
self,
) -> crate::common::RegisterField<8, 0xff, 1, 0, u8, u8, Usbreq_SPEC, crate::common::RW> {
crate::common::RegisterField::<8,0xff,1,0,u8,u8,Usbreq_SPEC,crate::common::RW>::from_register(self,0)
}
}
impl ::core::default::Default for Usbreq {
#[inline(always)]
fn default() -> Usbreq {
<crate::RegValueT<Usbreq_SPEC> as RegisterValue<_>>::new(0)
}
}
#[doc(hidden)]
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct Usbval_SPEC;
impl crate::sealed::RegSpec for Usbval_SPEC {
type DataType = u16;
}
pub type Usbval = crate::RegValueT<Usbval_SPEC>;
impl Usbval {
#[inline(always)]
pub fn wvalue(
self,
) -> crate::common::RegisterField<0, 0xffff, 1, 0, u16, u16, Usbval_SPEC, crate::common::RW>
{
crate::common::RegisterField::<0,0xffff,1,0,u16,u16,Usbval_SPEC,crate::common::RW>::from_register(self,0)
}
}
impl ::core::default::Default for Usbval {
#[inline(always)]
fn default() -> Usbval {
<crate::RegValueT<Usbval_SPEC> as RegisterValue<_>>::new(0)
}
}
#[doc(hidden)]
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct Usbindx_SPEC;
impl crate::sealed::RegSpec for Usbindx_SPEC {
type DataType = u16;
}
pub type Usbindx = crate::RegValueT<Usbindx_SPEC>;
impl Usbindx {
#[inline(always)]
pub fn windex(
self,
) -> crate::common::RegisterField<0, 0xffff, 1, 0, u16, u16, Usbindx_SPEC, crate::common::RW>
{
crate::common::RegisterField::<0,0xffff,1,0,u16,u16,Usbindx_SPEC,crate::common::RW>::from_register(self,0)
}
}
impl ::core::default::Default for Usbindx {
#[inline(always)]
fn default() -> Usbindx {
<crate::RegValueT<Usbindx_SPEC> as RegisterValue<_>>::new(0)
}
}
#[doc(hidden)]
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct Usbleng_SPEC;
impl crate::sealed::RegSpec for Usbleng_SPEC {
type DataType = u16;
}
pub type Usbleng = crate::RegValueT<Usbleng_SPEC>;
impl Usbleng {
#[inline(always)]
pub fn wlentuh(
self,
) -> crate::common::RegisterField<0, 0xffff, 1, 0, u16, u16, Usbleng_SPEC, crate::common::RW>
{
crate::common::RegisterField::<0,0xffff,1,0,u16,u16,Usbleng_SPEC,crate::common::RW>::from_register(self,0)
}
}
impl ::core::default::Default for Usbleng {
#[inline(always)]
fn default() -> Usbleng {
<crate::RegValueT<Usbleng_SPEC> as RegisterValue<_>>::new(0)
}
}
#[doc(hidden)]
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct Dcpcfg_SPEC;
impl crate::sealed::RegSpec for Dcpcfg_SPEC {
type DataType = u16;
}
pub type Dcpcfg = crate::RegValueT<Dcpcfg_SPEC>;
impl Dcpcfg {
#[inline(always)]
pub fn dir(
self,
) -> crate::common::RegisterField<
4,
0x1,
1,
0,
dcpcfg::Dir,
dcpcfg::Dir,
Dcpcfg_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
4,
0x1,
1,
0,
dcpcfg::Dir,
dcpcfg::Dir,
Dcpcfg_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[inline(always)]
pub fn shtnak(
self,
) -> crate::common::RegisterField<
7,
0x1,
1,
0,
dcpcfg::Shtnak,
dcpcfg::Shtnak,
Dcpcfg_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
7,
0x1,
1,
0,
dcpcfg::Shtnak,
dcpcfg::Shtnak,
Dcpcfg_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
}
impl ::core::default::Default for Dcpcfg {
#[inline(always)]
fn default() -> Dcpcfg {
<crate::RegValueT<Dcpcfg_SPEC> as RegisterValue<_>>::new(0)
}
}
pub mod dcpcfg {
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Dir_SPEC;
pub type Dir = crate::EnumBitfieldStruct<u8, Dir_SPEC>;
impl Dir {
pub const _0: Self = Self::new(0);
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Shtnak_SPEC;
pub type Shtnak = crate::EnumBitfieldStruct<u8, Shtnak_SPEC>;
impl Shtnak {
pub const _0: Self = Self::new(0);
pub const _1: Self = Self::new(1);
}
}
#[doc(hidden)]
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct Dcpmaxp_SPEC;
impl crate::sealed::RegSpec for Dcpmaxp_SPEC {
type DataType = u16;
}
pub type Dcpmaxp = crate::RegValueT<Dcpmaxp_SPEC>;
impl Dcpmaxp {
#[inline(always)]
pub fn mxps(
self,
) -> crate::common::RegisterField<0, 0x7f, 1, 0, u8, u8, Dcpmaxp_SPEC, crate::common::RW> {
crate::common::RegisterField::<0,0x7f,1,0,u8,u8,Dcpmaxp_SPEC,crate::common::RW>::from_register(self,0)
}
#[inline(always)]
pub fn devsel(
self,
) -> crate::common::RegisterField<
12,
0xf,
1,
0,
dcpmaxp::Devsel,
dcpmaxp::Devsel,
Dcpmaxp_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
12,
0xf,
1,
0,
dcpmaxp::Devsel,
dcpmaxp::Devsel,
Dcpmaxp_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
}
impl ::core::default::Default for Dcpmaxp {
#[inline(always)]
fn default() -> Dcpmaxp {
<crate::RegValueT<Dcpmaxp_SPEC> as RegisterValue<_>>::new(64)
}
}
pub mod dcpmaxp {
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Devsel_SPEC;
pub type Devsel = crate::EnumBitfieldStruct<u8, Devsel_SPEC>;
impl Devsel {
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 OTHERS: Self = Self::new(0);
}
}
#[doc(hidden)]
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct Dcpctr_SPEC;
impl crate::sealed::RegSpec for Dcpctr_SPEC {
type DataType = u16;
}
pub type Dcpctr = crate::RegValueT<Dcpctr_SPEC>;
impl Dcpctr {
#[inline(always)]
pub fn pid(
self,
) -> crate::common::RegisterField<
0,
0x3,
1,
0,
dcpctr::Pid,
dcpctr::Pid,
Dcpctr_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
0,
0x3,
1,
0,
dcpctr::Pid,
dcpctr::Pid,
Dcpctr_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[inline(always)]
pub fn ccpl(
self,
) -> crate::common::RegisterField<
2,
0x1,
1,
0,
dcpctr::Ccpl,
dcpctr::Ccpl,
Dcpctr_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
2,
0x1,
1,
0,
dcpctr::Ccpl,
dcpctr::Ccpl,
Dcpctr_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[inline(always)]
pub fn pbusy(
self,
) -> crate::common::RegisterField<
5,
0x1,
1,
0,
dcpctr::Pbusy,
dcpctr::Pbusy,
Dcpctr_SPEC,
crate::common::R,
> {
crate::common::RegisterField::<
5,
0x1,
1,
0,
dcpctr::Pbusy,
dcpctr::Pbusy,
Dcpctr_SPEC,
crate::common::R,
>::from_register(self, 0)
}
#[inline(always)]
pub fn sqmon(
self,
) -> crate::common::RegisterField<
6,
0x1,
1,
0,
dcpctr::Sqmon,
dcpctr::Sqmon,
Dcpctr_SPEC,
crate::common::R,
> {
crate::common::RegisterField::<
6,
0x1,
1,
0,
dcpctr::Sqmon,
dcpctr::Sqmon,
Dcpctr_SPEC,
crate::common::R,
>::from_register(self, 0)
}
#[inline(always)]
pub fn sqset(
self,
) -> crate::common::RegisterField<
7,
0x1,
1,
0,
dcpctr::Sqset,
dcpctr::Sqset,
Dcpctr_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
7,
0x1,
1,
0,
dcpctr::Sqset,
dcpctr::Sqset,
Dcpctr_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[inline(always)]
pub fn sqclr(
self,
) -> crate::common::RegisterField<
8,
0x1,
1,
0,
dcpctr::Sqclr,
dcpctr::Sqclr,
Dcpctr_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
8,
0x1,
1,
0,
dcpctr::Sqclr,
dcpctr::Sqclr,
Dcpctr_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[inline(always)]
pub fn sureqclr(
self,
) -> crate::common::RegisterField<
11,
0x1,
1,
0,
dcpctr::Sureqclr,
dcpctr::Sureqclr,
Dcpctr_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
11,
0x1,
1,
0,
dcpctr::Sureqclr,
dcpctr::Sureqclr,
Dcpctr_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[inline(always)]
pub fn sureq(
self,
) -> crate::common::RegisterField<
14,
0x1,
1,
0,
dcpctr::Sureq,
dcpctr::Sureq,
Dcpctr_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
14,
0x1,
1,
0,
dcpctr::Sureq,
dcpctr::Sureq,
Dcpctr_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[inline(always)]
pub fn bsts(
self,
) -> crate::common::RegisterField<
15,
0x1,
1,
0,
dcpctr::Bsts,
dcpctr::Bsts,
Dcpctr_SPEC,
crate::common::R,
> {
crate::common::RegisterField::<
15,
0x1,
1,
0,
dcpctr::Bsts,
dcpctr::Bsts,
Dcpctr_SPEC,
crate::common::R,
>::from_register(self, 0)
}
}
impl ::core::default::Default for Dcpctr {
#[inline(always)]
fn default() -> Dcpctr {
<crate::RegValueT<Dcpctr_SPEC> as RegisterValue<_>>::new(64)
}
}
pub mod dcpctr {
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Pid_SPEC;
pub type Pid = crate::EnumBitfieldStruct<u8, Pid_SPEC>;
impl Pid {
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 Ccpl_SPEC;
pub type Ccpl = crate::EnumBitfieldStruct<u8, Ccpl_SPEC>;
impl Ccpl {
pub const _0: Self = Self::new(0);
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Pbusy_SPEC;
pub type Pbusy = crate::EnumBitfieldStruct<u8, Pbusy_SPEC>;
impl Pbusy {
pub const _0: Self = Self::new(0);
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Sqmon_SPEC;
pub type Sqmon = crate::EnumBitfieldStruct<u8, Sqmon_SPEC>;
impl Sqmon {
pub const _0: Self = Self::new(0);
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Sqset_SPEC;
pub type Sqset = crate::EnumBitfieldStruct<u8, Sqset_SPEC>;
impl Sqset {
pub const _0: Self = Self::new(0);
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Sqclr_SPEC;
pub type Sqclr = crate::EnumBitfieldStruct<u8, Sqclr_SPEC>;
impl Sqclr {
pub const _0: Self = Self::new(0);
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Sureqclr_SPEC;
pub type Sureqclr = crate::EnumBitfieldStruct<u8, Sureqclr_SPEC>;
impl Sureqclr {
pub const _0: Self = Self::new(0);
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Sureq_SPEC;
pub type Sureq = crate::EnumBitfieldStruct<u8, Sureq_SPEC>;
impl Sureq {
pub const _0: Self = Self::new(0);
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Bsts_SPEC;
pub type Bsts = crate::EnumBitfieldStruct<u8, Bsts_SPEC>;
impl Bsts {
pub const _0: Self = Self::new(0);
pub const _1: Self = Self::new(1);
}
}
#[doc(hidden)]
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct Pipesel_SPEC;
impl crate::sealed::RegSpec for Pipesel_SPEC {
type DataType = u16;
}
pub type Pipesel = crate::RegValueT<Pipesel_SPEC>;
impl Pipesel {
#[inline(always)]
pub fn pipesel(
self,
) -> crate::common::RegisterField<
0,
0xf,
1,
0,
pipesel::Pipesel,
pipesel::Pipesel,
Pipesel_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
0,
0xf,
1,
0,
pipesel::Pipesel,
pipesel::Pipesel,
Pipesel_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
}
impl ::core::default::Default for Pipesel {
#[inline(always)]
fn default() -> Pipesel {
<crate::RegValueT<Pipesel_SPEC> as RegisterValue<_>>::new(0)
}
}
pub mod pipesel {
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Pipesel_SPEC;
pub type Pipesel = crate::EnumBitfieldStruct<u8, Pipesel_SPEC>;
impl Pipesel {
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 Pipecfg_SPEC;
impl crate::sealed::RegSpec for Pipecfg_SPEC {
type DataType = u16;
}
pub type Pipecfg = crate::RegValueT<Pipecfg_SPEC>;
impl Pipecfg {
#[inline(always)]
pub fn epnum(
self,
) -> crate::common::RegisterField<0, 0xf, 1, 0, u8, u8, Pipecfg_SPEC, crate::common::RW> {
crate::common::RegisterField::<0,0xf,1,0,u8,u8,Pipecfg_SPEC,crate::common::RW>::from_register(self,0)
}
#[inline(always)]
pub fn dir(
self,
) -> crate::common::RegisterField<
4,
0x1,
1,
0,
pipecfg::Dir,
pipecfg::Dir,
Pipecfg_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
4,
0x1,
1,
0,
pipecfg::Dir,
pipecfg::Dir,
Pipecfg_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[inline(always)]
pub fn shtnak(
self,
) -> crate::common::RegisterField<
7,
0x1,
1,
0,
pipecfg::Shtnak,
pipecfg::Shtnak,
Pipecfg_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
7,
0x1,
1,
0,
pipecfg::Shtnak,
pipecfg::Shtnak,
Pipecfg_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[inline(always)]
pub fn dblb(
self,
) -> crate::common::RegisterField<
9,
0x1,
1,
0,
pipecfg::Dblb,
pipecfg::Dblb,
Pipecfg_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
9,
0x1,
1,
0,
pipecfg::Dblb,
pipecfg::Dblb,
Pipecfg_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[inline(always)]
pub fn bfre(
self,
) -> crate::common::RegisterField<
10,
0x1,
1,
0,
pipecfg::Bfre,
pipecfg::Bfre,
Pipecfg_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
10,
0x1,
1,
0,
pipecfg::Bfre,
pipecfg::Bfre,
Pipecfg_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[inline(always)]
pub fn r#type(
self,
) -> crate::common::RegisterField<
14,
0x3,
1,
0,
pipecfg::Type,
pipecfg::Type,
Pipecfg_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
14,
0x3,
1,
0,
pipecfg::Type,
pipecfg::Type,
Pipecfg_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
}
impl ::core::default::Default for Pipecfg {
#[inline(always)]
fn default() -> Pipecfg {
<crate::RegValueT<Pipecfg_SPEC> as RegisterValue<_>>::new(0)
}
}
pub mod pipecfg {
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Dir_SPEC;
pub type Dir = crate::EnumBitfieldStruct<u8, Dir_SPEC>;
impl Dir {
pub const _0: Self = Self::new(0);
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Shtnak_SPEC;
pub type Shtnak = crate::EnumBitfieldStruct<u8, Shtnak_SPEC>;
impl Shtnak {
pub const _0: Self = Self::new(0);
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Dblb_SPEC;
pub type Dblb = crate::EnumBitfieldStruct<u8, Dblb_SPEC>;
impl Dblb {
pub const _0: Self = Self::new(0);
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Bfre_SPEC;
pub type Bfre = crate::EnumBitfieldStruct<u8, Bfre_SPEC>;
impl Bfre {
pub const _0: Self = Self::new(0);
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Type_SPEC;
pub type Type = crate::EnumBitfieldStruct<u8, Type_SPEC>;
impl Type {
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 Pipemaxp_SPEC;
impl crate::sealed::RegSpec for Pipemaxp_SPEC {
type DataType = u16;
}
pub type Pipemaxp = crate::RegValueT<Pipemaxp_SPEC>;
impl Pipemaxp {
#[inline(always)]
pub fn mxps(
self,
) -> crate::common::RegisterField<0, 0x1ff, 1, 0, u16, u16, Pipemaxp_SPEC, crate::common::RW>
{
crate::common::RegisterField::<0,0x1ff,1,0,u16,u16,Pipemaxp_SPEC,crate::common::RW>::from_register(self,0)
}
#[inline(always)]
pub fn devsel(
self,
) -> crate::common::RegisterField<
12,
0xf,
1,
0,
pipemaxp::Devsel,
pipemaxp::Devsel,
Pipemaxp_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
12,
0xf,
1,
0,
pipemaxp::Devsel,
pipemaxp::Devsel,
Pipemaxp_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
}
impl ::core::default::Default for Pipemaxp {
#[inline(always)]
fn default() -> Pipemaxp {
<crate::RegValueT<Pipemaxp_SPEC> as RegisterValue<_>>::new(0)
}
}
pub mod pipemaxp {
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Devsel_SPEC;
pub type Devsel = crate::EnumBitfieldStruct<u8, Devsel_SPEC>;
impl Devsel {
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 OTHERS: Self = Self::new(0);
}
}
#[doc(hidden)]
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct Pipeperi_SPEC;
impl crate::sealed::RegSpec for Pipeperi_SPEC {
type DataType = u16;
}
pub type Pipeperi = crate::RegValueT<Pipeperi_SPEC>;
impl Pipeperi {
#[inline(always)]
pub fn iitv(
self,
) -> crate::common::RegisterField<0, 0x7, 1, 0, u8, u8, Pipeperi_SPEC, crate::common::RW> {
crate::common::RegisterField::<0,0x7,1,0,u8,u8,Pipeperi_SPEC,crate::common::RW>::from_register(self,0)
}
#[inline(always)]
pub fn ifis(
self,
) -> crate::common::RegisterField<
12,
0x1,
1,
0,
pipeperi::Ifis,
pipeperi::Ifis,
Pipeperi_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
12,
0x1,
1,
0,
pipeperi::Ifis,
pipeperi::Ifis,
Pipeperi_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
}
impl ::core::default::Default for Pipeperi {
#[inline(always)]
fn default() -> Pipeperi {
<crate::RegValueT<Pipeperi_SPEC> as RegisterValue<_>>::new(0)
}
}
pub mod pipeperi {
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Ifis_SPEC;
pub type Ifis = crate::EnumBitfieldStruct<u8, Ifis_SPEC>;
impl Ifis {
pub const _0: Self = Self::new(0);
pub const _1: Self = Self::new(1);
}
}
#[doc(hidden)]
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct Pipectr_SPEC;
impl crate::sealed::RegSpec for Pipectr_SPEC {
type DataType = u16;
}
pub type Pipectr = crate::RegValueT<Pipectr_SPEC>;
impl Pipectr {
#[inline(always)]
pub fn pid(
self,
) -> crate::common::RegisterField<
0,
0x3,
1,
0,
pipectr::Pid,
pipectr::Pid,
Pipectr_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
0,
0x3,
1,
0,
pipectr::Pid,
pipectr::Pid,
Pipectr_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[inline(always)]
pub fn pbusy(
self,
) -> crate::common::RegisterField<
5,
0x1,
1,
0,
pipectr::Pbusy,
pipectr::Pbusy,
Pipectr_SPEC,
crate::common::R,
> {
crate::common::RegisterField::<
5,
0x1,
1,
0,
pipectr::Pbusy,
pipectr::Pbusy,
Pipectr_SPEC,
crate::common::R,
>::from_register(self, 0)
}
#[inline(always)]
pub fn sqmon(
self,
) -> crate::common::RegisterField<
6,
0x1,
1,
0,
pipectr::Sqmon,
pipectr::Sqmon,
Pipectr_SPEC,
crate::common::R,
> {
crate::common::RegisterField::<
6,
0x1,
1,
0,
pipectr::Sqmon,
pipectr::Sqmon,
Pipectr_SPEC,
crate::common::R,
>::from_register(self, 0)
}
#[inline(always)]
pub fn sqset(
self,
) -> crate::common::RegisterField<
7,
0x1,
1,
0,
pipectr::Sqset,
pipectr::Sqset,
Pipectr_SPEC,
crate::common::W,
> {
crate::common::RegisterField::<
7,
0x1,
1,
0,
pipectr::Sqset,
pipectr::Sqset,
Pipectr_SPEC,
crate::common::W,
>::from_register(self, 0)
}
#[inline(always)]
pub fn sqclr(
self,
) -> crate::common::RegisterField<
8,
0x1,
1,
0,
pipectr::Sqclr,
pipectr::Sqclr,
Pipectr_SPEC,
crate::common::W,
> {
crate::common::RegisterField::<
8,
0x1,
1,
0,
pipectr::Sqclr,
pipectr::Sqclr,
Pipectr_SPEC,
crate::common::W,
>::from_register(self, 0)
}
#[inline(always)]
pub fn aclrm(
self,
) -> crate::common::RegisterField<
9,
0x1,
1,
0,
pipectr::Aclrm,
pipectr::Aclrm,
Pipectr_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
9,
0x1,
1,
0,
pipectr::Aclrm,
pipectr::Aclrm,
Pipectr_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[inline(always)]
pub fn bsts(
self,
) -> crate::common::RegisterField<
15,
0x1,
1,
0,
pipectr::Bsts,
pipectr::Bsts,
Pipectr_SPEC,
crate::common::R,
> {
crate::common::RegisterField::<
15,
0x1,
1,
0,
pipectr::Bsts,
pipectr::Bsts,
Pipectr_SPEC,
crate::common::R,
>::from_register(self, 0)
}
}
impl ::core::default::Default for Pipectr {
#[inline(always)]
fn default() -> Pipectr {
<crate::RegValueT<Pipectr_SPEC> as RegisterValue<_>>::new(0)
}
}
pub mod pipectr {
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Pid_SPEC;
pub type Pid = crate::EnumBitfieldStruct<u8, Pid_SPEC>;
impl Pid {
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 Pbusy_SPEC;
pub type Pbusy = crate::EnumBitfieldStruct<u8, Pbusy_SPEC>;
impl Pbusy {
pub const _0: Self = Self::new(0);
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Sqmon_SPEC;
pub type Sqmon = crate::EnumBitfieldStruct<u8, Sqmon_SPEC>;
impl Sqmon {
pub const _0: Self = Self::new(0);
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Sqset_SPEC;
pub type Sqset = crate::EnumBitfieldStruct<u8, Sqset_SPEC>;
impl Sqset {
pub const _0: Self = Self::new(0);
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Sqclr_SPEC;
pub type Sqclr = crate::EnumBitfieldStruct<u8, Sqclr_SPEC>;
impl Sqclr {
pub const _0: Self = Self::new(0);
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Aclrm_SPEC;
pub type Aclrm = crate::EnumBitfieldStruct<u8, Aclrm_SPEC>;
impl Aclrm {
pub const _0: Self = Self::new(0);
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Bsts_SPEC;
pub type Bsts = crate::EnumBitfieldStruct<u8, Bsts_SPEC>;
impl Bsts {
pub const _0: Self = Self::new(0);
pub const _1: Self = Self::new(1);
}
}
#[doc(hidden)]
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct Pipetre_SPEC;
impl crate::sealed::RegSpec for Pipetre_SPEC {
type DataType = u16;
}
pub type Pipetre = crate::RegValueT<Pipetre_SPEC>;
impl Pipetre {
#[inline(always)]
pub fn trclr(
self,
) -> crate::common::RegisterField<
8,
0x1,
1,
0,
pipetre::Trclr,
pipetre::Trclr,
Pipetre_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
8,
0x1,
1,
0,
pipetre::Trclr,
pipetre::Trclr,
Pipetre_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[inline(always)]
pub fn trenb(
self,
) -> crate::common::RegisterField<
9,
0x1,
1,
0,
pipetre::Trenb,
pipetre::Trenb,
Pipetre_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
9,
0x1,
1,
0,
pipetre::Trenb,
pipetre::Trenb,
Pipetre_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
}
impl ::core::default::Default for Pipetre {
#[inline(always)]
fn default() -> Pipetre {
<crate::RegValueT<Pipetre_SPEC> as RegisterValue<_>>::new(0)
}
}
pub mod pipetre {
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Trclr_SPEC;
pub type Trclr = crate::EnumBitfieldStruct<u8, Trclr_SPEC>;
impl Trclr {
pub const _0: Self = Self::new(0);
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Trenb_SPEC;
pub type Trenb = crate::EnumBitfieldStruct<u8, Trenb_SPEC>;
impl Trenb {
pub const _0: Self = Self::new(0);
pub const _1: Self = Self::new(1);
}
}
#[doc(hidden)]
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct Pipetrn_SPEC;
impl crate::sealed::RegSpec for Pipetrn_SPEC {
type DataType = u16;
}
pub type Pipetrn = crate::RegValueT<Pipetrn_SPEC>;
impl Pipetrn {
#[inline(always)]
pub fn trncnt(
self,
) -> crate::common::RegisterField<0, 0xffff, 1, 0, u16, u16, Pipetrn_SPEC, crate::common::RW>
{
crate::common::RegisterField::<0,0xffff,1,0,u16,u16,Pipetrn_SPEC,crate::common::RW>::from_register(self,0)
}
}
impl ::core::default::Default for Pipetrn {
#[inline(always)]
fn default() -> Pipetrn {
<crate::RegValueT<Pipetrn_SPEC> as RegisterValue<_>>::new(0)
}
}
#[doc(hidden)]
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct Bcctrl1_SPEC;
impl crate::sealed::RegSpec for Bcctrl1_SPEC {
type DataType = u32;
}
pub type Bcctrl1 = crate::RegValueT<Bcctrl1_SPEC>;
impl Bcctrl1 {
#[inline(always)]
pub fn rpdme(
self,
) -> crate::common::RegisterField<
0,
0x1,
1,
0,
bcctrl1::Rpdme,
bcctrl1::Rpdme,
Bcctrl1_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
0,
0x1,
1,
0,
bcctrl1::Rpdme,
bcctrl1::Rpdme,
Bcctrl1_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[inline(always)]
pub fn idpsrce(
self,
) -> crate::common::RegisterField<
1,
0x1,
1,
0,
bcctrl1::Idpsrce,
bcctrl1::Idpsrce,
Bcctrl1_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
1,
0x1,
1,
0,
bcctrl1::Idpsrce,
bcctrl1::Idpsrce,
Bcctrl1_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[inline(always)]
pub fn vdmsrce(
self,
) -> crate::common::RegisterField<
2,
0x1,
1,
0,
bcctrl1::Vdmsrce,
bcctrl1::Vdmsrce,
Bcctrl1_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
2,
0x1,
1,
0,
bcctrl1::Vdmsrce,
bcctrl1::Vdmsrce,
Bcctrl1_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[inline(always)]
pub fn vdpsrce(
self,
) -> crate::common::RegisterField<
3,
0x1,
1,
0,
bcctrl1::Vdpsrce,
bcctrl1::Vdpsrce,
Bcctrl1_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
3,
0x1,
1,
0,
bcctrl1::Vdpsrce,
bcctrl1::Vdpsrce,
Bcctrl1_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[inline(always)]
pub fn pddete(
self,
) -> crate::common::RegisterField<
4,
0x1,
1,
0,
bcctrl1::Pddete,
bcctrl1::Pddete,
Bcctrl1_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
4,
0x1,
1,
0,
bcctrl1::Pddete,
bcctrl1::Pddete,
Bcctrl1_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[inline(always)]
pub fn chgdete(
self,
) -> crate::common::RegisterField<
5,
0x1,
1,
0,
bcctrl1::Chgdete,
bcctrl1::Chgdete,
Bcctrl1_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
5,
0x1,
1,
0,
bcctrl1::Chgdete,
bcctrl1::Chgdete,
Bcctrl1_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[inline(always)]
pub fn pddetsts(
self,
) -> crate::common::RegisterField<
8,
0x1,
1,
0,
bcctrl1::Pddetsts,
bcctrl1::Pddetsts,
Bcctrl1_SPEC,
crate::common::R,
> {
crate::common::RegisterField::<
8,
0x1,
1,
0,
bcctrl1::Pddetsts,
bcctrl1::Pddetsts,
Bcctrl1_SPEC,
crate::common::R,
>::from_register(self, 0)
}
#[inline(always)]
pub fn chgdetsts(
self,
) -> crate::common::RegisterField<
9,
0x1,
1,
0,
bcctrl1::Chgdetsts,
bcctrl1::Chgdetsts,
Bcctrl1_SPEC,
crate::common::R,
> {
crate::common::RegisterField::<
9,
0x1,
1,
0,
bcctrl1::Chgdetsts,
bcctrl1::Chgdetsts,
Bcctrl1_SPEC,
crate::common::R,
>::from_register(self, 0)
}
}
impl ::core::default::Default for Bcctrl1 {
#[inline(always)]
fn default() -> Bcctrl1 {
<crate::RegValueT<Bcctrl1_SPEC> as RegisterValue<_>>::new(0)
}
}
pub mod bcctrl1 {
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Rpdme_SPEC;
pub type Rpdme = crate::EnumBitfieldStruct<u8, Rpdme_SPEC>;
impl Rpdme {
pub const _0: Self = Self::new(0);
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Idpsrce_SPEC;
pub type Idpsrce = crate::EnumBitfieldStruct<u8, Idpsrce_SPEC>;
impl Idpsrce {
pub const _0: Self = Self::new(0);
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Vdmsrce_SPEC;
pub type Vdmsrce = crate::EnumBitfieldStruct<u8, Vdmsrce_SPEC>;
impl Vdmsrce {
pub const _0: Self = Self::new(0);
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Vdpsrce_SPEC;
pub type Vdpsrce = crate::EnumBitfieldStruct<u8, Vdpsrce_SPEC>;
impl Vdpsrce {
pub const _0: Self = Self::new(0);
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Pddete_SPEC;
pub type Pddete = crate::EnumBitfieldStruct<u8, Pddete_SPEC>;
impl Pddete {
pub const _0: Self = Self::new(0);
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Chgdete_SPEC;
pub type Chgdete = crate::EnumBitfieldStruct<u8, Chgdete_SPEC>;
impl Chgdete {
pub const _0: Self = Self::new(0);
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Pddetsts_SPEC;
pub type Pddetsts = crate::EnumBitfieldStruct<u8, Pddetsts_SPEC>;
impl Pddetsts {
pub const _0: Self = Self::new(0);
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Chgdetsts_SPEC;
pub type Chgdetsts = crate::EnumBitfieldStruct<u8, Chgdetsts_SPEC>;
impl Chgdetsts {
pub const _0: Self = Self::new(0);
pub const _1: Self = Self::new(1);
}
}
#[doc(hidden)]
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct Bcctrl2_SPEC;
impl crate::sealed::RegSpec for Bcctrl2_SPEC {
type DataType = u32;
}
pub type Bcctrl2 = crate::RegValueT<Bcctrl2_SPEC>;
impl Bcctrl2 {
#[inline(always)]
pub fn dcpmode(
self,
) -> crate::common::RegisterField<
6,
0x1,
1,
0,
bcctrl2::Dcpmode,
bcctrl2::Dcpmode,
Bcctrl2_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
6,
0x1,
1,
0,
bcctrl2::Dcpmode,
bcctrl2::Dcpmode,
Bcctrl2_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[inline(always)]
pub fn batchge(
self,
) -> crate::common::RegisterField<
7,
0x1,
1,
0,
bcctrl2::Batchge,
bcctrl2::Batchge,
Bcctrl2_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
7,
0x1,
1,
0,
bcctrl2::Batchge,
bcctrl2::Batchge,
Bcctrl2_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[inline(always)]
pub fn phydet(
self,
) -> crate::common::RegisterField<12, 0x3, 1, 0, u8, u8, Bcctrl2_SPEC, crate::common::RW> {
crate::common::RegisterField::<12,0x3,1,0,u8,u8,Bcctrl2_SPEC,crate::common::RW>::from_register(self,0)
}
}
impl ::core::default::Default for Bcctrl2 {
#[inline(always)]
fn default() -> Bcctrl2 {
<crate::RegValueT<Bcctrl2_SPEC> as RegisterValue<_>>::new(8192)
}
}
pub mod bcctrl2 {
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Dcpmode_SPEC;
pub type Dcpmode = crate::EnumBitfieldStruct<u8, Dcpmode_SPEC>;
impl Dcpmode {
pub const _0: Self = Self::new(0);
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Batchge_SPEC;
pub type Batchge = crate::EnumBitfieldStruct<u8, Batchge_SPEC>;
impl Batchge {
pub const _0: Self = Self::new(0);
pub const _1: Self = Self::new(1);
}
}
#[doc(hidden)]
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct Devadd_SPEC;
impl crate::sealed::RegSpec for Devadd_SPEC {
type DataType = u16;
}
pub type Devadd = crate::RegValueT<Devadd_SPEC>;
impl Devadd {
#[inline(always)]
pub fn usbspd(
self,
) -> crate::common::RegisterField<
6,
0x3,
1,
0,
devadd::Usbspd,
devadd::Usbspd,
Devadd_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
6,
0x3,
1,
0,
devadd::Usbspd,
devadd::Usbspd,
Devadd_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
}
impl ::core::default::Default for Devadd {
#[inline(always)]
fn default() -> Devadd {
<crate::RegValueT<Devadd_SPEC> as RegisterValue<_>>::new(0)
}
}
pub mod devadd {
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Usbspd_SPEC;
pub type Usbspd = crate::EnumBitfieldStruct<u8, Usbspd_SPEC>;
impl Usbspd {
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 Physectrl_SPEC;
impl crate::sealed::RegSpec for Physectrl_SPEC {
type DataType = u32;
}
pub type Physectrl = crate::RegValueT<Physectrl_SPEC>;
impl Physectrl {
#[inline(always)]
pub fn cnen(
self,
) -> crate::common::RegisterField<
4,
0x1,
1,
0,
physectrl::Cnen,
physectrl::Cnen,
Physectrl_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
4,
0x1,
1,
0,
physectrl::Cnen,
physectrl::Cnen,
Physectrl_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
}
impl ::core::default::Default for Physectrl {
#[inline(always)]
fn default() -> Physectrl {
<crate::RegValueT<Physectrl_SPEC> as RegisterValue<_>>::new(0)
}
}
pub mod physectrl {
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Cnen_SPEC;
pub type Cnen = crate::EnumBitfieldStruct<u8, Cnen_SPEC>;
impl Cnen {
pub const _0: Self = Self::new(0);
pub const _1: Self = Self::new(1);
}
}
#[doc(hidden)]
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct Dpusr0R_SPEC;
impl crate::sealed::RegSpec for Dpusr0R_SPEC {
type DataType = u32;
}
pub type Dpusr0R = crate::RegValueT<Dpusr0R_SPEC>;
impl Dpusr0R {
#[inline(always)]
pub fn srpc0(
self,
) -> crate::common::RegisterField<
0,
0x1,
1,
0,
dpusr0r::Srpc0,
dpusr0r::Srpc0,
Dpusr0R_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
0,
0x1,
1,
0,
dpusr0r::Srpc0,
dpusr0r::Srpc0,
Dpusr0R_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[inline(always)]
pub fn rpue0(
self,
) -> crate::common::RegisterField<
1,
0x1,
1,
0,
dpusr0r::Rpue0,
dpusr0r::Rpue0,
Dpusr0R_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
1,
0x1,
1,
0,
dpusr0r::Rpue0,
dpusr0r::Rpue0,
Dpusr0R_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[inline(always)]
pub fn drpd0(
self,
) -> crate::common::RegisterField<
3,
0x1,
1,
0,
dpusr0r::Drpd0,
dpusr0r::Drpd0,
Dpusr0R_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
3,
0x1,
1,
0,
dpusr0r::Drpd0,
dpusr0r::Drpd0,
Dpusr0R_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[inline(always)]
pub fn fixphy0(
self,
) -> crate::common::RegisterField<
4,
0x1,
1,
0,
dpusr0r::Fixphy0,
dpusr0r::Fixphy0,
Dpusr0R_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
4,
0x1,
1,
0,
dpusr0r::Fixphy0,
dpusr0r::Fixphy0,
Dpusr0R_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[inline(always)]
pub fn dp0(self) -> crate::common::RegisterFieldBool<16, 1, 0, Dpusr0R_SPEC, crate::common::R> {
crate::common::RegisterFieldBool::<16, 1, 0, Dpusr0R_SPEC, crate::common::R>::from_register(
self, 0,
)
}
#[inline(always)]
pub fn dm0(self) -> crate::common::RegisterFieldBool<17, 1, 0, Dpusr0R_SPEC, crate::common::R> {
crate::common::RegisterFieldBool::<17, 1, 0, Dpusr0R_SPEC, crate::common::R>::from_register(
self, 0,
)
}
#[inline(always)]
pub fn dovca0(
self,
) -> crate::common::RegisterFieldBool<20, 1, 0, Dpusr0R_SPEC, crate::common::R> {
crate::common::RegisterFieldBool::<20, 1, 0, Dpusr0R_SPEC, crate::common::R>::from_register(
self, 0,
)
}
#[inline(always)]
pub fn dovcb0(
self,
) -> crate::common::RegisterFieldBool<21, 1, 0, Dpusr0R_SPEC, crate::common::R> {
crate::common::RegisterFieldBool::<21, 1, 0, Dpusr0R_SPEC, crate::common::R>::from_register(
self, 0,
)
}
#[inline(always)]
pub fn dvbsts0(
self,
) -> crate::common::RegisterFieldBool<23, 1, 0, Dpusr0R_SPEC, crate::common::R> {
crate::common::RegisterFieldBool::<23, 1, 0, Dpusr0R_SPEC, crate::common::R>::from_register(
self, 0,
)
}
}
impl ::core::default::Default for Dpusr0R {
#[inline(always)]
fn default() -> Dpusr0R {
<crate::RegValueT<Dpusr0R_SPEC> as RegisterValue<_>>::new(0)
}
}
pub mod dpusr0r {
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Srpc0_SPEC;
pub type Srpc0 = crate::EnumBitfieldStruct<u8, Srpc0_SPEC>;
impl Srpc0 {
pub const _0: Self = Self::new(0);
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Rpue0_SPEC;
pub type Rpue0 = crate::EnumBitfieldStruct<u8, Rpue0_SPEC>;
impl Rpue0 {
pub const _0: Self = Self::new(0);
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Drpd0_SPEC;
pub type Drpd0 = crate::EnumBitfieldStruct<u8, Drpd0_SPEC>;
impl Drpd0 {
pub const _0: Self = Self::new(0);
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Fixphy0_SPEC;
pub type Fixphy0 = crate::EnumBitfieldStruct<u8, Fixphy0_SPEC>;
impl Fixphy0 {
pub const _0: Self = Self::new(0);
pub const _1: Self = Self::new(1);
}
}
#[doc(hidden)]
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct Dpusr1R_SPEC;
impl crate::sealed::RegSpec for Dpusr1R_SPEC {
type DataType = u32;
}
pub type Dpusr1R = crate::RegValueT<Dpusr1R_SPEC>;
impl Dpusr1R {
#[inline(always)]
pub fn dpinte0(
self,
) -> crate::common::RegisterField<
0,
0x1,
1,
0,
dpusr1r::Dpinte0,
dpusr1r::Dpinte0,
Dpusr1R_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
0,
0x1,
1,
0,
dpusr1r::Dpinte0,
dpusr1r::Dpinte0,
Dpusr1R_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[inline(always)]
pub fn dminte0(
self,
) -> crate::common::RegisterField<
1,
0x1,
1,
0,
dpusr1r::Dminte0,
dpusr1r::Dminte0,
Dpusr1R_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
1,
0x1,
1,
0,
dpusr1r::Dminte0,
dpusr1r::Dminte0,
Dpusr1R_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[inline(always)]
pub fn dovrcrae0(
self,
) -> crate::common::RegisterField<
4,
0x1,
1,
0,
dpusr1r::Dovrcrae0,
dpusr1r::Dovrcrae0,
Dpusr1R_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
4,
0x1,
1,
0,
dpusr1r::Dovrcrae0,
dpusr1r::Dovrcrae0,
Dpusr1R_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[inline(always)]
pub fn dovrcrbe0(
self,
) -> crate::common::RegisterField<
5,
0x1,
1,
0,
dpusr1r::Dovrcrbe0,
dpusr1r::Dovrcrbe0,
Dpusr1R_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
5,
0x1,
1,
0,
dpusr1r::Dovrcrbe0,
dpusr1r::Dovrcrbe0,
Dpusr1R_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[inline(always)]
pub fn dvbse0(
self,
) -> crate::common::RegisterField<
7,
0x1,
1,
0,
dpusr1r::Dvbse0,
dpusr1r::Dvbse0,
Dpusr1R_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
7,
0x1,
1,
0,
dpusr1r::Dvbse0,
dpusr1r::Dvbse0,
Dpusr1R_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[inline(always)]
pub fn dpint0(
self,
) -> crate::common::RegisterField<
16,
0x1,
1,
0,
dpusr1r::Dpint0,
dpusr1r::Dpint0,
Dpusr1R_SPEC,
crate::common::R,
> {
crate::common::RegisterField::<
16,
0x1,
1,
0,
dpusr1r::Dpint0,
dpusr1r::Dpint0,
Dpusr1R_SPEC,
crate::common::R,
>::from_register(self, 0)
}
#[inline(always)]
pub fn dmint0(
self,
) -> crate::common::RegisterField<
17,
0x1,
1,
0,
dpusr1r::Dmint0,
dpusr1r::Dmint0,
Dpusr1R_SPEC,
crate::common::R,
> {
crate::common::RegisterField::<
17,
0x1,
1,
0,
dpusr1r::Dmint0,
dpusr1r::Dmint0,
Dpusr1R_SPEC,
crate::common::R,
>::from_register(self, 0)
}
#[inline(always)]
pub fn dovrcra0(
self,
) -> crate::common::RegisterField<
20,
0x1,
1,
0,
dpusr1r::Dovrcra0,
dpusr1r::Dovrcra0,
Dpusr1R_SPEC,
crate::common::R,
> {
crate::common::RegisterField::<
20,
0x1,
1,
0,
dpusr1r::Dovrcra0,
dpusr1r::Dovrcra0,
Dpusr1R_SPEC,
crate::common::R,
>::from_register(self, 0)
}
#[inline(always)]
pub fn dovrcrb0(
self,
) -> crate::common::RegisterField<
21,
0x1,
1,
0,
dpusr1r::Dovrcrb0,
dpusr1r::Dovrcrb0,
Dpusr1R_SPEC,
crate::common::R,
> {
crate::common::RegisterField::<
21,
0x1,
1,
0,
dpusr1r::Dovrcrb0,
dpusr1r::Dovrcrb0,
Dpusr1R_SPEC,
crate::common::R,
>::from_register(self, 0)
}
#[inline(always)]
pub fn dvbint0(
self,
) -> crate::common::RegisterField<
23,
0x1,
1,
0,
dpusr1r::Dvbint0,
dpusr1r::Dvbint0,
Dpusr1R_SPEC,
crate::common::R,
> {
crate::common::RegisterField::<
23,
0x1,
1,
0,
dpusr1r::Dvbint0,
dpusr1r::Dvbint0,
Dpusr1R_SPEC,
crate::common::R,
>::from_register(self, 0)
}
}
impl ::core::default::Default for Dpusr1R {
#[inline(always)]
fn default() -> Dpusr1R {
<crate::RegValueT<Dpusr1R_SPEC> as RegisterValue<_>>::new(0)
}
}
pub mod dpusr1r {
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Dpinte0_SPEC;
pub type Dpinte0 = crate::EnumBitfieldStruct<u8, Dpinte0_SPEC>;
impl Dpinte0 {
pub const _0: Self = Self::new(0);
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Dminte0_SPEC;
pub type Dminte0 = crate::EnumBitfieldStruct<u8, Dminte0_SPEC>;
impl Dminte0 {
pub const _0: Self = Self::new(0);
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Dovrcrae0_SPEC;
pub type Dovrcrae0 = crate::EnumBitfieldStruct<u8, Dovrcrae0_SPEC>;
impl Dovrcrae0 {
pub const _0: Self = Self::new(0);
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Dovrcrbe0_SPEC;
pub type Dovrcrbe0 = crate::EnumBitfieldStruct<u8, Dovrcrbe0_SPEC>;
impl Dovrcrbe0 {
pub const _0: Self = Self::new(0);
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Dvbse0_SPEC;
pub type Dvbse0 = crate::EnumBitfieldStruct<u8, Dvbse0_SPEC>;
impl Dvbse0 {
pub const _0: Self = Self::new(0);
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Dpint0_SPEC;
pub type Dpint0 = crate::EnumBitfieldStruct<u8, Dpint0_SPEC>;
impl Dpint0 {
pub const _0: Self = Self::new(0);
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Dmint0_SPEC;
pub type Dmint0 = crate::EnumBitfieldStruct<u8, Dmint0_SPEC>;
impl Dmint0 {
pub const _0: Self = Self::new(0);
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Dovrcra0_SPEC;
pub type Dovrcra0 = crate::EnumBitfieldStruct<u8, Dovrcra0_SPEC>;
impl Dovrcra0 {
pub const _0: Self = Self::new(0);
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Dovrcrb0_SPEC;
pub type Dovrcrb0 = crate::EnumBitfieldStruct<u8, Dovrcrb0_SPEC>;
impl Dovrcrb0 {
pub const _0: Self = Self::new(0);
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Dvbint0_SPEC;
pub type Dvbint0 = crate::EnumBitfieldStruct<u8, Dvbint0_SPEC>;
impl Dvbint0 {
pub const _0: Self = Self::new(0);
pub const _1: Self = Self::new(1);
}
}