#![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"16-bit A/D Converter NS"]
unsafe impl ::core::marker::Send for super::AdcBNs {}
unsafe impl ::core::marker::Sync for super::AdcBNs {}
impl super::AdcBNs {
#[allow(unused)]
#[inline(always)]
pub(crate) const fn _svd2pac_as_ptr(&self) -> *mut u8 {
self.ptr
}
#[doc = "A/D Conversion Clock Enable Register"]
#[inline(always)]
pub const fn adclkenr(
&self,
) -> &'static crate::common::Reg<self::Adclkenr_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Adclkenr_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(0usize),
)
}
}
#[doc = "A/D Conversion Clock Status Register"]
#[inline(always)]
pub const fn adclksr(
&self,
) -> &'static crate::common::Reg<self::Adclksr_SPEC, crate::common::R> {
unsafe {
crate::common::Reg::<self::Adclksr_SPEC, crate::common::R>::from_ptr(
self._svd2pac_as_ptr().add(4usize),
)
}
}
#[doc = "A/D Conversion Clock Control Register"]
#[inline(always)]
pub const fn adclkcr(
&self,
) -> &'static crate::common::Reg<self::Adclkcr_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Adclkcr_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(8usize),
)
}
}
#[doc = "A/D Converter Synchronous Operation Control Register"]
#[inline(always)]
pub const fn adsycr(
&self,
) -> &'static crate::common::Reg<self::Adsycr_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Adsycr_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(12usize),
)
}
}
#[doc = "A/D Converter Unit Sleep Control Register 0"]
#[inline(always)]
pub const fn aduslpcr0(
&self,
) -> &'static crate::common::Reg<self::Aduslpcr0_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Aduslpcr0_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(16usize),
)
}
}
#[doc = "A/D Converter Unit Sleep Control Register 1"]
#[inline(always)]
pub const fn aduslpcr1(
&self,
) -> &'static crate::common::Reg<self::Aduslpcr1_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Aduslpcr1_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(20usize),
)
}
}
#[doc = "A/D Conversion Error Interrupt Enable Register"]
#[inline(always)]
pub const fn aderintcr(
&self,
) -> &'static crate::common::Reg<self::Aderintcr_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Aderintcr_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(32usize),
)
}
}
#[doc = "A/D Conversion Overflow Interrupt Enable Register"]
#[inline(always)]
pub const fn adovfintcr(
&self,
) -> &'static crate::common::Reg<self::Adovfintcr_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Adovfintcr_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(36usize),
)
}
}
#[doc = "Calibration Interrupt Enable Register"]
#[inline(always)]
pub const fn adcalintcr(
&self,
) -> &'static crate::common::Reg<self::Adcalintcr_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Adcalintcr_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(40usize),
)
}
}
#[doc = "A/D Converter Mode Selection Register"]
#[inline(always)]
pub const fn admdr(&self) -> &'static crate::common::Reg<self::Admdr_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Admdr_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(64usize),
)
}
}
#[doc = "A/D Group Scan Priority Control Register"]
#[inline(always)]
pub const fn adgspcr(
&self,
) -> &'static crate::common::Reg<self::Adgspcr_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Adgspcr_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(68usize),
)
}
}
#[doc = "Scan Group Enable Register"]
#[inline(always)]
pub const fn adsger(
&self,
) -> &'static crate::common::Reg<self::Adsger_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Adsger_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(72usize),
)
}
}
#[doc = "Scan Group Control Register 0"]
#[inline(always)]
pub const fn adsgcr0(
&self,
) -> &'static crate::common::Reg<self::Adsgcr0_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Adsgcr0_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(76usize),
)
}
}
#[doc = "Scan Group Control Register 1"]
#[inline(always)]
pub const fn adsgcr1(
&self,
) -> &'static crate::common::Reg<self::Adsgcr1_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Adsgcr1_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(80usize),
)
}
}
#[doc = "Scan Group Control Register 2"]
#[inline(always)]
pub const fn adsgcr2(
&self,
) -> &'static crate::common::Reg<self::Adsgcr2_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Adsgcr2_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(84usize),
)
}
}
#[doc = "Scan End Interrupt Enable Register"]
#[inline(always)]
pub const fn adintcr(
&self,
) -> &'static crate::common::Reg<self::Adintcr_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Adintcr_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(92usize),
)
}
}
#[doc = "A/D conversion times per scan Register 0"]
#[inline(always)]
pub const fn adswnr0(
&self,
) -> &'static crate::common::Reg<self::Adswnr0_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Adswnr0_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(96usize),
)
}
}
#[doc = "A/D conversion times per scan Register 1"]
#[inline(always)]
pub const fn adswnr1(
&self,
) -> &'static crate::common::Reg<self::Adswnr1_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Adswnr1_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(100usize),
)
}
}
#[doc = "One-channel Continuous Scan Mode Decimation Control Register"]
#[inline(always)]
pub const fn addeccr(
&self,
) -> &'static crate::common::Reg<self::Addeccr_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Addeccr_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(128usize),
)
}
}
#[doc = "A/D Converter Accuracy Mode Register"]
#[inline(always)]
pub const fn adacmdr(
&self,
) -> &'static crate::common::Reg<self::Adacmdr_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Adacmdr_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(132usize),
)
}
}
#[doc = "External Trigger Enable Register %s"]
#[inline(always)]
pub const fn adtrgext(
&self,
) -> &'static crate::common::ClusterRegisterArray<
crate::common::Reg<self::Adtrgext_SPEC, crate::common::RW>,
9,
0x10,
> {
unsafe {
crate::common::ClusterRegisterArray::from_ptr(self._svd2pac_as_ptr().add(0xc0usize))
}
}
#[inline(always)]
pub const fn adtrgext0(
&self,
) -> &'static crate::common::Reg<self::Adtrgext_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Adtrgext_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(0xc0usize),
)
}
}
#[inline(always)]
pub const fn adtrgext1(
&self,
) -> &'static crate::common::Reg<self::Adtrgext_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Adtrgext_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(0xd0usize),
)
}
}
#[inline(always)]
pub const fn adtrgext2(
&self,
) -> &'static crate::common::Reg<self::Adtrgext_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Adtrgext_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(0xe0usize),
)
}
}
#[inline(always)]
pub const fn adtrgext3(
&self,
) -> &'static crate::common::Reg<self::Adtrgext_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Adtrgext_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(0xf0usize),
)
}
}
#[inline(always)]
pub const fn adtrgext4(
&self,
) -> &'static crate::common::Reg<self::Adtrgext_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Adtrgext_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(0x100usize),
)
}
}
#[inline(always)]
pub const fn adtrgext5(
&self,
) -> &'static crate::common::Reg<self::Adtrgext_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Adtrgext_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(0x110usize),
)
}
}
#[inline(always)]
pub const fn adtrgext6(
&self,
) -> &'static crate::common::Reg<self::Adtrgext_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Adtrgext_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(0x120usize),
)
}
}
#[inline(always)]
pub const fn adtrgext7(
&self,
) -> &'static crate::common::Reg<self::Adtrgext_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Adtrgext_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(0x130usize),
)
}
}
#[inline(always)]
pub const fn adtrgext8(
&self,
) -> &'static crate::common::Reg<self::Adtrgext_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Adtrgext_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(0x140usize),
)
}
}
#[doc = "ELC Trigger Enable Register %s"]
#[inline(always)]
pub const fn adtrgelc(
&self,
) -> &'static crate::common::ClusterRegisterArray<
crate::common::Reg<self::Adtrgelc_SPEC, crate::common::RW>,
9,
0x10,
> {
unsafe {
crate::common::ClusterRegisterArray::from_ptr(self._svd2pac_as_ptr().add(0xc4usize))
}
}
#[inline(always)]
pub const fn adtrgelc0(
&self,
) -> &'static crate::common::Reg<self::Adtrgelc_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Adtrgelc_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(0xc4usize),
)
}
}
#[inline(always)]
pub const fn adtrgelc1(
&self,
) -> &'static crate::common::Reg<self::Adtrgelc_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Adtrgelc_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(0xd4usize),
)
}
}
#[inline(always)]
pub const fn adtrgelc2(
&self,
) -> &'static crate::common::Reg<self::Adtrgelc_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Adtrgelc_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(0xe4usize),
)
}
}
#[inline(always)]
pub const fn adtrgelc3(
&self,
) -> &'static crate::common::Reg<self::Adtrgelc_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Adtrgelc_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(0xf4usize),
)
}
}
#[inline(always)]
pub const fn adtrgelc4(
&self,
) -> &'static crate::common::Reg<self::Adtrgelc_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Adtrgelc_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(0x104usize),
)
}
}
#[inline(always)]
pub const fn adtrgelc5(
&self,
) -> &'static crate::common::Reg<self::Adtrgelc_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Adtrgelc_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(0x114usize),
)
}
}
#[inline(always)]
pub const fn adtrgelc6(
&self,
) -> &'static crate::common::Reg<self::Adtrgelc_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Adtrgelc_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(0x124usize),
)
}
}
#[inline(always)]
pub const fn adtrgelc7(
&self,
) -> &'static crate::common::Reg<self::Adtrgelc_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Adtrgelc_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(0x134usize),
)
}
}
#[inline(always)]
pub const fn adtrgelc8(
&self,
) -> &'static crate::common::Reg<self::Adtrgelc_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Adtrgelc_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(0x144usize),
)
}
}
#[doc = "GPT Trigger Enable Register %s"]
#[inline(always)]
pub const fn adtrggpt(
&self,
) -> &'static crate::common::ClusterRegisterArray<
crate::common::Reg<self::Adtrggpt_SPEC, crate::common::RW>,
9,
0x10,
> {
unsafe {
crate::common::ClusterRegisterArray::from_ptr(self._svd2pac_as_ptr().add(0xc8usize))
}
}
#[inline(always)]
pub const fn adtrggpt0(
&self,
) -> &'static crate::common::Reg<self::Adtrggpt_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Adtrggpt_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(0xc8usize),
)
}
}
#[inline(always)]
pub const fn adtrggpt1(
&self,
) -> &'static crate::common::Reg<self::Adtrggpt_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Adtrggpt_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(0xd8usize),
)
}
}
#[inline(always)]
pub const fn adtrggpt2(
&self,
) -> &'static crate::common::Reg<self::Adtrggpt_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Adtrggpt_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(0xe8usize),
)
}
}
#[inline(always)]
pub const fn adtrggpt3(
&self,
) -> &'static crate::common::Reg<self::Adtrggpt_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Adtrggpt_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(0xf8usize),
)
}
}
#[inline(always)]
pub const fn adtrggpt4(
&self,
) -> &'static crate::common::Reg<self::Adtrggpt_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Adtrggpt_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(0x108usize),
)
}
}
#[inline(always)]
pub const fn adtrggpt5(
&self,
) -> &'static crate::common::Reg<self::Adtrggpt_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Adtrggpt_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(0x118usize),
)
}
}
#[inline(always)]
pub const fn adtrggpt6(
&self,
) -> &'static crate::common::Reg<self::Adtrggpt_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Adtrggpt_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(0x128usize),
)
}
}
#[inline(always)]
pub const fn adtrggpt7(
&self,
) -> &'static crate::common::Reg<self::Adtrggpt_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Adtrggpt_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(0x138usize),
)
}
}
#[inline(always)]
pub const fn adtrggpt8(
&self,
) -> &'static crate::common::Reg<self::Adtrggpt_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Adtrggpt_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(0x148usize),
)
}
}
#[doc = "A/D Conversion Start Trigger Delay Register 0"]
#[inline(always)]
pub const fn adtrgdlr0(
&self,
) -> &'static crate::common::Reg<self::Adtrgdlr0_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Adtrgdlr0_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(448usize),
)
}
}
#[doc = "A/D Conversion Start Trigger Delay Register 1"]
#[inline(always)]
pub const fn adtrgdlr1(
&self,
) -> &'static crate::common::Reg<self::Adtrgdlr1_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Adtrgdlr1_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(452usize),
)
}
}
#[doc = "A/D Conversion Start Trigger Delay Register 2"]
#[inline(always)]
pub const fn adtrgdlr2(
&self,
) -> &'static crate::common::Reg<self::Adtrgdlr2_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Adtrgdlr2_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(456usize),
)
}
}
#[doc = "A/D Conversion Start Trigger Delay Register 3"]
#[inline(always)]
pub const fn adtrgdlr3(
&self,
) -> &'static crate::common::Reg<self::Adtrgdlr3_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Adtrgdlr3_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(460usize),
)
}
}
#[doc = "A/D Conversion Start Trigger Delay Register 4"]
#[inline(always)]
pub const fn adtrgdlr4(
&self,
) -> &'static crate::common::Reg<self::Adtrgdlr4_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Adtrgdlr4_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(464usize),
)
}
}
#[doc = "Scan Group Diagnosis Function Control Register %s"]
#[inline(always)]
pub const fn adsgdcr(
&self,
) -> &'static crate::common::ClusterRegisterArray<
crate::common::Reg<self::Adsgdcr_SPEC, crate::common::RW>,
9,
0x4,
> {
unsafe {
crate::common::ClusterRegisterArray::from_ptr(self._svd2pac_as_ptr().add(0x200usize))
}
}
#[inline(always)]
pub const fn adsgdcr0(
&self,
) -> &'static crate::common::Reg<self::Adsgdcr_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Adsgdcr_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(0x200usize),
)
}
}
#[inline(always)]
pub const fn adsgdcr1(
&self,
) -> &'static crate::common::Reg<self::Adsgdcr_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Adsgdcr_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(0x204usize),
)
}
}
#[inline(always)]
pub const fn adsgdcr2(
&self,
) -> &'static crate::common::Reg<self::Adsgdcr_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Adsgdcr_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(0x208usize),
)
}
}
#[inline(always)]
pub const fn adsgdcr3(
&self,
) -> &'static crate::common::Reg<self::Adsgdcr_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Adsgdcr_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(0x20cusize),
)
}
}
#[inline(always)]
pub const fn adsgdcr4(
&self,
) -> &'static crate::common::Reg<self::Adsgdcr_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Adsgdcr_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(0x210usize),
)
}
}
#[inline(always)]
pub const fn adsgdcr5(
&self,
) -> &'static crate::common::Reg<self::Adsgdcr_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Adsgdcr_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(0x214usize),
)
}
}
#[inline(always)]
pub const fn adsgdcr6(
&self,
) -> &'static crate::common::Reg<self::Adsgdcr_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Adsgdcr_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(0x218usize),
)
}
}
#[inline(always)]
pub const fn adsgdcr7(
&self,
) -> &'static crate::common::Reg<self::Adsgdcr_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Adsgdcr_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(0x21cusize),
)
}
}
#[inline(always)]
pub const fn adsgdcr8(
&self,
) -> &'static crate::common::Reg<self::Adsgdcr_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Adsgdcr_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(0x220usize),
)
}
}
#[doc = "Sampling State Table Register 0"]
#[inline(always)]
pub const fn adsstr0(
&self,
) -> &'static crate::common::Reg<self::Adsstr0_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Adsstr0_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(576usize),
)
}
}
#[doc = "Sampling State Table Register 1"]
#[inline(always)]
pub const fn adsstr1(
&self,
) -> &'static crate::common::Reg<self::Adsstr1_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Adsstr1_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(580usize),
)
}
}
#[doc = "Sampling State Table Register 2"]
#[inline(always)]
pub const fn adsstr2(
&self,
) -> &'static crate::common::Reg<self::Adsstr2_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Adsstr2_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(584usize),
)
}
}
#[doc = "Sampling State Table Register 3"]
#[inline(always)]
pub const fn adsstr3(
&self,
) -> &'static crate::common::Reg<self::Adsstr3_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Adsstr3_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(588usize),
)
}
}
#[doc = "Sampling State Table Register 4"]
#[inline(always)]
pub const fn adsstr4(
&self,
) -> &'static crate::common::Reg<self::Adsstr4_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Adsstr4_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(592usize),
)
}
}
#[doc = "Sampling State Table Register 5"]
#[inline(always)]
pub const fn adsstr5(
&self,
) -> &'static crate::common::Reg<self::Adsstr5_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Adsstr5_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(596usize),
)
}
}
#[doc = "Sampling State Table Register 6"]
#[inline(always)]
pub const fn adsstr6(
&self,
) -> &'static crate::common::Reg<self::Adsstr6_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Adsstr6_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(600usize),
)
}
}
#[doc = "Sampling State Table Register 7"]
#[inline(always)]
pub const fn adsstr7(
&self,
) -> &'static crate::common::Reg<self::Adsstr7_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Adsstr7_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(604usize),
)
}
}
#[doc = "A/D Conversion State Register"]
#[inline(always)]
pub const fn adcnvstr(
&self,
) -> &'static crate::common::Reg<self::Adcnvstr_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Adcnvstr_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(608usize),
)
}
}
#[doc = "A/D Converter Self-calibration State Register"]
#[inline(always)]
pub const fn adcalstcr(
&self,
) -> &'static crate::common::Reg<self::Adcalstcr_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Adcalstcr_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(612usize),
)
}
}
#[doc = "Channel-dedicated Sample-and-hold Circuit Control Register 0"]
#[inline(always)]
pub const fn adshcr0(
&self,
) -> &'static crate::common::Reg<self::Adshcr0_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Adshcr0_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(640usize),
)
}
}
#[doc = "Channel-dedicated Sample-and-hold Circuit Diagnosis Control Register 0"]
#[inline(always)]
pub const fn adshdcr0(
&self,
) -> &'static crate::common::Reg<self::Adshdcr0_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Adshdcr0_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(644usize),
)
}
}
#[doc = "Channel-dedicated Sample-and-hold Circuit State Register 0"]
#[inline(always)]
pub const fn adshstr0(
&self,
) -> &'static crate::common::Reg<self::Adshstr0_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Adshstr0_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(648usize),
)
}
}
#[doc = "Channel-dedicated Sample-and-hold Circuit Control Register 1"]
#[inline(always)]
pub const fn adshcr1(
&self,
) -> &'static crate::common::Reg<self::Adshcr1_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Adshcr1_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(652usize),
)
}
}
#[doc = "Channel-dedicated Sample-and-hold Circuit Diagnosis Control Register 1"]
#[inline(always)]
pub const fn adshdcr1(
&self,
) -> &'static crate::common::Reg<self::Adshdcr1_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Adshdcr1_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(656usize),
)
}
}
#[doc = "Channel-dedicated Sample-and-hold Circuit State Register 1"]
#[inline(always)]
pub const fn adshstr1(
&self,
) -> &'static crate::common::Reg<self::Adshstr1_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Adshstr1_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(660usize),
)
}
}
#[doc = "Channel-dedicated Sample-and-hold Circuit Self-calibration State Register"]
#[inline(always)]
pub const fn adcalshcr(
&self,
) -> &'static crate::common::Reg<self::Adcalshcr_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Adcalshcr_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(688usize),
)
}
}
#[doc = "Channel-dedicated Sample-and-hold Circuit Single-ended Input Mode Bypass Control Register"]
#[inline(always)]
pub const fn adshsbpcr(
&self,
) -> &'static crate::common::Reg<self::Adshsbpcr_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Adshsbpcr_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(784usize),
)
}
}
#[doc = "Channel-dedicated Sample-and-hold Circuit Differential Input Mode Bypass Control Register"]
#[inline(always)]
pub const fn adshdbpcr(
&self,
) -> &'static crate::common::Reg<self::Adshdbpcr_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Adshdbpcr_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(788usize),
)
}
}
#[doc = "Channel-dedicated Sample-and-hold Circuit Self-diagnosis Control Register 0"]
#[inline(always)]
pub const fn adshsdcr0(
&self,
) -> &'static crate::common::Reg<self::Adshsdcr0_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Adshsdcr0_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(792usize),
)
}
}
#[doc = "Channel-dedicated Sample-and-hold Circuit Self-diagnosis Control Register 1"]
#[inline(always)]
pub const fn adshsdcr1(
&self,
) -> &'static crate::common::Reg<self::Adshsdcr1_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Adshsdcr1_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(796usize),
)
}
}
#[doc = "Internal Reference Voltage Monitor Enable Register"]
#[inline(always)]
pub const fn adrefcr(
&self,
) -> &'static crate::common::Reg<self::Adrefcr_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Adrefcr_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(800usize),
)
}
}
#[doc = "A/D Converter Digital Filter Selection Register %s"]
#[inline(always)]
pub const fn addfsr(
&self,
) -> &'static crate::common::ClusterRegisterArray<
crate::common::Reg<self::Addfsr_SPEC, crate::common::RW>,
2,
0x4,
> {
unsafe {
crate::common::ClusterRegisterArray::from_ptr(self._svd2pac_as_ptr().add(0x340usize))
}
}
#[inline(always)]
pub const fn addfsr0(
&self,
) -> &'static crate::common::Reg<self::Addfsr_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Addfsr_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(0x340usize),
)
}
}
#[inline(always)]
pub const fn addfsr1(
&self,
) -> &'static crate::common::Reg<self::Addfsr_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Addfsr_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(0x344usize),
)
}
}
#[doc = "User Offset Table Register %s"]
#[inline(always)]
pub const fn aduoftr(
&self,
) -> &'static crate::common::ClusterRegisterArray<
crate::common::Reg<self::Aduoftr_SPEC, crate::common::RW>,
8,
0x4,
> {
unsafe {
crate::common::ClusterRegisterArray::from_ptr(self._svd2pac_as_ptr().add(0x360usize))
}
}
#[inline(always)]
pub const fn aduoftr0(
&self,
) -> &'static crate::common::Reg<self::Aduoftr_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Aduoftr_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(0x360usize),
)
}
}
#[inline(always)]
pub const fn aduoftr1(
&self,
) -> &'static crate::common::Reg<self::Aduoftr_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Aduoftr_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(0x364usize),
)
}
}
#[inline(always)]
pub const fn aduoftr2(
&self,
) -> &'static crate::common::Reg<self::Aduoftr_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Aduoftr_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(0x368usize),
)
}
}
#[inline(always)]
pub const fn aduoftr3(
&self,
) -> &'static crate::common::Reg<self::Aduoftr_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Aduoftr_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(0x36cusize),
)
}
}
#[inline(always)]
pub const fn aduoftr4(
&self,
) -> &'static crate::common::Reg<self::Aduoftr_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Aduoftr_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(0x370usize),
)
}
}
#[inline(always)]
pub const fn aduoftr5(
&self,
) -> &'static crate::common::Reg<self::Aduoftr_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Aduoftr_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(0x374usize),
)
}
}
#[inline(always)]
pub const fn aduoftr6(
&self,
) -> &'static crate::common::Reg<self::Aduoftr_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Aduoftr_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(0x378usize),
)
}
}
#[inline(always)]
pub const fn aduoftr7(
&self,
) -> &'static crate::common::Reg<self::Aduoftr_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Aduoftr_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(0x37cusize),
)
}
}
#[doc = "User Gain Table Register %s"]
#[inline(always)]
pub const fn adugtr(
&self,
) -> &'static crate::common::ClusterRegisterArray<
crate::common::Reg<self::Adugtr_SPEC, crate::common::RW>,
8,
0x4,
> {
unsafe {
crate::common::ClusterRegisterArray::from_ptr(self._svd2pac_as_ptr().add(0x380usize))
}
}
#[inline(always)]
pub const fn adugtr0(
&self,
) -> &'static crate::common::Reg<self::Adugtr_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Adugtr_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(0x380usize),
)
}
}
#[inline(always)]
pub const fn adugtr1(
&self,
) -> &'static crate::common::Reg<self::Adugtr_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Adugtr_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(0x384usize),
)
}
}
#[inline(always)]
pub const fn adugtr2(
&self,
) -> &'static crate::common::Reg<self::Adugtr_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Adugtr_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(0x388usize),
)
}
}
#[inline(always)]
pub const fn adugtr3(
&self,
) -> &'static crate::common::Reg<self::Adugtr_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Adugtr_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(0x38cusize),
)
}
}
#[inline(always)]
pub const fn adugtr4(
&self,
) -> &'static crate::common::Reg<self::Adugtr_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Adugtr_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(0x390usize),
)
}
}
#[inline(always)]
pub const fn adugtr5(
&self,
) -> &'static crate::common::Reg<self::Adugtr_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Adugtr_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(0x394usize),
)
}
}
#[inline(always)]
pub const fn adugtr6(
&self,
) -> &'static crate::common::Reg<self::Adugtr_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Adugtr_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(0x398usize),
)
}
}
#[inline(always)]
pub const fn adugtr7(
&self,
) -> &'static crate::common::Reg<self::Adugtr_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Adugtr_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(0x39cusize),
)
}
}
#[doc = "Limiter Clip Interrupt Enable Register"]
#[inline(always)]
pub const fn adlimintcr(
&self,
) -> &'static crate::common::Reg<self::Adlimintcr_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Adlimintcr_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(928usize),
)
}
}
#[doc = "Limiter Clip Table Register %s"]
#[inline(always)]
pub const fn adlimtr(
&self,
) -> &'static crate::common::ClusterRegisterArray<
crate::common::Reg<self::Adlimtr_SPEC, crate::common::RW>,
8,
0x4,
> {
unsafe {
crate::common::ClusterRegisterArray::from_ptr(self._svd2pac_as_ptr().add(0x3a4usize))
}
}
#[inline(always)]
pub const fn adlimtr0(
&self,
) -> &'static crate::common::Reg<self::Adlimtr_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Adlimtr_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(0x3a4usize),
)
}
}
#[inline(always)]
pub const fn adlimtr1(
&self,
) -> &'static crate::common::Reg<self::Adlimtr_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Adlimtr_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(0x3a8usize),
)
}
}
#[inline(always)]
pub const fn adlimtr2(
&self,
) -> &'static crate::common::Reg<self::Adlimtr_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Adlimtr_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(0x3acusize),
)
}
}
#[inline(always)]
pub const fn adlimtr3(
&self,
) -> &'static crate::common::Reg<self::Adlimtr_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Adlimtr_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(0x3b0usize),
)
}
}
#[inline(always)]
pub const fn adlimtr4(
&self,
) -> &'static crate::common::Reg<self::Adlimtr_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Adlimtr_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(0x3b4usize),
)
}
}
#[inline(always)]
pub const fn adlimtr5(
&self,
) -> &'static crate::common::Reg<self::Adlimtr_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Adlimtr_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(0x3b8usize),
)
}
}
#[inline(always)]
pub const fn adlimtr6(
&self,
) -> &'static crate::common::Reg<self::Adlimtr_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Adlimtr_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(0x3bcusize),
)
}
}
#[inline(always)]
pub const fn adlimtr7(
&self,
) -> &'static crate::common::Reg<self::Adlimtr_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Adlimtr_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(0x3c0usize),
)
}
}
#[doc = "Compare Match Enable Register"]
#[inline(always)]
pub const fn adcmpenr(
&self,
) -> &'static crate::common::Reg<self::Adcmpenr_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Adcmpenr_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(1024usize),
)
}
}
#[doc = "Compare Match Interrupt Enable Register"]
#[inline(always)]
pub const fn adcmpintcr(
&self,
) -> &'static crate::common::Reg<self::Adcmpintcr_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Adcmpintcr_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(1028usize),
)
}
}
#[doc = "Composite Compare Match Configuration Register %s"]
#[inline(always)]
pub const fn adccmpcr(
&self,
) -> &'static crate::common::ClusterRegisterArray<
crate::common::Reg<self::Adccmpcr_SPEC, crate::common::RW>,
2,
0x4,
> {
unsafe {
crate::common::ClusterRegisterArray::from_ptr(self._svd2pac_as_ptr().add(0x408usize))
}
}
#[inline(always)]
pub const fn adccmpcr0(
&self,
) -> &'static crate::common::Reg<self::Adccmpcr_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Adccmpcr_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(0x408usize),
)
}
}
#[inline(always)]
pub const fn adccmpcr1(
&self,
) -> &'static crate::common::Reg<self::Adccmpcr_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Adccmpcr_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(0x40cusize),
)
}
}
#[doc = "Compare Match Mode Selection Register 0"]
#[inline(always)]
pub const fn adcmpmdr0(
&self,
) -> &'static crate::common::Reg<self::Adcmpmdr0_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Adcmpmdr0_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(1096usize),
)
}
}
#[doc = "Compare Match Mode Selection Register 1"]
#[inline(always)]
pub const fn adcmpmdr1(
&self,
) -> &'static crate::common::Reg<self::Adcmpmdr1_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Adcmpmdr1_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(1100usize),
)
}
}
#[doc = "Compare Match Table Register %s"]
#[inline(always)]
pub const fn adcmptbr(
&self,
) -> &'static crate::common::ClusterRegisterArray<
crate::common::Reg<self::Adcmptbr_SPEC, crate::common::RW>,
8,
0x4,
> {
unsafe {
crate::common::ClusterRegisterArray::from_ptr(self._svd2pac_as_ptr().add(0x458usize))
}
}
#[inline(always)]
pub const fn adcmptbr0(
&self,
) -> &'static crate::common::Reg<self::Adcmptbr_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Adcmptbr_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(0x458usize),
)
}
}
#[inline(always)]
pub const fn adcmptbr1(
&self,
) -> &'static crate::common::Reg<self::Adcmptbr_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Adcmptbr_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(0x45cusize),
)
}
}
#[inline(always)]
pub const fn adcmptbr2(
&self,
) -> &'static crate::common::Reg<self::Adcmptbr_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Adcmptbr_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(0x460usize),
)
}
}
#[inline(always)]
pub const fn adcmptbr3(
&self,
) -> &'static crate::common::Reg<self::Adcmptbr_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Adcmptbr_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(0x464usize),
)
}
}
#[inline(always)]
pub const fn adcmptbr4(
&self,
) -> &'static crate::common::Reg<self::Adcmptbr_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Adcmptbr_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(0x468usize),
)
}
}
#[inline(always)]
pub const fn adcmptbr5(
&self,
) -> &'static crate::common::Reg<self::Adcmptbr_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Adcmptbr_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(0x46cusize),
)
}
}
#[inline(always)]
pub const fn adcmptbr6(
&self,
) -> &'static crate::common::Reg<self::Adcmptbr_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Adcmptbr_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(0x470usize),
)
}
}
#[inline(always)]
pub const fn adcmptbr7(
&self,
) -> &'static crate::common::Reg<self::Adcmptbr_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Adcmptbr_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(0x474usize),
)
}
}
#[doc = "FIFO Interrupt Control Register"]
#[inline(always)]
pub const fn adfifointcr(
&self,
) -> &'static crate::common::Reg<self::Adfifointcr_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Adfifointcr_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(1220usize),
)
}
}
#[doc = "FIFO Interrupt Generation Level Register 0"]
#[inline(always)]
pub const fn adfifointlr0(
&self,
) -> &'static crate::common::Reg<self::Adfifointlr0_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Adfifointlr0_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(1224usize),
)
}
}
#[doc = "FIFO Interrupt Generation Level Register 1"]
#[inline(always)]
pub const fn adfifointlr1(
&self,
) -> &'static crate::common::Reg<self::Adfifointlr1_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Adfifointlr1_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(1228usize),
)
}
}
#[doc = "FIFO Interrupt Generation Level Register 2"]
#[inline(always)]
pub const fn adfifointlr2(
&self,
) -> &'static crate::common::Reg<self::Adfifointlr2_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Adfifointlr2_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(1232usize),
)
}
}
#[doc = "FIFO Interrupt Generation Level Register 3"]
#[inline(always)]
pub const fn adfifointlr3(
&self,
) -> &'static crate::common::Reg<self::Adfifointlr3_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Adfifointlr3_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(1236usize),
)
}
}
#[doc = "FIFO Interrupt Generation Level Register 4"]
#[inline(always)]
pub const fn adfifointlr4(
&self,
) -> &'static crate::common::Reg<self::Adfifointlr4_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Adfifointlr4_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(1240usize),
)
}
}
#[doc = "A/D Conversion Channel Configuration Register %s"]
#[inline(always)]
pub const fn adchcr(
&self,
) -> &'static crate::common::ClusterRegisterArray<
crate::common::Reg<self::Adchcr_SPEC, crate::common::RW>,
33,
0x10,
> {
unsafe {
crate::common::ClusterRegisterArray::from_ptr(self._svd2pac_as_ptr().add(0x600usize))
}
}
#[inline(always)]
pub const fn adchcr0(
&self,
) -> &'static crate::common::Reg<self::Adchcr_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Adchcr_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(0x600usize),
)
}
}
#[inline(always)]
pub const fn adchcr1(
&self,
) -> &'static crate::common::Reg<self::Adchcr_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Adchcr_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(0x610usize),
)
}
}
#[inline(always)]
pub const fn adchcr2(
&self,
) -> &'static crate::common::Reg<self::Adchcr_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Adchcr_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(0x620usize),
)
}
}
#[inline(always)]
pub const fn adchcr3(
&self,
) -> &'static crate::common::Reg<self::Adchcr_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Adchcr_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(0x630usize),
)
}
}
#[inline(always)]
pub const fn adchcr4(
&self,
) -> &'static crate::common::Reg<self::Adchcr_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Adchcr_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(0x640usize),
)
}
}
#[inline(always)]
pub const fn adchcr5(
&self,
) -> &'static crate::common::Reg<self::Adchcr_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Adchcr_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(0x650usize),
)
}
}
#[inline(always)]
pub const fn adchcr6(
&self,
) -> &'static crate::common::Reg<self::Adchcr_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Adchcr_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(0x660usize),
)
}
}
#[inline(always)]
pub const fn adchcr7(
&self,
) -> &'static crate::common::Reg<self::Adchcr_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Adchcr_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(0x670usize),
)
}
}
#[inline(always)]
pub const fn adchcr8(
&self,
) -> &'static crate::common::Reg<self::Adchcr_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Adchcr_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(0x680usize),
)
}
}
#[inline(always)]
pub const fn adchcr9(
&self,
) -> &'static crate::common::Reg<self::Adchcr_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Adchcr_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(0x690usize),
)
}
}
#[inline(always)]
pub const fn adchcr10(
&self,
) -> &'static crate::common::Reg<self::Adchcr_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Adchcr_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(0x6a0usize),
)
}
}
#[inline(always)]
pub const fn adchcr11(
&self,
) -> &'static crate::common::Reg<self::Adchcr_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Adchcr_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(0x6b0usize),
)
}
}
#[inline(always)]
pub const fn adchcr12(
&self,
) -> &'static crate::common::Reg<self::Adchcr_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Adchcr_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(0x6c0usize),
)
}
}
#[inline(always)]
pub const fn adchcr13(
&self,
) -> &'static crate::common::Reg<self::Adchcr_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Adchcr_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(0x6d0usize),
)
}
}
#[inline(always)]
pub const fn adchcr14(
&self,
) -> &'static crate::common::Reg<self::Adchcr_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Adchcr_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(0x6e0usize),
)
}
}
#[inline(always)]
pub const fn adchcr15(
&self,
) -> &'static crate::common::Reg<self::Adchcr_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Adchcr_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(0x6f0usize),
)
}
}
#[inline(always)]
pub const fn adchcr16(
&self,
) -> &'static crate::common::Reg<self::Adchcr_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Adchcr_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(0x700usize),
)
}
}
#[inline(always)]
pub const fn adchcr17(
&self,
) -> &'static crate::common::Reg<self::Adchcr_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Adchcr_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(0x710usize),
)
}
}
#[inline(always)]
pub const fn adchcr18(
&self,
) -> &'static crate::common::Reg<self::Adchcr_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Adchcr_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(0x720usize),
)
}
}
#[inline(always)]
pub const fn adchcr19(
&self,
) -> &'static crate::common::Reg<self::Adchcr_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Adchcr_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(0x730usize),
)
}
}
#[inline(always)]
pub const fn adchcr20(
&self,
) -> &'static crate::common::Reg<self::Adchcr_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Adchcr_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(0x740usize),
)
}
}
#[inline(always)]
pub const fn adchcr21(
&self,
) -> &'static crate::common::Reg<self::Adchcr_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Adchcr_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(0x750usize),
)
}
}
#[inline(always)]
pub const fn adchcr22(
&self,
) -> &'static crate::common::Reg<self::Adchcr_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Adchcr_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(0x760usize),
)
}
}
#[inline(always)]
pub const fn adchcr23(
&self,
) -> &'static crate::common::Reg<self::Adchcr_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Adchcr_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(0x770usize),
)
}
}
#[inline(always)]
pub const fn adchcr24(
&self,
) -> &'static crate::common::Reg<self::Adchcr_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Adchcr_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(0x780usize),
)
}
}
#[inline(always)]
pub const fn adchcr25(
&self,
) -> &'static crate::common::Reg<self::Adchcr_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Adchcr_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(0x790usize),
)
}
}
#[inline(always)]
pub const fn adchcr26(
&self,
) -> &'static crate::common::Reg<self::Adchcr_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Adchcr_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(0x7a0usize),
)
}
}
#[inline(always)]
pub const fn adchcr27(
&self,
) -> &'static crate::common::Reg<self::Adchcr_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Adchcr_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(0x7b0usize),
)
}
}
#[inline(always)]
pub const fn adchcr28(
&self,
) -> &'static crate::common::Reg<self::Adchcr_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Adchcr_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(0x7c0usize),
)
}
}
#[inline(always)]
pub const fn adchcr29(
&self,
) -> &'static crate::common::Reg<self::Adchcr_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Adchcr_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(0x7d0usize),
)
}
}
#[inline(always)]
pub const fn adchcr30(
&self,
) -> &'static crate::common::Reg<self::Adchcr_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Adchcr_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(0x7e0usize),
)
}
}
#[inline(always)]
pub const fn adchcr31(
&self,
) -> &'static crate::common::Reg<self::Adchcr_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Adchcr_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(0x7f0usize),
)
}
}
#[inline(always)]
pub const fn adchcr32(
&self,
) -> &'static crate::common::Reg<self::Adchcr_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Adchcr_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(0x800usize),
)
}
}
#[doc = "A/D Conversion Data Operation Control A Register %s"]
#[inline(always)]
pub const fn addopcra(
&self,
) -> &'static crate::common::ClusterRegisterArray<
crate::common::Reg<self::Addopcra_SPEC, crate::common::RW>,
33,
0x10,
> {
unsafe {
crate::common::ClusterRegisterArray::from_ptr(self._svd2pac_as_ptr().add(0x604usize))
}
}
#[inline(always)]
pub const fn addopcra0(
&self,
) -> &'static crate::common::Reg<self::Addopcra_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Addopcra_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(0x604usize),
)
}
}
#[inline(always)]
pub const fn addopcra1(
&self,
) -> &'static crate::common::Reg<self::Addopcra_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Addopcra_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(0x614usize),
)
}
}
#[inline(always)]
pub const fn addopcra2(
&self,
) -> &'static crate::common::Reg<self::Addopcra_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Addopcra_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(0x624usize),
)
}
}
#[inline(always)]
pub const fn addopcra3(
&self,
) -> &'static crate::common::Reg<self::Addopcra_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Addopcra_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(0x634usize),
)
}
}
#[inline(always)]
pub const fn addopcra4(
&self,
) -> &'static crate::common::Reg<self::Addopcra_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Addopcra_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(0x644usize),
)
}
}
#[inline(always)]
pub const fn addopcra5(
&self,
) -> &'static crate::common::Reg<self::Addopcra_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Addopcra_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(0x654usize),
)
}
}
#[inline(always)]
pub const fn addopcra6(
&self,
) -> &'static crate::common::Reg<self::Addopcra_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Addopcra_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(0x664usize),
)
}
}
#[inline(always)]
pub const fn addopcra7(
&self,
) -> &'static crate::common::Reg<self::Addopcra_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Addopcra_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(0x674usize),
)
}
}
#[inline(always)]
pub const fn addopcra8(
&self,
) -> &'static crate::common::Reg<self::Addopcra_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Addopcra_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(0x684usize),
)
}
}
#[inline(always)]
pub const fn addopcra9(
&self,
) -> &'static crate::common::Reg<self::Addopcra_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Addopcra_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(0x694usize),
)
}
}
#[inline(always)]
pub const fn addopcra10(
&self,
) -> &'static crate::common::Reg<self::Addopcra_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Addopcra_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(0x6a4usize),
)
}
}
#[inline(always)]
pub const fn addopcra11(
&self,
) -> &'static crate::common::Reg<self::Addopcra_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Addopcra_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(0x6b4usize),
)
}
}
#[inline(always)]
pub const fn addopcra12(
&self,
) -> &'static crate::common::Reg<self::Addopcra_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Addopcra_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(0x6c4usize),
)
}
}
#[inline(always)]
pub const fn addopcra13(
&self,
) -> &'static crate::common::Reg<self::Addopcra_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Addopcra_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(0x6d4usize),
)
}
}
#[inline(always)]
pub const fn addopcra14(
&self,
) -> &'static crate::common::Reg<self::Addopcra_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Addopcra_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(0x6e4usize),
)
}
}
#[inline(always)]
pub const fn addopcra15(
&self,
) -> &'static crate::common::Reg<self::Addopcra_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Addopcra_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(0x6f4usize),
)
}
}
#[inline(always)]
pub const fn addopcra16(
&self,
) -> &'static crate::common::Reg<self::Addopcra_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Addopcra_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(0x704usize),
)
}
}
#[inline(always)]
pub const fn addopcra17(
&self,
) -> &'static crate::common::Reg<self::Addopcra_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Addopcra_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(0x714usize),
)
}
}
#[inline(always)]
pub const fn addopcra18(
&self,
) -> &'static crate::common::Reg<self::Addopcra_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Addopcra_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(0x724usize),
)
}
}
#[inline(always)]
pub const fn addopcra19(
&self,
) -> &'static crate::common::Reg<self::Addopcra_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Addopcra_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(0x734usize),
)
}
}
#[inline(always)]
pub const fn addopcra20(
&self,
) -> &'static crate::common::Reg<self::Addopcra_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Addopcra_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(0x744usize),
)
}
}
#[inline(always)]
pub const fn addopcra21(
&self,
) -> &'static crate::common::Reg<self::Addopcra_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Addopcra_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(0x754usize),
)
}
}
#[inline(always)]
pub const fn addopcra22(
&self,
) -> &'static crate::common::Reg<self::Addopcra_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Addopcra_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(0x764usize),
)
}
}
#[inline(always)]
pub const fn addopcra23(
&self,
) -> &'static crate::common::Reg<self::Addopcra_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Addopcra_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(0x774usize),
)
}
}
#[inline(always)]
pub const fn addopcra24(
&self,
) -> &'static crate::common::Reg<self::Addopcra_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Addopcra_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(0x784usize),
)
}
}
#[inline(always)]
pub const fn addopcra25(
&self,
) -> &'static crate::common::Reg<self::Addopcra_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Addopcra_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(0x794usize),
)
}
}
#[inline(always)]
pub const fn addopcra26(
&self,
) -> &'static crate::common::Reg<self::Addopcra_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Addopcra_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(0x7a4usize),
)
}
}
#[inline(always)]
pub const fn addopcra27(
&self,
) -> &'static crate::common::Reg<self::Addopcra_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Addopcra_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(0x7b4usize),
)
}
}
#[inline(always)]
pub const fn addopcra28(
&self,
) -> &'static crate::common::Reg<self::Addopcra_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Addopcra_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(0x7c4usize),
)
}
}
#[inline(always)]
pub const fn addopcra29(
&self,
) -> &'static crate::common::Reg<self::Addopcra_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Addopcra_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(0x7d4usize),
)
}
}
#[inline(always)]
pub const fn addopcra30(
&self,
) -> &'static crate::common::Reg<self::Addopcra_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Addopcra_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(0x7e4usize),
)
}
}
#[inline(always)]
pub const fn addopcra31(
&self,
) -> &'static crate::common::Reg<self::Addopcra_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Addopcra_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(0x7f4usize),
)
}
}
#[inline(always)]
pub const fn addopcra32(
&self,
) -> &'static crate::common::Reg<self::Addopcra_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Addopcra_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(0x804usize),
)
}
}
#[doc = "A/D Conversion Data Operation Control B Register %s"]
#[inline(always)]
pub const fn addopcrb(
&self,
) -> &'static crate::common::ClusterRegisterArray<
crate::common::Reg<self::Addopcrb_SPEC, crate::common::RW>,
33,
0x10,
> {
unsafe {
crate::common::ClusterRegisterArray::from_ptr(self._svd2pac_as_ptr().add(0x608usize))
}
}
#[inline(always)]
pub const fn addopcrb0(
&self,
) -> &'static crate::common::Reg<self::Addopcrb_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Addopcrb_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(0x608usize),
)
}
}
#[inline(always)]
pub const fn addopcrb1(
&self,
) -> &'static crate::common::Reg<self::Addopcrb_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Addopcrb_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(0x618usize),
)
}
}
#[inline(always)]
pub const fn addopcrb2(
&self,
) -> &'static crate::common::Reg<self::Addopcrb_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Addopcrb_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(0x628usize),
)
}
}
#[inline(always)]
pub const fn addopcrb3(
&self,
) -> &'static crate::common::Reg<self::Addopcrb_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Addopcrb_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(0x638usize),
)
}
}
#[inline(always)]
pub const fn addopcrb4(
&self,
) -> &'static crate::common::Reg<self::Addopcrb_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Addopcrb_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(0x648usize),
)
}
}
#[inline(always)]
pub const fn addopcrb5(
&self,
) -> &'static crate::common::Reg<self::Addopcrb_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Addopcrb_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(0x658usize),
)
}
}
#[inline(always)]
pub const fn addopcrb6(
&self,
) -> &'static crate::common::Reg<self::Addopcrb_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Addopcrb_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(0x668usize),
)
}
}
#[inline(always)]
pub const fn addopcrb7(
&self,
) -> &'static crate::common::Reg<self::Addopcrb_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Addopcrb_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(0x678usize),
)
}
}
#[inline(always)]
pub const fn addopcrb8(
&self,
) -> &'static crate::common::Reg<self::Addopcrb_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Addopcrb_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(0x688usize),
)
}
}
#[inline(always)]
pub const fn addopcrb9(
&self,
) -> &'static crate::common::Reg<self::Addopcrb_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Addopcrb_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(0x698usize),
)
}
}
#[inline(always)]
pub const fn addopcrb10(
&self,
) -> &'static crate::common::Reg<self::Addopcrb_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Addopcrb_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(0x6a8usize),
)
}
}
#[inline(always)]
pub const fn addopcrb11(
&self,
) -> &'static crate::common::Reg<self::Addopcrb_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Addopcrb_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(0x6b8usize),
)
}
}
#[inline(always)]
pub const fn addopcrb12(
&self,
) -> &'static crate::common::Reg<self::Addopcrb_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Addopcrb_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(0x6c8usize),
)
}
}
#[inline(always)]
pub const fn addopcrb13(
&self,
) -> &'static crate::common::Reg<self::Addopcrb_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Addopcrb_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(0x6d8usize),
)
}
}
#[inline(always)]
pub const fn addopcrb14(
&self,
) -> &'static crate::common::Reg<self::Addopcrb_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Addopcrb_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(0x6e8usize),
)
}
}
#[inline(always)]
pub const fn addopcrb15(
&self,
) -> &'static crate::common::Reg<self::Addopcrb_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Addopcrb_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(0x6f8usize),
)
}
}
#[inline(always)]
pub const fn addopcrb16(
&self,
) -> &'static crate::common::Reg<self::Addopcrb_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Addopcrb_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(0x708usize),
)
}
}
#[inline(always)]
pub const fn addopcrb17(
&self,
) -> &'static crate::common::Reg<self::Addopcrb_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Addopcrb_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(0x718usize),
)
}
}
#[inline(always)]
pub const fn addopcrb18(
&self,
) -> &'static crate::common::Reg<self::Addopcrb_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Addopcrb_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(0x728usize),
)
}
}
#[inline(always)]
pub const fn addopcrb19(
&self,
) -> &'static crate::common::Reg<self::Addopcrb_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Addopcrb_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(0x738usize),
)
}
}
#[inline(always)]
pub const fn addopcrb20(
&self,
) -> &'static crate::common::Reg<self::Addopcrb_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Addopcrb_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(0x748usize),
)
}
}
#[inline(always)]
pub const fn addopcrb21(
&self,
) -> &'static crate::common::Reg<self::Addopcrb_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Addopcrb_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(0x758usize),
)
}
}
#[inline(always)]
pub const fn addopcrb22(
&self,
) -> &'static crate::common::Reg<self::Addopcrb_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Addopcrb_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(0x768usize),
)
}
}
#[inline(always)]
pub const fn addopcrb23(
&self,
) -> &'static crate::common::Reg<self::Addopcrb_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Addopcrb_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(0x778usize),
)
}
}
#[inline(always)]
pub const fn addopcrb24(
&self,
) -> &'static crate::common::Reg<self::Addopcrb_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Addopcrb_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(0x788usize),
)
}
}
#[inline(always)]
pub const fn addopcrb25(
&self,
) -> &'static crate::common::Reg<self::Addopcrb_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Addopcrb_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(0x798usize),
)
}
}
#[inline(always)]
pub const fn addopcrb26(
&self,
) -> &'static crate::common::Reg<self::Addopcrb_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Addopcrb_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(0x7a8usize),
)
}
}
#[inline(always)]
pub const fn addopcrb27(
&self,
) -> &'static crate::common::Reg<self::Addopcrb_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Addopcrb_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(0x7b8usize),
)
}
}
#[inline(always)]
pub const fn addopcrb28(
&self,
) -> &'static crate::common::Reg<self::Addopcrb_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Addopcrb_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(0x7c8usize),
)
}
}
#[inline(always)]
pub const fn addopcrb29(
&self,
) -> &'static crate::common::Reg<self::Addopcrb_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Addopcrb_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(0x7d8usize),
)
}
}
#[inline(always)]
pub const fn addopcrb30(
&self,
) -> &'static crate::common::Reg<self::Addopcrb_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Addopcrb_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(0x7e8usize),
)
}
}
#[inline(always)]
pub const fn addopcrb31(
&self,
) -> &'static crate::common::Reg<self::Addopcrb_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Addopcrb_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(0x7f8usize),
)
}
}
#[inline(always)]
pub const fn addopcrb32(
&self,
) -> &'static crate::common::Reg<self::Addopcrb_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Addopcrb_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(0x808usize),
)
}
}
#[doc = "A/D Conversion Data Operation Control C Register %s"]
#[inline(always)]
pub const fn addopcrc(
&self,
) -> &'static crate::common::ClusterRegisterArray<
crate::common::Reg<self::Addopcrc_SPEC, crate::common::RW>,
33,
0x10,
> {
unsafe {
crate::common::ClusterRegisterArray::from_ptr(self._svd2pac_as_ptr().add(0x60cusize))
}
}
#[inline(always)]
pub const fn addopcrc0(
&self,
) -> &'static crate::common::Reg<self::Addopcrc_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Addopcrc_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(0x60cusize),
)
}
}
#[inline(always)]
pub const fn addopcrc1(
&self,
) -> &'static crate::common::Reg<self::Addopcrc_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Addopcrc_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(0x61cusize),
)
}
}
#[inline(always)]
pub const fn addopcrc2(
&self,
) -> &'static crate::common::Reg<self::Addopcrc_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Addopcrc_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(0x62cusize),
)
}
}
#[inline(always)]
pub const fn addopcrc3(
&self,
) -> &'static crate::common::Reg<self::Addopcrc_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Addopcrc_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(0x63cusize),
)
}
}
#[inline(always)]
pub const fn addopcrc4(
&self,
) -> &'static crate::common::Reg<self::Addopcrc_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Addopcrc_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(0x64cusize),
)
}
}
#[inline(always)]
pub const fn addopcrc5(
&self,
) -> &'static crate::common::Reg<self::Addopcrc_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Addopcrc_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(0x65cusize),
)
}
}
#[inline(always)]
pub const fn addopcrc6(
&self,
) -> &'static crate::common::Reg<self::Addopcrc_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Addopcrc_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(0x66cusize),
)
}
}
#[inline(always)]
pub const fn addopcrc7(
&self,
) -> &'static crate::common::Reg<self::Addopcrc_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Addopcrc_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(0x67cusize),
)
}
}
#[inline(always)]
pub const fn addopcrc8(
&self,
) -> &'static crate::common::Reg<self::Addopcrc_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Addopcrc_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(0x68cusize),
)
}
}
#[inline(always)]
pub const fn addopcrc9(
&self,
) -> &'static crate::common::Reg<self::Addopcrc_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Addopcrc_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(0x69cusize),
)
}
}
#[inline(always)]
pub const fn addopcrc10(
&self,
) -> &'static crate::common::Reg<self::Addopcrc_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Addopcrc_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(0x6acusize),
)
}
}
#[inline(always)]
pub const fn addopcrc11(
&self,
) -> &'static crate::common::Reg<self::Addopcrc_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Addopcrc_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(0x6bcusize),
)
}
}
#[inline(always)]
pub const fn addopcrc12(
&self,
) -> &'static crate::common::Reg<self::Addopcrc_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Addopcrc_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(0x6ccusize),
)
}
}
#[inline(always)]
pub const fn addopcrc13(
&self,
) -> &'static crate::common::Reg<self::Addopcrc_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Addopcrc_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(0x6dcusize),
)
}
}
#[inline(always)]
pub const fn addopcrc14(
&self,
) -> &'static crate::common::Reg<self::Addopcrc_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Addopcrc_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(0x6ecusize),
)
}
}
#[inline(always)]
pub const fn addopcrc15(
&self,
) -> &'static crate::common::Reg<self::Addopcrc_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Addopcrc_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(0x6fcusize),
)
}
}
#[inline(always)]
pub const fn addopcrc16(
&self,
) -> &'static crate::common::Reg<self::Addopcrc_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Addopcrc_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(0x70cusize),
)
}
}
#[inline(always)]
pub const fn addopcrc17(
&self,
) -> &'static crate::common::Reg<self::Addopcrc_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Addopcrc_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(0x71cusize),
)
}
}
#[inline(always)]
pub const fn addopcrc18(
&self,
) -> &'static crate::common::Reg<self::Addopcrc_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Addopcrc_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(0x72cusize),
)
}
}
#[inline(always)]
pub const fn addopcrc19(
&self,
) -> &'static crate::common::Reg<self::Addopcrc_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Addopcrc_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(0x73cusize),
)
}
}
#[inline(always)]
pub const fn addopcrc20(
&self,
) -> &'static crate::common::Reg<self::Addopcrc_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Addopcrc_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(0x74cusize),
)
}
}
#[inline(always)]
pub const fn addopcrc21(
&self,
) -> &'static crate::common::Reg<self::Addopcrc_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Addopcrc_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(0x75cusize),
)
}
}
#[inline(always)]
pub const fn addopcrc22(
&self,
) -> &'static crate::common::Reg<self::Addopcrc_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Addopcrc_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(0x76cusize),
)
}
}
#[inline(always)]
pub const fn addopcrc23(
&self,
) -> &'static crate::common::Reg<self::Addopcrc_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Addopcrc_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(0x77cusize),
)
}
}
#[inline(always)]
pub const fn addopcrc24(
&self,
) -> &'static crate::common::Reg<self::Addopcrc_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Addopcrc_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(0x78cusize),
)
}
}
#[inline(always)]
pub const fn addopcrc25(
&self,
) -> &'static crate::common::Reg<self::Addopcrc_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Addopcrc_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(0x79cusize),
)
}
}
#[inline(always)]
pub const fn addopcrc26(
&self,
) -> &'static crate::common::Reg<self::Addopcrc_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Addopcrc_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(0x7acusize),
)
}
}
#[inline(always)]
pub const fn addopcrc27(
&self,
) -> &'static crate::common::Reg<self::Addopcrc_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Addopcrc_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(0x7bcusize),
)
}
}
#[inline(always)]
pub const fn addopcrc28(
&self,
) -> &'static crate::common::Reg<self::Addopcrc_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Addopcrc_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(0x7ccusize),
)
}
}
#[inline(always)]
pub const fn addopcrc29(
&self,
) -> &'static crate::common::Reg<self::Addopcrc_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Addopcrc_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(0x7dcusize),
)
}
}
#[inline(always)]
pub const fn addopcrc30(
&self,
) -> &'static crate::common::Reg<self::Addopcrc_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Addopcrc_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(0x7ecusize),
)
}
}
#[inline(always)]
pub const fn addopcrc31(
&self,
) -> &'static crate::common::Reg<self::Addopcrc_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Addopcrc_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(0x7fcusize),
)
}
}
#[inline(always)]
pub const fn addopcrc32(
&self,
) -> &'static crate::common::Reg<self::Addopcrc_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Addopcrc_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(0x80cusize),
)
}
}
#[doc = "A/D Converter Self-calibration Start Register"]
#[inline(always)]
pub const fn adcalstr(
&self,
) -> &'static crate::common::Reg<self::Adcalstr_SPEC, crate::common::W> {
unsafe {
crate::common::Reg::<self::Adcalstr_SPEC, crate::common::W>::from_ptr(
self._svd2pac_as_ptr().add(3072usize),
)
}
}
#[doc = "Channel-Dedicated Sample & Hold Circuit Constant Sampling Control Register"]
#[inline(always)]
pub const fn adshcscr(
&self,
) -> &'static crate::common::Reg<self::Adshcscr_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Adshcscr_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(3076usize),
)
}
}
#[doc = "A/D Conversion Start Trigger Enable Register"]
#[inline(always)]
pub const fn adtrgenr(
&self,
) -> &'static crate::common::Reg<self::Adtrgenr_SPEC, crate::common::RW> {
unsafe {
crate::common::Reg::<self::Adtrgenr_SPEC, crate::common::RW>::from_ptr(
self._svd2pac_as_ptr().add(3080usize),
)
}
}
#[doc = "A/D Conversion Synchronous Software Start Register"]
#[inline(always)]
pub const fn adsystr(
&self,
) -> &'static crate::common::Reg<self::Adsystr_SPEC, crate::common::W> {
unsafe {
crate::common::Reg::<self::Adsystr_SPEC, crate::common::W>::from_ptr(
self._svd2pac_as_ptr().add(3088usize),
)
}
}
#[doc = "A/D Conversion Software Start Register %s"]
#[inline(always)]
pub const fn adstr(
&self,
) -> &'static crate::common::ClusterRegisterArray<
crate::common::Reg<self::Adstr_SPEC, crate::common::W>,
9,
0x4,
> {
unsafe {
crate::common::ClusterRegisterArray::from_ptr(self._svd2pac_as_ptr().add(0xc20usize))
}
}
#[inline(always)]
pub const fn adstr0(&self) -> &'static crate::common::Reg<self::Adstr_SPEC, crate::common::W> {
unsafe {
crate::common::Reg::<self::Adstr_SPEC, crate::common::W>::from_ptr(
self._svd2pac_as_ptr().add(0xc20usize),
)
}
}
#[inline(always)]
pub const fn adstr1(&self) -> &'static crate::common::Reg<self::Adstr_SPEC, crate::common::W> {
unsafe {
crate::common::Reg::<self::Adstr_SPEC, crate::common::W>::from_ptr(
self._svd2pac_as_ptr().add(0xc24usize),
)
}
}
#[inline(always)]
pub const fn adstr2(&self) -> &'static crate::common::Reg<self::Adstr_SPEC, crate::common::W> {
unsafe {
crate::common::Reg::<self::Adstr_SPEC, crate::common::W>::from_ptr(
self._svd2pac_as_ptr().add(0xc28usize),
)
}
}
#[inline(always)]
pub const fn adstr3(&self) -> &'static crate::common::Reg<self::Adstr_SPEC, crate::common::W> {
unsafe {
crate::common::Reg::<self::Adstr_SPEC, crate::common::W>::from_ptr(
self._svd2pac_as_ptr().add(0xc2cusize),
)
}
}
#[inline(always)]
pub const fn adstr4(&self) -> &'static crate::common::Reg<self::Adstr_SPEC, crate::common::W> {
unsafe {
crate::common::Reg::<self::Adstr_SPEC, crate::common::W>::from_ptr(
self._svd2pac_as_ptr().add(0xc30usize),
)
}
}
#[inline(always)]
pub const fn adstr5(&self) -> &'static crate::common::Reg<self::Adstr_SPEC, crate::common::W> {
unsafe {
crate::common::Reg::<self::Adstr_SPEC, crate::common::W>::from_ptr(
self._svd2pac_as_ptr().add(0xc34usize),
)
}
}
#[inline(always)]
pub const fn adstr6(&self) -> &'static crate::common::Reg<self::Adstr_SPEC, crate::common::W> {
unsafe {
crate::common::Reg::<self::Adstr_SPEC, crate::common::W>::from_ptr(
self._svd2pac_as_ptr().add(0xc38usize),
)
}
}
#[inline(always)]
pub const fn adstr7(&self) -> &'static crate::common::Reg<self::Adstr_SPEC, crate::common::W> {
unsafe {
crate::common::Reg::<self::Adstr_SPEC, crate::common::W>::from_ptr(
self._svd2pac_as_ptr().add(0xc3cusize),
)
}
}
#[inline(always)]
pub const fn adstr8(&self) -> &'static crate::common::Reg<self::Adstr_SPEC, crate::common::W> {
unsafe {
crate::common::Reg::<self::Adstr_SPEC, crate::common::W>::from_ptr(
self._svd2pac_as_ptr().add(0xc40usize),
)
}
}
#[doc = "A/D Conversion Stop Register"]
#[inline(always)]
pub const fn adstopr(
&self,
) -> &'static crate::common::Reg<self::Adstopr_SPEC, crate::common::W> {
unsafe {
crate::common::Reg::<self::Adstopr_SPEC, crate::common::W>::from_ptr(
self._svd2pac_as_ptr().add(3168usize),
)
}
}
#[doc = "A/D Conversion Status Register"]
#[inline(always)]
pub const fn adsr(&self) -> &'static crate::common::Reg<self::Adsr_SPEC, crate::common::R> {
unsafe {
crate::common::Reg::<self::Adsr_SPEC, crate::common::R>::from_ptr(
self._svd2pac_as_ptr().add(3200usize),
)
}
}
#[doc = "Scan Group Status Register"]
#[inline(always)]
pub const fn adgrsr(&self) -> &'static crate::common::Reg<self::Adgrsr_SPEC, crate::common::R> {
unsafe {
crate::common::Reg::<self::Adgrsr_SPEC, crate::common::R>::from_ptr(
self._svd2pac_as_ptr().add(3204usize),
)
}
}
#[doc = "A/D Conversion Error Status Register"]
#[inline(always)]
pub const fn adersr(&self) -> &'static crate::common::Reg<self::Adersr_SPEC, crate::common::R> {
unsafe {
crate::common::Reg::<self::Adersr_SPEC, crate::common::R>::from_ptr(
self._svd2pac_as_ptr().add(3208usize),
)
}
}
#[doc = "A/D Conversion Error Status Clear Register"]
#[inline(always)]
pub const fn aderscr(
&self,
) -> &'static crate::common::Reg<self::Aderscr_SPEC, crate::common::W> {
unsafe {
crate::common::Reg::<self::Aderscr_SPEC, crate::common::W>::from_ptr(
self._svd2pac_as_ptr().add(3212usize),
)
}
}
#[doc = "A/D Converter Self-calibration End Status Register"]
#[inline(always)]
pub const fn adcalendsr(
&self,
) -> &'static crate::common::Reg<self::Adcalendsr_SPEC, crate::common::R> {
unsafe {
crate::common::Reg::<self::Adcalendsr_SPEC, crate::common::R>::from_ptr(
self._svd2pac_as_ptr().add(3224usize),
)
}
}
#[doc = "A/D Converter Self-calibration End Status Clear Register"]
#[inline(always)]
pub const fn adcalendscr(
&self,
) -> &'static crate::common::Reg<self::Adcalendscr_SPEC, crate::common::W> {
unsafe {
crate::common::Reg::<self::Adcalendscr_SPEC, crate::common::W>::from_ptr(
self._svd2pac_as_ptr().add(3228usize),
)
}
}
#[doc = "A/D Conversion Overflow Error Status Register"]
#[inline(always)]
pub const fn adovfersr(
&self,
) -> &'static crate::common::Reg<self::Adovfersr_SPEC, crate::common::R> {
unsafe {
crate::common::Reg::<self::Adovfersr_SPEC, crate::common::R>::from_ptr(
self._svd2pac_as_ptr().add(3232usize),
)
}
}
#[doc = "A/D Conversion Overflow Channel Status Register 0"]
#[inline(always)]
pub const fn adovfchsr0(
&self,
) -> &'static crate::common::Reg<self::Adovfchsr0_SPEC, crate::common::R> {
unsafe {
crate::common::Reg::<self::Adovfchsr0_SPEC, crate::common::R>::from_ptr(
self._svd2pac_as_ptr().add(3236usize),
)
}
}
#[doc = "Extended Analog A/D Conversion Overflow Status Register"]
#[inline(always)]
pub const fn adovfexsr(
&self,
) -> &'static crate::common::Reg<self::Adovfexsr_SPEC, crate::common::R> {
unsafe {
crate::common::Reg::<self::Adovfexsr_SPEC, crate::common::R>::from_ptr(
self._svd2pac_as_ptr().add(3248usize),
)
}
}
#[doc = "A/D Conversion Overflow Error Status Clear Register"]
#[inline(always)]
pub const fn adovferscr(
&self,
) -> &'static crate::common::Reg<self::Adovferscr_SPEC, crate::common::W> {
unsafe {
crate::common::Reg::<self::Adovferscr_SPEC, crate::common::W>::from_ptr(
self._svd2pac_as_ptr().add(3252usize),
)
}
}
#[doc = "A/D Conversion Overflow Channel Status Clear Register 0"]
#[inline(always)]
pub const fn adovfchscr0(
&self,
) -> &'static crate::common::Reg<self::Adovfchscr0_SPEC, crate::common::W> {
unsafe {
crate::common::Reg::<self::Adovfchscr0_SPEC, crate::common::W>::from_ptr(
self._svd2pac_as_ptr().add(3256usize),
)
}
}
#[doc = "Extended Analog A/D Conversion Overflow Status Clear Register"]
#[inline(always)]
pub const fn adovfexscr(
&self,
) -> &'static crate::common::Reg<self::Adovfexscr_SPEC, crate::common::W> {
unsafe {
crate::common::Reg::<self::Adovfexscr_SPEC, crate::common::W>::from_ptr(
self._svd2pac_as_ptr().add(3268usize),
)
}
}
#[doc = "FIFO Status Register 0"]
#[inline(always)]
pub const fn adfifosr0(
&self,
) -> &'static crate::common::Reg<self::Adfifosr0_SPEC, crate::common::R> {
unsafe {
crate::common::Reg::<self::Adfifosr0_SPEC, crate::common::R>::from_ptr(
self._svd2pac_as_ptr().add(3280usize),
)
}
}
#[doc = "FIFO Status Register 1"]
#[inline(always)]
pub const fn adfifosr1(
&self,
) -> &'static crate::common::Reg<self::Adfifosr1_SPEC, crate::common::R> {
unsafe {
crate::common::Reg::<self::Adfifosr1_SPEC, crate::common::R>::from_ptr(
self._svd2pac_as_ptr().add(3284usize),
)
}
}
#[doc = "FIFO Status Register 2"]
#[inline(always)]
pub const fn adfifosr2(
&self,
) -> &'static crate::common::Reg<self::Adfifosr2_SPEC, crate::common::R> {
unsafe {
crate::common::Reg::<self::Adfifosr2_SPEC, crate::common::R>::from_ptr(
self._svd2pac_as_ptr().add(3288usize),
)
}
}
#[doc = "FIFO Status Register 3"]
#[inline(always)]
pub const fn adfifosr3(
&self,
) -> &'static crate::common::Reg<self::Adfifosr3_SPEC, crate::common::R> {
unsafe {
crate::common::Reg::<self::Adfifosr3_SPEC, crate::common::R>::from_ptr(
self._svd2pac_as_ptr().add(3292usize),
)
}
}
#[doc = "FIFO Status Register 4"]
#[inline(always)]
pub const fn adfifosr4(
&self,
) -> &'static crate::common::Reg<self::Adfifosr4_SPEC, crate::common::R> {
unsafe {
crate::common::Reg::<self::Adfifosr4_SPEC, crate::common::R>::from_ptr(
self._svd2pac_as_ptr().add(3296usize),
)
}
}
#[doc = "FIFO Data Clear Register"]
#[inline(always)]
pub const fn adfifodcr(
&self,
) -> &'static crate::common::Reg<self::Adfifodcr_SPEC, crate::common::W> {
unsafe {
crate::common::Reg::<self::Adfifodcr_SPEC, crate::common::W>::from_ptr(
self._svd2pac_as_ptr().add(3312usize),
)
}
}
#[doc = "FIFO Error Status Register"]
#[inline(always)]
pub const fn adfifoersr(
&self,
) -> &'static crate::common::Reg<self::Adfifoersr_SPEC, crate::common::R> {
unsafe {
crate::common::Reg::<self::Adfifoersr_SPEC, crate::common::R>::from_ptr(
self._svd2pac_as_ptr().add(3316usize),
)
}
}
#[doc = "FIFO Error Status Clear Register"]
#[inline(always)]
pub const fn adfifoerscr(
&self,
) -> &'static crate::common::Reg<self::Adfifoerscr_SPEC, crate::common::W> {
unsafe {
crate::common::Reg::<self::Adfifoerscr_SPEC, crate::common::W>::from_ptr(
self._svd2pac_as_ptr().add(3320usize),
)
}
}
#[doc = "Compare Match Table Status Register"]
#[inline(always)]
pub const fn adcmptbsr(
&self,
) -> &'static crate::common::Reg<self::Adcmptbsr_SPEC, crate::common::R> {
unsafe {
crate::common::Reg::<self::Adcmptbsr_SPEC, crate::common::R>::from_ptr(
self._svd2pac_as_ptr().add(3328usize),
)
}
}
#[doc = "Compare Match Table Status Clear Register"]
#[inline(always)]
pub const fn adcmptbscr(
&self,
) -> &'static crate::common::Reg<self::Adcmptbscr_SPEC, crate::common::W> {
unsafe {
crate::common::Reg::<self::Adcmptbscr_SPEC, crate::common::W>::from_ptr(
self._svd2pac_as_ptr().add(3332usize),
)
}
}
#[doc = "Compare Match Channel Status Register 0"]
#[inline(always)]
pub const fn adcmpchsr0(
&self,
) -> &'static crate::common::Reg<self::Adcmpchsr0_SPEC, crate::common::R> {
unsafe {
crate::common::Reg::<self::Adcmpchsr0_SPEC, crate::common::R>::from_ptr(
self._svd2pac_as_ptr().add(3336usize),
)
}
}
#[doc = "Extended Analog Compare Match Status Register"]
#[inline(always)]
pub const fn adcmpexsr(
&self,
) -> &'static crate::common::Reg<self::Adcmpexsr_SPEC, crate::common::R> {
unsafe {
crate::common::Reg::<self::Adcmpexsr_SPEC, crate::common::R>::from_ptr(
self._svd2pac_as_ptr().add(3348usize),
)
}
}
#[doc = "Compare Match Channel Status Clear Register 0"]
#[inline(always)]
pub const fn adcmpchscr0(
&self,
) -> &'static crate::common::Reg<self::Adcmpchscr0_SPEC, crate::common::W> {
unsafe {
crate::common::Reg::<self::Adcmpchscr0_SPEC, crate::common::W>::from_ptr(
self._svd2pac_as_ptr().add(3352usize),
)
}
}
#[doc = "Extended Analog Compare Match Status Clear Register"]
#[inline(always)]
pub const fn adcmpexscr(
&self,
) -> &'static crate::common::Reg<self::Adcmpexscr_SPEC, crate::common::W> {
unsafe {
crate::common::Reg::<self::Adcmpexscr_SPEC, crate::common::W>::from_ptr(
self._svd2pac_as_ptr().add(3364usize),
)
}
}
#[doc = "Limiter Clip Scan Group Status Register"]
#[inline(always)]
pub const fn adlimgrsr(
&self,
) -> &'static crate::common::Reg<self::Adlimgrsr_SPEC, crate::common::R> {
unsafe {
crate::common::Reg::<self::Adlimgrsr_SPEC, crate::common::R>::from_ptr(
self._svd2pac_as_ptr().add(3368usize),
)
}
}
#[doc = "Limiter Clip Channel Status Register 0"]
#[inline(always)]
pub const fn adlimchsr0(
&self,
) -> &'static crate::common::Reg<self::Adlimchsr0_SPEC, crate::common::R> {
unsafe {
crate::common::Reg::<self::Adlimchsr0_SPEC, crate::common::R>::from_ptr(
self._svd2pac_as_ptr().add(3372usize),
)
}
}
#[doc = "Extended Analog Limiter Clip Status Register"]
#[inline(always)]
pub const fn adlimexsr(
&self,
) -> &'static crate::common::Reg<self::Adlimexsr_SPEC, crate::common::R> {
unsafe {
crate::common::Reg::<self::Adlimexsr_SPEC, crate::common::R>::from_ptr(
self._svd2pac_as_ptr().add(3384usize),
)
}
}
#[doc = "Limiter Clip Scan Group Status Clear Register"]
#[inline(always)]
pub const fn adlimgrscr(
&self,
) -> &'static crate::common::Reg<self::Adlimgrscr_SPEC, crate::common::W> {
unsafe {
crate::common::Reg::<self::Adlimgrscr_SPEC, crate::common::W>::from_ptr(
self._svd2pac_as_ptr().add(3388usize),
)
}
}
#[doc = "Limiter Clip Channel Status Clear Register 0"]
#[inline(always)]
pub const fn adlimchscr0(
&self,
) -> &'static crate::common::Reg<self::Adlimchscr0_SPEC, crate::common::W> {
unsafe {
crate::common::Reg::<self::Adlimchscr0_SPEC, crate::common::W>::from_ptr(
self._svd2pac_as_ptr().add(3392usize),
)
}
}
#[doc = "Extended Analog Limiter Clip Status Clear Register"]
#[inline(always)]
pub const fn adlimexscr(
&self,
) -> &'static crate::common::Reg<self::Adlimexscr_SPEC, crate::common::W> {
unsafe {
crate::common::Reg::<self::Adlimexscr_SPEC, crate::common::W>::from_ptr(
self._svd2pac_as_ptr().add(3404usize),
)
}
}
#[doc = "Scan End Status Register"]
#[inline(always)]
pub const fn adscanendsr(
&self,
) -> &'static crate::common::Reg<self::Adscanendsr_SPEC, crate::common::R> {
unsafe {
crate::common::Reg::<self::Adscanendsr_SPEC, crate::common::R>::from_ptr(
self._svd2pac_as_ptr().add(3408usize),
)
}
}
#[doc = "Scan End Status Clear Register"]
#[inline(always)]
pub const fn adscanendscr(
&self,
) -> &'static crate::common::Reg<self::Adscanendscr_SPEC, crate::common::W> {
unsafe {
crate::common::Reg::<self::Adscanendscr_SPEC, crate::common::W>::from_ptr(
self._svd2pac_as_ptr().add(3412usize),
)
}
}
#[doc = "A/D Data Register %s"]
#[inline(always)]
pub const fn addr(
&self,
) -> &'static crate::common::ClusterRegisterArray<
crate::common::Reg<self::Addr_SPEC, crate::common::R>,
23,
0x4,
> {
unsafe {
crate::common::ClusterRegisterArray::from_ptr(self._svd2pac_as_ptr().add(0x2000usize))
}
}
#[inline(always)]
pub const fn addr0(&self) -> &'static crate::common::Reg<self::Addr_SPEC, crate::common::R> {
unsafe {
crate::common::Reg::<self::Addr_SPEC, crate::common::R>::from_ptr(
self._svd2pac_as_ptr().add(0x2000usize),
)
}
}
#[inline(always)]
pub const fn addr1(&self) -> &'static crate::common::Reg<self::Addr_SPEC, crate::common::R> {
unsafe {
crate::common::Reg::<self::Addr_SPEC, crate::common::R>::from_ptr(
self._svd2pac_as_ptr().add(0x2004usize),
)
}
}
#[inline(always)]
pub const fn addr2(&self) -> &'static crate::common::Reg<self::Addr_SPEC, crate::common::R> {
unsafe {
crate::common::Reg::<self::Addr_SPEC, crate::common::R>::from_ptr(
self._svd2pac_as_ptr().add(0x2008usize),
)
}
}
#[inline(always)]
pub const fn addr3(&self) -> &'static crate::common::Reg<self::Addr_SPEC, crate::common::R> {
unsafe {
crate::common::Reg::<self::Addr_SPEC, crate::common::R>::from_ptr(
self._svd2pac_as_ptr().add(0x200cusize),
)
}
}
#[inline(always)]
pub const fn addr4(&self) -> &'static crate::common::Reg<self::Addr_SPEC, crate::common::R> {
unsafe {
crate::common::Reg::<self::Addr_SPEC, crate::common::R>::from_ptr(
self._svd2pac_as_ptr().add(0x2010usize),
)
}
}
#[inline(always)]
pub const fn addr5(&self) -> &'static crate::common::Reg<self::Addr_SPEC, crate::common::R> {
unsafe {
crate::common::Reg::<self::Addr_SPEC, crate::common::R>::from_ptr(
self._svd2pac_as_ptr().add(0x2014usize),
)
}
}
#[inline(always)]
pub const fn addr6(&self) -> &'static crate::common::Reg<self::Addr_SPEC, crate::common::R> {
unsafe {
crate::common::Reg::<self::Addr_SPEC, crate::common::R>::from_ptr(
self._svd2pac_as_ptr().add(0x2018usize),
)
}
}
#[inline(always)]
pub const fn addr7(&self) -> &'static crate::common::Reg<self::Addr_SPEC, crate::common::R> {
unsafe {
crate::common::Reg::<self::Addr_SPEC, crate::common::R>::from_ptr(
self._svd2pac_as_ptr().add(0x201cusize),
)
}
}
#[inline(always)]
pub const fn addr8(&self) -> &'static crate::common::Reg<self::Addr_SPEC, crate::common::R> {
unsafe {
crate::common::Reg::<self::Addr_SPEC, crate::common::R>::from_ptr(
self._svd2pac_as_ptr().add(0x2020usize),
)
}
}
#[inline(always)]
pub const fn addr9(&self) -> &'static crate::common::Reg<self::Addr_SPEC, crate::common::R> {
unsafe {
crate::common::Reg::<self::Addr_SPEC, crate::common::R>::from_ptr(
self._svd2pac_as_ptr().add(0x2024usize),
)
}
}
#[inline(always)]
pub const fn addr10(&self) -> &'static crate::common::Reg<self::Addr_SPEC, crate::common::R> {
unsafe {
crate::common::Reg::<self::Addr_SPEC, crate::common::R>::from_ptr(
self._svd2pac_as_ptr().add(0x2028usize),
)
}
}
#[inline(always)]
pub const fn addr11(&self) -> &'static crate::common::Reg<self::Addr_SPEC, crate::common::R> {
unsafe {
crate::common::Reg::<self::Addr_SPEC, crate::common::R>::from_ptr(
self._svd2pac_as_ptr().add(0x202cusize),
)
}
}
#[inline(always)]
pub const fn addr12(&self) -> &'static crate::common::Reg<self::Addr_SPEC, crate::common::R> {
unsafe {
crate::common::Reg::<self::Addr_SPEC, crate::common::R>::from_ptr(
self._svd2pac_as_ptr().add(0x2030usize),
)
}
}
#[inline(always)]
pub const fn addr13(&self) -> &'static crate::common::Reg<self::Addr_SPEC, crate::common::R> {
unsafe {
crate::common::Reg::<self::Addr_SPEC, crate::common::R>::from_ptr(
self._svd2pac_as_ptr().add(0x2034usize),
)
}
}
#[inline(always)]
pub const fn addr14(&self) -> &'static crate::common::Reg<self::Addr_SPEC, crate::common::R> {
unsafe {
crate::common::Reg::<self::Addr_SPEC, crate::common::R>::from_ptr(
self._svd2pac_as_ptr().add(0x2038usize),
)
}
}
#[inline(always)]
pub const fn addr15(&self) -> &'static crate::common::Reg<self::Addr_SPEC, crate::common::R> {
unsafe {
crate::common::Reg::<self::Addr_SPEC, crate::common::R>::from_ptr(
self._svd2pac_as_ptr().add(0x203cusize),
)
}
}
#[inline(always)]
pub const fn addr16(&self) -> &'static crate::common::Reg<self::Addr_SPEC, crate::common::R> {
unsafe {
crate::common::Reg::<self::Addr_SPEC, crate::common::R>::from_ptr(
self._svd2pac_as_ptr().add(0x2040usize),
)
}
}
#[inline(always)]
pub const fn addr17(&self) -> &'static crate::common::Reg<self::Addr_SPEC, crate::common::R> {
unsafe {
crate::common::Reg::<self::Addr_SPEC, crate::common::R>::from_ptr(
self._svd2pac_as_ptr().add(0x2044usize),
)
}
}
#[inline(always)]
pub const fn addr18(&self) -> &'static crate::common::Reg<self::Addr_SPEC, crate::common::R> {
unsafe {
crate::common::Reg::<self::Addr_SPEC, crate::common::R>::from_ptr(
self._svd2pac_as_ptr().add(0x2048usize),
)
}
}
#[inline(always)]
pub const fn addr19(&self) -> &'static crate::common::Reg<self::Addr_SPEC, crate::common::R> {
unsafe {
crate::common::Reg::<self::Addr_SPEC, crate::common::R>::from_ptr(
self._svd2pac_as_ptr().add(0x204cusize),
)
}
}
#[inline(always)]
pub const fn addr20(&self) -> &'static crate::common::Reg<self::Addr_SPEC, crate::common::R> {
unsafe {
crate::common::Reg::<self::Addr_SPEC, crate::common::R>::from_ptr(
self._svd2pac_as_ptr().add(0x2050usize),
)
}
}
#[inline(always)]
pub const fn addr21(&self) -> &'static crate::common::Reg<self::Addr_SPEC, crate::common::R> {
unsafe {
crate::common::Reg::<self::Addr_SPEC, crate::common::R>::from_ptr(
self._svd2pac_as_ptr().add(0x2054usize),
)
}
}
#[inline(always)]
pub const fn addr22(&self) -> &'static crate::common::Reg<self::Addr_SPEC, crate::common::R> {
unsafe {
crate::common::Reg::<self::Addr_SPEC, crate::common::R>::from_ptr(
self._svd2pac_as_ptr().add(0x2058usize),
)
}
}
#[doc = "FIFO Data Register %s"]
#[inline(always)]
pub const fn adfifodr(
&self,
) -> &'static crate::common::ClusterRegisterArray<
crate::common::Reg<self::Adfifodr_SPEC, crate::common::R>,
9,
0x4,
> {
unsafe {
crate::common::ClusterRegisterArray::from_ptr(self._svd2pac_as_ptr().add(0x2200usize))
}
}
#[inline(always)]
pub const fn adfifodr0(
&self,
) -> &'static crate::common::Reg<self::Adfifodr_SPEC, crate::common::R> {
unsafe {
crate::common::Reg::<self::Adfifodr_SPEC, crate::common::R>::from_ptr(
self._svd2pac_as_ptr().add(0x2200usize),
)
}
}
#[inline(always)]
pub const fn adfifodr1(
&self,
) -> &'static crate::common::Reg<self::Adfifodr_SPEC, crate::common::R> {
unsafe {
crate::common::Reg::<self::Adfifodr_SPEC, crate::common::R>::from_ptr(
self._svd2pac_as_ptr().add(0x2204usize),
)
}
}
#[inline(always)]
pub const fn adfifodr2(
&self,
) -> &'static crate::common::Reg<self::Adfifodr_SPEC, crate::common::R> {
unsafe {
crate::common::Reg::<self::Adfifodr_SPEC, crate::common::R>::from_ptr(
self._svd2pac_as_ptr().add(0x2208usize),
)
}
}
#[inline(always)]
pub const fn adfifodr3(
&self,
) -> &'static crate::common::Reg<self::Adfifodr_SPEC, crate::common::R> {
unsafe {
crate::common::Reg::<self::Adfifodr_SPEC, crate::common::R>::from_ptr(
self._svd2pac_as_ptr().add(0x220cusize),
)
}
}
#[inline(always)]
pub const fn adfifodr4(
&self,
) -> &'static crate::common::Reg<self::Adfifodr_SPEC, crate::common::R> {
unsafe {
crate::common::Reg::<self::Adfifodr_SPEC, crate::common::R>::from_ptr(
self._svd2pac_as_ptr().add(0x2210usize),
)
}
}
#[inline(always)]
pub const fn adfifodr5(
&self,
) -> &'static crate::common::Reg<self::Adfifodr_SPEC, crate::common::R> {
unsafe {
crate::common::Reg::<self::Adfifodr_SPEC, crate::common::R>::from_ptr(
self._svd2pac_as_ptr().add(0x2214usize),
)
}
}
#[inline(always)]
pub const fn adfifodr6(
&self,
) -> &'static crate::common::Reg<self::Adfifodr_SPEC, crate::common::R> {
unsafe {
crate::common::Reg::<self::Adfifodr_SPEC, crate::common::R>::from_ptr(
self._svd2pac_as_ptr().add(0x2218usize),
)
}
}
#[inline(always)]
pub const fn adfifodr7(
&self,
) -> &'static crate::common::Reg<self::Adfifodr_SPEC, crate::common::R> {
unsafe {
crate::common::Reg::<self::Adfifodr_SPEC, crate::common::R>::from_ptr(
self._svd2pac_as_ptr().add(0x221cusize),
)
}
}
#[inline(always)]
pub const fn adfifodr8(
&self,
) -> &'static crate::common::Reg<self::Adfifodr_SPEC, crate::common::R> {
unsafe {
crate::common::Reg::<self::Adfifodr_SPEC, crate::common::R>::from_ptr(
self._svd2pac_as_ptr().add(0x2220usize),
)
}
}
}
#[doc(hidden)]
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct Adclkenr_SPEC;
impl crate::sealed::RegSpec for Adclkenr_SPEC {
type DataType = u32;
}
#[doc = "A/D Conversion Clock Enable Register"]
pub type Adclkenr = crate::RegValueT<Adclkenr_SPEC>;
impl Adclkenr {
#[doc = "ADCLK Operating Enable"]
#[inline(always)]
pub fn clken(
self,
) -> crate::common::RegisterField<
0,
0x1,
1,
0,
adclkenr::Clken,
adclkenr::Clken,
Adclkenr_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
0,
0x1,
1,
0,
adclkenr::Clken,
adclkenr::Clken,
Adclkenr_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
}
impl ::core::default::Default for Adclkenr {
#[inline(always)]
fn default() -> Adclkenr {
<crate::RegValueT<Adclkenr_SPEC> as RegisterValue<_>>::new(0)
}
}
pub mod adclkenr {
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Clken_SPEC;
pub type Clken = crate::EnumBitfieldStruct<u8, Clken_SPEC>;
impl Clken {
#[doc = "Stop ADCLK"]
pub const _0: Self = Self::new(0);
#[doc = "Supply ADCLK"]
pub const _1: Self = Self::new(1);
}
}
#[doc(hidden)]
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct Adclksr_SPEC;
impl crate::sealed::RegSpec for Adclksr_SPEC {
type DataType = u32;
}
#[doc = "A/D Conversion Clock Status Register"]
pub type Adclksr = crate::RegValueT<Adclksr_SPEC>;
impl Adclksr {
#[doc = "ADCLK status"]
#[inline(always)]
pub fn clksr(
self,
) -> crate::common::RegisterField<
0,
0x1,
1,
0,
adclksr::Clksr,
adclksr::Clksr,
Adclksr_SPEC,
crate::common::R,
> {
crate::common::RegisterField::<
0,
0x1,
1,
0,
adclksr::Clksr,
adclksr::Clksr,
Adclksr_SPEC,
crate::common::R,
>::from_register(self, 0)
}
}
impl ::core::default::Default for Adclksr {
#[inline(always)]
fn default() -> Adclksr {
<crate::RegValueT<Adclksr_SPEC> as RegisterValue<_>>::new(0)
}
}
pub mod adclksr {
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Clksr_SPEC;
pub type Clksr = crate::EnumBitfieldStruct<u8, Clksr_SPEC>;
impl Clksr {
#[doc = "ADCLK is stopped"]
pub const _0: Self = Self::new(0);
#[doc = "ADCLK is in supply"]
pub const _1: Self = Self::new(1);
}
}
#[doc(hidden)]
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct Adclkcr_SPEC;
impl crate::sealed::RegSpec for Adclkcr_SPEC {
type DataType = u32;
}
#[doc = "A/D Conversion Clock Control Register"]
pub type Adclkcr = crate::RegValueT<Adclkcr_SPEC>;
impl Adclkcr {
#[doc = "ADCLK Clock Source Select"]
#[inline(always)]
pub fn clksel(
self,
) -> crate::common::RegisterField<
0,
0x3,
1,
0,
adclkcr::Clksel,
adclkcr::Clksel,
Adclkcr_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
0,
0x3,
1,
0,
adclkcr::Clksel,
adclkcr::Clksel,
Adclkcr_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[doc = "Clock Division Ratio Select"]
#[inline(always)]
pub fn divr(
self,
) -> crate::common::RegisterField<
16,
0x7,
1,
0,
adclkcr::Divr,
adclkcr::Divr,
Adclkcr_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
16,
0x7,
1,
0,
adclkcr::Divr,
adclkcr::Divr,
Adclkcr_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
}
impl ::core::default::Default for Adclkcr {
#[inline(always)]
fn default() -> Adclkcr {
<crate::RegValueT<Adclkcr_SPEC> as RegisterValue<_>>::new(0)
}
}
pub mod adclkcr {
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Clksel_SPEC;
pub type Clksel = crate::EnumBitfieldStruct<u8, Clksel_SPEC>;
impl Clksel {
#[doc = "ADC Clock (ADCCLK)"]
pub const _00: Self = Self::new(0);
#[doc = "GPT Clock (GPTCLK)"]
pub const _01: Self = Self::new(1);
#[doc = "Peripheral Module Clock A (PCLKA)"]
pub const _10: Self = Self::new(2);
#[doc = "Setting prohibited"]
pub const _11: Self = Self::new(3);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Divr_SPEC;
pub type Divr = crate::EnumBitfieldStruct<u8, Divr_SPEC>;
impl Divr {
#[doc = "1/1"]
pub const _000: Self = Self::new(0);
#[doc = "1/2"]
pub const _001: Self = Self::new(1);
#[doc = "1/3"]
pub const _010: Self = Self::new(2);
#[doc = "1/4"]
pub const _011: Self = Self::new(3);
#[doc = "1/5"]
pub const _100: Self = Self::new(4);
#[doc = "Setting prohibited"]
pub const OTHERS: Self = Self::new(0);
}
}
#[doc(hidden)]
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct Adsycr_SPEC;
impl crate::sealed::RegSpec for Adsycr_SPEC {
type DataType = u32;
}
#[doc = "A/D Converter Synchronous Operation Control Register"]
pub type Adsycr = crate::RegValueT<Adsycr_SPEC>;
impl Adsycr {
#[doc = "Synchronous Operation Period Cycle"]
#[inline(always)]
pub fn adsycyc(
self,
) -> crate::common::RegisterField<0, 0xff, 1, 0, u8, u8, Adsycr_SPEC, crate::common::RW> {
crate::common::RegisterField::<0,0xff,1,0,u8,u8,Adsycr_SPEC,crate::common::RW>::from_register(self,0)
}
#[doc = "ADC0 Synchronous Operation Select"]
#[inline(always)]
pub fn adsydis0(
self,
) -> crate::common::RegisterField<
16,
0x1,
1,
0,
adsycr::Adsydis0,
adsycr::Adsydis0,
Adsycr_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
16,
0x1,
1,
0,
adsycr::Adsydis0,
adsycr::Adsydis0,
Adsycr_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[doc = "ADC1 Synchronous Operation Select"]
#[inline(always)]
pub fn adsydis1(
self,
) -> crate::common::RegisterField<
17,
0x1,
1,
0,
adsycr::Adsydis1,
adsycr::Adsydis1,
Adsycr_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
17,
0x1,
1,
0,
adsycr::Adsydis1,
adsycr::Adsydis1,
Adsycr_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
}
impl ::core::default::Default for Adsycr {
#[inline(always)]
fn default() -> Adsycr {
<crate::RegValueT<Adsycr_SPEC> as RegisterValue<_>>::new(196613)
}
}
pub mod adsycr {
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Adsydis0_SPEC;
pub type Adsydis0 = crate::EnumBitfieldStruct<u8, Adsydis0_SPEC>;
impl Adsydis0 {
#[doc = "Enable ADC0 synchronous operation"]
pub const _0: Self = Self::new(0);
#[doc = "Disable ADC0 synchronous operation"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Adsydis1_SPEC;
pub type Adsydis1 = crate::EnumBitfieldStruct<u8, Adsydis1_SPEC>;
impl Adsydis1 {
#[doc = "Enable ADC1 synchronous operation"]
pub const _0: Self = Self::new(0);
#[doc = "Disable ADC1 synchronous operation"]
pub const _1: Self = Self::new(1);
}
}
#[doc(hidden)]
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct Aduslpcr0_SPEC;
impl crate::sealed::RegSpec for Aduslpcr0_SPEC {
type DataType = u32;
}
#[doc = "A/D Converter Unit Sleep Control Register 0"]
pub type Aduslpcr0 = crate::RegValueT<Aduslpcr0_SPEC>;
impl Aduslpcr0 {
#[doc = "Sleep setting of A/D converter unit 0"]
#[inline(always)]
pub fn aduslp(
self,
) -> crate::common::RegisterField<
0,
0x1,
1,
0,
aduslpcr0::Aduslp,
aduslpcr0::Aduslp,
Aduslpcr0_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
0,
0x1,
1,
0,
aduslpcr0::Aduslp,
aduslpcr0::Aduslp,
Aduslpcr0_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
}
impl ::core::default::Default for Aduslpcr0 {
#[inline(always)]
fn default() -> Aduslpcr0 {
<crate::RegValueT<Aduslpcr0_SPEC> as RegisterValue<_>>::new(0)
}
}
pub mod aduslpcr0 {
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Aduslp_SPEC;
pub type Aduslp = crate::EnumBitfieldStruct<u8, Aduslp_SPEC>;
impl Aduslp {
#[doc = "Set A/D converter to Normal operation mode"]
pub const _0: Self = Self::new(0);
#[doc = "Set A/D converter to Sleep operation mode"]
pub const _1: Self = Self::new(1);
}
}
#[doc(hidden)]
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct Aduslpcr1_SPEC;
impl crate::sealed::RegSpec for Aduslpcr1_SPEC {
type DataType = u32;
}
#[doc = "A/D Converter Unit Sleep Control Register 1"]
pub type Aduslpcr1 = crate::RegValueT<Aduslpcr1_SPEC>;
impl Aduslpcr1 {
#[doc = "Sleep setting of A/D converter unit 1"]
#[inline(always)]
pub fn aduslp(
self,
) -> crate::common::RegisterField<
0,
0x1,
1,
0,
aduslpcr1::Aduslp,
aduslpcr1::Aduslp,
Aduslpcr1_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
0,
0x1,
1,
0,
aduslpcr1::Aduslp,
aduslpcr1::Aduslp,
Aduslpcr1_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
}
impl ::core::default::Default for Aduslpcr1 {
#[inline(always)]
fn default() -> Aduslpcr1 {
<crate::RegValueT<Aduslpcr1_SPEC> as RegisterValue<_>>::new(0)
}
}
pub mod aduslpcr1 {
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Aduslp_SPEC;
pub type Aduslp = crate::EnumBitfieldStruct<u8, Aduslp_SPEC>;
impl Aduslp {
#[doc = "Set A/D converter to Normal operation mode"]
pub const _0: Self = Self::new(0);
#[doc = "Set A/D converter to Sleep operation mode"]
pub const _1: Self = Self::new(1);
}
}
#[doc(hidden)]
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct Aderintcr_SPEC;
impl crate::sealed::RegSpec for Aderintcr_SPEC {
type DataType = u32;
}
#[doc = "A/D Conversion Error Interrupt Enable Register"]
pub type Aderintcr = crate::RegValueT<Aderintcr_SPEC>;
impl Aderintcr {
#[doc = "ADC0 A/D Conversion Error Interrupt Enable"]
#[inline(always)]
pub fn adeie0(
self,
) -> crate::common::RegisterField<
0,
0x1,
1,
0,
aderintcr::Adeie0,
aderintcr::Adeie0,
Aderintcr_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
0,
0x1,
1,
0,
aderintcr::Adeie0,
aderintcr::Adeie0,
Aderintcr_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[doc = "ADC1 A/D Conversion Error Interrupt Enable"]
#[inline(always)]
pub fn adeie1(
self,
) -> crate::common::RegisterField<
1,
0x1,
1,
0,
aderintcr::Adeie1,
aderintcr::Adeie1,
Aderintcr_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
1,
0x1,
1,
0,
aderintcr::Adeie1,
aderintcr::Adeie1,
Aderintcr_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
}
impl ::core::default::Default for Aderintcr {
#[inline(always)]
fn default() -> Aderintcr {
<crate::RegValueT<Aderintcr_SPEC> as RegisterValue<_>>::new(0)
}
}
pub mod aderintcr {
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Adeie0_SPEC;
pub type Adeie0 = crate::EnumBitfieldStruct<u8, Adeie0_SPEC>;
impl Adeie0 {
#[doc = "Disable A/D conversion error interrupt for ADC0"]
pub const _0: Self = Self::new(0);
#[doc = "Enable A/D conversion error interrupt for ADC0"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Adeie1_SPEC;
pub type Adeie1 = crate::EnumBitfieldStruct<u8, Adeie1_SPEC>;
impl Adeie1 {
#[doc = "Disable A/D conversion error interrupt for ADC1"]
pub const _0: Self = Self::new(0);
#[doc = "Enable A/D conversion error interrupt for ADC1"]
pub const _1: Self = Self::new(1);
}
}
#[doc(hidden)]
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct Adovfintcr_SPEC;
impl crate::sealed::RegSpec for Adovfintcr_SPEC {
type DataType = u32;
}
#[doc = "A/D Conversion Overflow Interrupt Enable Register"]
pub type Adovfintcr = crate::RegValueT<Adovfintcr_SPEC>;
impl Adovfintcr {
#[doc = "ADC0 A/D Conversion Overflow Interrupt Enable"]
#[inline(always)]
pub fn adovfie0(
self,
) -> crate::common::RegisterField<
0,
0x1,
1,
0,
adovfintcr::Adovfie0,
adovfintcr::Adovfie0,
Adovfintcr_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
0,
0x1,
1,
0,
adovfintcr::Adovfie0,
adovfintcr::Adovfie0,
Adovfintcr_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[doc = "ADC1 A/D Conversion Overflow Interrupt Enable"]
#[inline(always)]
pub fn adovfie1(
self,
) -> crate::common::RegisterField<
1,
0x1,
1,
0,
adovfintcr::Adovfie1,
adovfintcr::Adovfie1,
Adovfintcr_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
1,
0x1,
1,
0,
adovfintcr::Adovfie1,
adovfintcr::Adovfie1,
Adovfintcr_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
}
impl ::core::default::Default for Adovfintcr {
#[inline(always)]
fn default() -> Adovfintcr {
<crate::RegValueT<Adovfintcr_SPEC> as RegisterValue<_>>::new(0)
}
}
pub mod adovfintcr {
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Adovfie0_SPEC;
pub type Adovfie0 = crate::EnumBitfieldStruct<u8, Adovfie0_SPEC>;
impl Adovfie0 {
#[doc = "Disable A/D conversion overflow interrupt for ADC0"]
pub const _0: Self = Self::new(0);
#[doc = "Enable A/D conversion overflow interrupt for ADC0"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Adovfie1_SPEC;
pub type Adovfie1 = crate::EnumBitfieldStruct<u8, Adovfie1_SPEC>;
impl Adovfie1 {
#[doc = "Disable A/D conversion overflow interrupt for ADC1"]
pub const _0: Self = Self::new(0);
#[doc = "Enable A/D conversion overflow interrupt for ADC1"]
pub const _1: Self = Self::new(1);
}
}
#[doc(hidden)]
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct Adcalintcr_SPEC;
impl crate::sealed::RegSpec for Adcalintcr_SPEC {
type DataType = u32;
}
#[doc = "Calibration Interrupt Enable Register"]
pub type Adcalintcr = crate::RegValueT<Adcalintcr_SPEC>;
impl Adcalintcr {
#[doc = "ADC0 Calibration End Interrupt Enable"]
#[inline(always)]
pub fn calendie0(
self,
) -> crate::common::RegisterField<
16,
0x1,
1,
0,
adcalintcr::Calendie0,
adcalintcr::Calendie0,
Adcalintcr_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
16,
0x1,
1,
0,
adcalintcr::Calendie0,
adcalintcr::Calendie0,
Adcalintcr_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[doc = "ADC1 Calibration End Interrupt Enable"]
#[inline(always)]
pub fn calendie1(
self,
) -> crate::common::RegisterField<
17,
0x1,
1,
0,
adcalintcr::Calendie1,
adcalintcr::Calendie1,
Adcalintcr_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
17,
0x1,
1,
0,
adcalintcr::Calendie1,
adcalintcr::Calendie1,
Adcalintcr_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
}
impl ::core::default::Default for Adcalintcr {
#[inline(always)]
fn default() -> Adcalintcr {
<crate::RegValueT<Adcalintcr_SPEC> as RegisterValue<_>>::new(0)
}
}
pub mod adcalintcr {
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Calendie0_SPEC;
pub type Calendie0 = crate::EnumBitfieldStruct<u8, Calendie0_SPEC>;
impl Calendie0 {
#[doc = "Disable Calibration End Interrupt for ADC0"]
pub const _0: Self = Self::new(0);
#[doc = "Enable Calibration End Interrupt for ADC0"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Calendie1_SPEC;
pub type Calendie1 = crate::EnumBitfieldStruct<u8, Calendie1_SPEC>;
impl Calendie1 {
#[doc = "Disable Calibration End Interrupt for ADC1"]
pub const _0: Self = Self::new(0);
#[doc = "Enable Calibration End Interrupt for ADC1"]
pub const _1: Self = Self::new(1);
}
}
#[doc(hidden)]
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct Admdr_SPEC;
impl crate::sealed::RegSpec for Admdr_SPEC {
type DataType = u32;
}
#[doc = "A/D Converter Mode Selection Register"]
pub type Admdr = crate::RegValueT<Admdr_SPEC>;
impl Admdr {
#[doc = "ADC0 Mode Selection"]
#[inline(always)]
pub fn admd0(
self,
) -> crate::common::RegisterField<
0,
0xf,
1,
0,
admdr::Admd0,
admdr::Admd0,
Admdr_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
0,
0xf,
1,
0,
admdr::Admd0,
admdr::Admd0,
Admdr_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[doc = "ADC1 Mode Selection"]
#[inline(always)]
pub fn admd1(
self,
) -> crate::common::RegisterField<
8,
0xf,
1,
0,
admdr::Admd1,
admdr::Admd1,
Admdr_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
8,
0xf,
1,
0,
admdr::Admd1,
admdr::Admd1,
Admdr_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
}
impl ::core::default::Default for Admdr {
#[inline(always)]
fn default() -> Admdr {
<crate::RegValueT<Admdr_SPEC> as RegisterValue<_>>::new(0)
}
}
pub mod admdr {
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Admd0_SPEC;
pub type Admd0 = crate::EnumBitfieldStruct<u8, Admd0_SPEC>;
impl Admd0 {
#[doc = "SAR mode – Single scan mode"]
pub const _0_X_0: Self = Self::new(0);
#[doc = "SAR mode – Continuous scan mode"]
pub const _0_X_1: Self = Self::new(1);
#[doc = "Oversampling mode – Single scan mode"]
pub const _0_X_4: Self = Self::new(4);
#[doc = "Oversampling mode – Continuous scan mode"]
pub const _0_X_5: Self = Self::new(5);
#[doc = "Oversampling mode – One-channel continuous scan mode"]
pub const _0_X_6: Self = Self::new(6);
#[doc = "Hybrid mode – Single scan mode"]
pub const _0_X_8: Self = Self::new(8);
#[doc = "Hybrid mode – Continuous scan mode"]
pub const _0_X_9: Self = Self::new(9);
#[doc = "Hybrid mode – Background continuous scan mode"]
pub const _0_X_A: Self = Self::new(10);
#[doc = "Hybrid mode – Fixed-channel continuous scan mode"]
pub const _0_X_B: Self = Self::new(11);
#[doc = "Setting prohibited"]
pub const OTHERS: Self = Self::new(0);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Admd1_SPEC;
pub type Admd1 = crate::EnumBitfieldStruct<u8, Admd1_SPEC>;
impl Admd1 {
#[doc = "SAR mode – Single scan mode"]
pub const _0_X_0: Self = Self::new(0);
#[doc = "SAR mode – Continuous scan mode"]
pub const _0_X_1: Self = Self::new(1);
#[doc = "Oversampling mode – Single scan mode"]
pub const _0_X_4: Self = Self::new(4);
#[doc = "Oversampling mode – Continuous scan mode"]
pub const _0_X_5: Self = Self::new(5);
#[doc = "Oversampling mode – One-channel continuous scan mode"]
pub const _0_X_6: Self = Self::new(6);
#[doc = "Hybrid mode – Single scan mode"]
pub const _0_X_8: Self = Self::new(8);
#[doc = "Hybrid mode – Continuous scan mode"]
pub const _0_X_9: Self = Self::new(9);
#[doc = "Hybrid mode – Background continuous scan mode"]
pub const _0_X_A: Self = Self::new(10);
#[doc = "Hybrid mode – Fixed-channel continuous scan mode"]
pub const _0_X_B: Self = Self::new(11);
#[doc = "Setting prohibited"]
pub const OTHERS: Self = Self::new(0);
}
}
#[doc(hidden)]
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct Adgspcr_SPEC;
impl crate::sealed::RegSpec for Adgspcr_SPEC {
type DataType = u32;
}
#[doc = "A/D Group Scan Priority Control Register"]
pub type Adgspcr = crate::RegValueT<Adgspcr_SPEC>;
impl Adgspcr {
#[doc = "ADC0 Group Priority Control Setting"]
#[inline(always)]
pub fn pgs0(
self,
) -> crate::common::RegisterField<
0,
0x1,
1,
0,
adgspcr::Pgs0,
adgspcr::Pgs0,
Adgspcr_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
0,
0x1,
1,
0,
adgspcr::Pgs0,
adgspcr::Pgs0,
Adgspcr_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[doc = "ADC0 Group Priority Control Setting 2"]
#[inline(always)]
pub fn rscn0(
self,
) -> crate::common::RegisterField<
1,
0x1,
1,
0,
adgspcr::Rscn0,
adgspcr::Rscn0,
Adgspcr_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
1,
0x1,
1,
0,
adgspcr::Rscn0,
adgspcr::Rscn0,
Adgspcr_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[doc = "ADC0 Group Priority Control Setting 3"]
#[inline(always)]
pub fn lgrrs0(
self,
) -> crate::common::RegisterField<
2,
0x1,
1,
0,
adgspcr::Lgrrs0,
adgspcr::Lgrrs0,
Adgspcr_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
2,
0x1,
1,
0,
adgspcr::Lgrrs0,
adgspcr::Lgrrs0,
Adgspcr_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[doc = "ADC0 Group Priority Control Setting 4"]
#[inline(always)]
pub fn grp0(
self,
) -> crate::common::RegisterField<
3,
0x1,
1,
0,
adgspcr::Grp0,
adgspcr::Grp0,
Adgspcr_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
3,
0x1,
1,
0,
adgspcr::Grp0,
adgspcr::Grp0,
Adgspcr_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[doc = "ADC1 Group Priority Control Setting"]
#[inline(always)]
pub fn pgs1(
self,
) -> crate::common::RegisterField<
8,
0x1,
1,
0,
adgspcr::Pgs1,
adgspcr::Pgs1,
Adgspcr_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
8,
0x1,
1,
0,
adgspcr::Pgs1,
adgspcr::Pgs1,
Adgspcr_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[doc = "ADC1 Group Priority Control Setting 2"]
#[inline(always)]
pub fn rscn1(
self,
) -> crate::common::RegisterField<
9,
0x1,
1,
0,
adgspcr::Rscn1,
adgspcr::Rscn1,
Adgspcr_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
9,
0x1,
1,
0,
adgspcr::Rscn1,
adgspcr::Rscn1,
Adgspcr_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[doc = "ADC1 Group Priority Control Setting 3"]
#[inline(always)]
pub fn lgrrs1(
self,
) -> crate::common::RegisterField<
10,
0x1,
1,
0,
adgspcr::Lgrrs1,
adgspcr::Lgrrs1,
Adgspcr_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
10,
0x1,
1,
0,
adgspcr::Lgrrs1,
adgspcr::Lgrrs1,
Adgspcr_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[doc = "ADC1 Group Priority Control Setting 4"]
#[inline(always)]
pub fn grp1(
self,
) -> crate::common::RegisterField<
11,
0x1,
1,
0,
adgspcr::Grp1,
adgspcr::Grp1,
Adgspcr_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
11,
0x1,
1,
0,
adgspcr::Grp1,
adgspcr::Grp1,
Adgspcr_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
}
impl ::core::default::Default for Adgspcr {
#[inline(always)]
fn default() -> Adgspcr {
<crate::RegValueT<Adgspcr_SPEC> as RegisterValue<_>>::new(0)
}
}
pub mod adgspcr {
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Pgs0_SPEC;
pub type Pgs0 = crate::EnumBitfieldStruct<u8, Pgs0_SPEC>;
impl Pgs0 {
#[doc = "ADC0 operation is without group priority control"]
pub const _0: Self = Self::new(0);
#[doc = "ADC0 operation is with group priority control in SAR mode. Setting prohibited when other than SAR mode."]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Rscn0_SPEC;
pub type Rscn0 = crate::EnumBitfieldStruct<u8, Rscn0_SPEC>;
impl Rscn0 {
#[doc = "Set when PGS0 is set to 0."]
pub const _0: Self = Self::new(0);
#[doc = "Set when PGS0 is set to 1."]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Lgrrs0_SPEC;
pub type Lgrrs0 = crate::EnumBitfieldStruct<u8, Lgrrs0_SPEC>;
impl Lgrrs0 {
#[doc = "Set when PGS0 is set to 0."]
pub const _0: Self = Self::new(0);
#[doc = "Set when PGS0 is set to 1."]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Grp0_SPEC;
pub type Grp0 = crate::EnumBitfieldStruct<u8, Grp0_SPEC>;
impl Grp0 {
#[doc = "Set the following case: When PGS0 is set to 0When PGS0 is set to 1 and ADC0 is SAR mode – Single scan mode."]
pub const _0: Self = Self::new(0);
#[doc = "Set when PGS0 is set to 1 and ADC0 is SAR mode – Continuous scan mode."]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Pgs1_SPEC;
pub type Pgs1 = crate::EnumBitfieldStruct<u8, Pgs1_SPEC>;
impl Pgs1 {
#[doc = "ADC1 operation is without group priority control"]
pub const _0: Self = Self::new(0);
#[doc = "ADC1 operation is with group priority control in SAR mode. Setting prohibited when other than SAR mode."]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Rscn1_SPEC;
pub type Rscn1 = crate::EnumBitfieldStruct<u8, Rscn1_SPEC>;
impl Rscn1 {
#[doc = "Set when PGS1 is set to 0."]
pub const _0: Self = Self::new(0);
#[doc = "Set when PGS1 is set to 1."]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Lgrrs1_SPEC;
pub type Lgrrs1 = crate::EnumBitfieldStruct<u8, Lgrrs1_SPEC>;
impl Lgrrs1 {
#[doc = "Set when PGS1 is set to 0."]
pub const _0: Self = Self::new(0);
#[doc = "Set when PGS1 is set to 1."]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Grp1_SPEC;
pub type Grp1 = crate::EnumBitfieldStruct<u8, Grp1_SPEC>;
impl Grp1 {
#[doc = "Set the following case: When PGS1 is set to 0When PGS1 is set to 1 and ADC1 is SAR mode – Single scan mode."]
pub const _0: Self = Self::new(0);
#[doc = "Set when PGS1 is set to 1 and ADC1 is SAR mode – Continuous scan mode."]
pub const _1: Self = Self::new(1);
}
}
#[doc(hidden)]
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct Adsger_SPEC;
impl crate::sealed::RegSpec for Adsger_SPEC {
type DataType = u32;
}
#[doc = "Scan Group Enable Register"]
pub type Adsger = crate::RegValueT<Adsger_SPEC>;
impl Adsger {
#[doc = "Scan Group n Enable"]
#[inline(always)]
pub fn sgre0(
self,
) -> crate::common::RegisterField<
0,
0x1,
1,
0,
adsger::Sgre0,
adsger::Sgre0,
Adsger_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
0,
0x1,
1,
0,
adsger::Sgre0,
adsger::Sgre0,
Adsger_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[doc = "Scan Group n Enable"]
#[inline(always)]
pub fn sgre1(
self,
) -> crate::common::RegisterField<
1,
0x1,
1,
0,
adsger::Sgre1,
adsger::Sgre1,
Adsger_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
1,
0x1,
1,
0,
adsger::Sgre1,
adsger::Sgre1,
Adsger_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[doc = "Scan Group n Enable"]
#[inline(always)]
pub fn sgre2(
self,
) -> crate::common::RegisterField<
2,
0x1,
1,
0,
adsger::Sgre2,
adsger::Sgre2,
Adsger_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
2,
0x1,
1,
0,
adsger::Sgre2,
adsger::Sgre2,
Adsger_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[doc = "Scan Group n Enable"]
#[inline(always)]
pub fn sgre3(
self,
) -> crate::common::RegisterField<
3,
0x1,
1,
0,
adsger::Sgre3,
adsger::Sgre3,
Adsger_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
3,
0x1,
1,
0,
adsger::Sgre3,
adsger::Sgre3,
Adsger_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[doc = "Scan Group n Enable"]
#[inline(always)]
pub fn sgre4(
self,
) -> crate::common::RegisterField<
4,
0x1,
1,
0,
adsger::Sgre4,
adsger::Sgre4,
Adsger_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
4,
0x1,
1,
0,
adsger::Sgre4,
adsger::Sgre4,
Adsger_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[doc = "Scan Group n Enable"]
#[inline(always)]
pub fn sgre5(
self,
) -> crate::common::RegisterField<
5,
0x1,
1,
0,
adsger::Sgre5,
adsger::Sgre5,
Adsger_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
5,
0x1,
1,
0,
adsger::Sgre5,
adsger::Sgre5,
Adsger_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[doc = "Scan Group n Enable"]
#[inline(always)]
pub fn sgre6(
self,
) -> crate::common::RegisterField<
6,
0x1,
1,
0,
adsger::Sgre6,
adsger::Sgre6,
Adsger_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
6,
0x1,
1,
0,
adsger::Sgre6,
adsger::Sgre6,
Adsger_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[doc = "Scan Group n Enable"]
#[inline(always)]
pub fn sgre7(
self,
) -> crate::common::RegisterField<
7,
0x1,
1,
0,
adsger::Sgre7,
adsger::Sgre7,
Adsger_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
7,
0x1,
1,
0,
adsger::Sgre7,
adsger::Sgre7,
Adsger_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[doc = "Scan Group n Enable"]
#[inline(always)]
pub fn sgre8(
self,
) -> crate::common::RegisterField<
8,
0x1,
1,
0,
adsger::Sgre8,
adsger::Sgre8,
Adsger_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
8,
0x1,
1,
0,
adsger::Sgre8,
adsger::Sgre8,
Adsger_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
}
impl ::core::default::Default for Adsger {
#[inline(always)]
fn default() -> Adsger {
<crate::RegValueT<Adsger_SPEC> as RegisterValue<_>>::new(0)
}
}
pub mod adsger {
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Sgre0_SPEC;
pub type Sgre0 = crate::EnumBitfieldStruct<u8, Sgre0_SPEC>;
impl Sgre0 {
#[doc = "Disable the scan group n"]
pub const _0: Self = Self::new(0);
#[doc = "Enable the scan group n"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Sgre1_SPEC;
pub type Sgre1 = crate::EnumBitfieldStruct<u8, Sgre1_SPEC>;
impl Sgre1 {
#[doc = "Disable the scan group n"]
pub const _0: Self = Self::new(0);
#[doc = "Enable the scan group n"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Sgre2_SPEC;
pub type Sgre2 = crate::EnumBitfieldStruct<u8, Sgre2_SPEC>;
impl Sgre2 {
#[doc = "Disable the scan group n"]
pub const _0: Self = Self::new(0);
#[doc = "Enable the scan group n"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Sgre3_SPEC;
pub type Sgre3 = crate::EnumBitfieldStruct<u8, Sgre3_SPEC>;
impl Sgre3 {
#[doc = "Disable the scan group n"]
pub const _0: Self = Self::new(0);
#[doc = "Enable the scan group n"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Sgre4_SPEC;
pub type Sgre4 = crate::EnumBitfieldStruct<u8, Sgre4_SPEC>;
impl Sgre4 {
#[doc = "Disable the scan group n"]
pub const _0: Self = Self::new(0);
#[doc = "Enable the scan group n"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Sgre5_SPEC;
pub type Sgre5 = crate::EnumBitfieldStruct<u8, Sgre5_SPEC>;
impl Sgre5 {
#[doc = "Disable the scan group n"]
pub const _0: Self = Self::new(0);
#[doc = "Enable the scan group n"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Sgre6_SPEC;
pub type Sgre6 = crate::EnumBitfieldStruct<u8, Sgre6_SPEC>;
impl Sgre6 {
#[doc = "Disable the scan group n"]
pub const _0: Self = Self::new(0);
#[doc = "Enable the scan group n"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Sgre7_SPEC;
pub type Sgre7 = crate::EnumBitfieldStruct<u8, Sgre7_SPEC>;
impl Sgre7 {
#[doc = "Disable the scan group n"]
pub const _0: Self = Self::new(0);
#[doc = "Enable the scan group n"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Sgre8_SPEC;
pub type Sgre8 = crate::EnumBitfieldStruct<u8, Sgre8_SPEC>;
impl Sgre8 {
#[doc = "Disable the scan group n"]
pub const _0: Self = Self::new(0);
#[doc = "Enable the scan group n"]
pub const _1: Self = Self::new(1);
}
}
#[doc(hidden)]
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct Adsgcr0_SPEC;
impl crate::sealed::RegSpec for Adsgcr0_SPEC {
type DataType = u32;
}
#[doc = "Scan Group Control Register 0"]
pub type Adsgcr0 = crate::RegValueT<Adsgcr0_SPEC>;
impl Adsgcr0 {
#[doc = "Scan Group 0 A/D Converter Selection"]
#[inline(always)]
pub fn sgads0(
self,
) -> crate::common::RegisterField<
0,
0x3,
1,
0,
adsgcr0::Sgads0,
adsgcr0::Sgads0,
Adsgcr0_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
0,
0x3,
1,
0,
adsgcr0::Sgads0,
adsgcr0::Sgads0,
Adsgcr0_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[doc = "Scan Group 1 A/D Converter Selection"]
#[inline(always)]
pub fn sgads1(
self,
) -> crate::common::RegisterField<
8,
0x3,
1,
0,
adsgcr0::Sgads1,
adsgcr0::Sgads1,
Adsgcr0_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
8,
0x3,
1,
0,
adsgcr0::Sgads1,
adsgcr0::Sgads1,
Adsgcr0_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[doc = "Scan Group 2 A/D Converter Selection"]
#[inline(always)]
pub fn sgads2(
self,
) -> crate::common::RegisterField<
16,
0x3,
1,
0,
adsgcr0::Sgads2,
adsgcr0::Sgads2,
Adsgcr0_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
16,
0x3,
1,
0,
adsgcr0::Sgads2,
adsgcr0::Sgads2,
Adsgcr0_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[doc = "Scan Group 3 A/D Converter Selection"]
#[inline(always)]
pub fn sgads3(
self,
) -> crate::common::RegisterField<
24,
0x3,
1,
0,
adsgcr0::Sgads3,
adsgcr0::Sgads3,
Adsgcr0_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
24,
0x3,
1,
0,
adsgcr0::Sgads3,
adsgcr0::Sgads3,
Adsgcr0_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
}
impl ::core::default::Default for Adsgcr0 {
#[inline(always)]
fn default() -> Adsgcr0 {
<crate::RegValueT<Adsgcr0_SPEC> as RegisterValue<_>>::new(0)
}
}
pub mod adsgcr0 {
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Sgads0_SPEC;
pub type Sgads0 = crate::EnumBitfieldStruct<u8, Sgads0_SPEC>;
impl Sgads0 {
#[doc = "Select ADC0"]
pub const _00: Self = Self::new(0);
#[doc = "Select ADC1"]
pub const _01: Self = Self::new(1);
#[doc = "Setting prohibited"]
pub const OTHERS: Self = Self::new(0);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Sgads1_SPEC;
pub type Sgads1 = crate::EnumBitfieldStruct<u8, Sgads1_SPEC>;
impl Sgads1 {
#[doc = "Select ADC0"]
pub const _00: Self = Self::new(0);
#[doc = "Select ADC1"]
pub const _01: Self = Self::new(1);
#[doc = "Setting prohibited"]
pub const OTHERS: Self = Self::new(0);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Sgads2_SPEC;
pub type Sgads2 = crate::EnumBitfieldStruct<u8, Sgads2_SPEC>;
impl Sgads2 {
#[doc = "Select ADC0"]
pub const _00: Self = Self::new(0);
#[doc = "Select ADC1"]
pub const _01: Self = Self::new(1);
#[doc = "Setting prohibited"]
pub const OTHERS: Self = Self::new(0);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Sgads3_SPEC;
pub type Sgads3 = crate::EnumBitfieldStruct<u8, Sgads3_SPEC>;
impl Sgads3 {
#[doc = "Select ADC0"]
pub const _00: Self = Self::new(0);
#[doc = "Select ADC1"]
pub const _01: Self = Self::new(1);
#[doc = "Setting prohibited"]
pub const OTHERS: Self = Self::new(0);
}
}
#[doc(hidden)]
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct Adsgcr1_SPEC;
impl crate::sealed::RegSpec for Adsgcr1_SPEC {
type DataType = u32;
}
#[doc = "Scan Group Control Register 1"]
pub type Adsgcr1 = crate::RegValueT<Adsgcr1_SPEC>;
impl Adsgcr1 {
#[doc = "Scan Group 4 A/D Converter Selection"]
#[inline(always)]
pub fn sgads4(
self,
) -> crate::common::RegisterField<
0,
0x3,
1,
0,
adsgcr1::Sgads4,
adsgcr1::Sgads4,
Adsgcr1_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
0,
0x3,
1,
0,
adsgcr1::Sgads4,
adsgcr1::Sgads4,
Adsgcr1_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[doc = "Scan Group 5 A/D Converter Selection"]
#[inline(always)]
pub fn sgads5(
self,
) -> crate::common::RegisterField<
8,
0x3,
1,
0,
adsgcr1::Sgads5,
adsgcr1::Sgads5,
Adsgcr1_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
8,
0x3,
1,
0,
adsgcr1::Sgads5,
adsgcr1::Sgads5,
Adsgcr1_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[doc = "Scan Group 6 A/D Converter Selection"]
#[inline(always)]
pub fn sgads6(
self,
) -> crate::common::RegisterField<
16,
0x3,
1,
0,
adsgcr1::Sgads6,
adsgcr1::Sgads6,
Adsgcr1_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
16,
0x3,
1,
0,
adsgcr1::Sgads6,
adsgcr1::Sgads6,
Adsgcr1_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[doc = "Scan Group 7 A/D Converter Selection"]
#[inline(always)]
pub fn sgads7(
self,
) -> crate::common::RegisterField<
24,
0x3,
1,
0,
adsgcr1::Sgads7,
adsgcr1::Sgads7,
Adsgcr1_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
24,
0x3,
1,
0,
adsgcr1::Sgads7,
adsgcr1::Sgads7,
Adsgcr1_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
}
impl ::core::default::Default for Adsgcr1 {
#[inline(always)]
fn default() -> Adsgcr1 {
<crate::RegValueT<Adsgcr1_SPEC> as RegisterValue<_>>::new(0)
}
}
pub mod adsgcr1 {
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Sgads4_SPEC;
pub type Sgads4 = crate::EnumBitfieldStruct<u8, Sgads4_SPEC>;
impl Sgads4 {
#[doc = "Select ADC0"]
pub const _00: Self = Self::new(0);
#[doc = "Select ADC1"]
pub const _01: Self = Self::new(1);
#[doc = "Setting prohibited"]
pub const OTHERS: Self = Self::new(0);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Sgads5_SPEC;
pub type Sgads5 = crate::EnumBitfieldStruct<u8, Sgads5_SPEC>;
impl Sgads5 {
#[doc = "Select ADC0"]
pub const _00: Self = Self::new(0);
#[doc = "Select ADC1"]
pub const _01: Self = Self::new(1);
#[doc = "Setting prohibited"]
pub const OTHERS: Self = Self::new(0);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Sgads6_SPEC;
pub type Sgads6 = crate::EnumBitfieldStruct<u8, Sgads6_SPEC>;
impl Sgads6 {
#[doc = "Select ADC0"]
pub const _00: Self = Self::new(0);
#[doc = "Select ADC1"]
pub const _01: Self = Self::new(1);
#[doc = "Setting prohibited"]
pub const OTHERS: Self = Self::new(0);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Sgads7_SPEC;
pub type Sgads7 = crate::EnumBitfieldStruct<u8, Sgads7_SPEC>;
impl Sgads7 {
#[doc = "Select ADC0"]
pub const _00: Self = Self::new(0);
#[doc = "Select ADC1"]
pub const _01: Self = Self::new(1);
#[doc = "Setting prohibited"]
pub const OTHERS: Self = Self::new(0);
}
}
#[doc(hidden)]
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct Adsgcr2_SPEC;
impl crate::sealed::RegSpec for Adsgcr2_SPEC {
type DataType = u32;
}
#[doc = "Scan Group Control Register 2"]
pub type Adsgcr2 = crate::RegValueT<Adsgcr2_SPEC>;
impl Adsgcr2 {
#[doc = "Scan Group 8 A/D Converter Selection"]
#[inline(always)]
pub fn sgads8(
self,
) -> crate::common::RegisterField<
0,
0x3,
1,
0,
adsgcr2::Sgads8,
adsgcr2::Sgads8,
Adsgcr2_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
0,
0x3,
1,
0,
adsgcr2::Sgads8,
adsgcr2::Sgads8,
Adsgcr2_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
}
impl ::core::default::Default for Adsgcr2 {
#[inline(always)]
fn default() -> Adsgcr2 {
<crate::RegValueT<Adsgcr2_SPEC> as RegisterValue<_>>::new(0)
}
}
pub mod adsgcr2 {
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Sgads8_SPEC;
pub type Sgads8 = crate::EnumBitfieldStruct<u8, Sgads8_SPEC>;
impl Sgads8 {
#[doc = "Select ADC0"]
pub const _00: Self = Self::new(0);
#[doc = "Select ADC1"]
pub const _01: Self = Self::new(1);
#[doc = "Setting prohibited"]
pub const OTHERS: Self = Self::new(0);
}
}
#[doc(hidden)]
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct Adintcr_SPEC;
impl crate::sealed::RegSpec for Adintcr_SPEC {
type DataType = u32;
}
#[doc = "Scan End Interrupt Enable Register"]
pub type Adintcr = crate::RegValueT<Adintcr_SPEC>;
impl Adintcr {
#[doc = "Scan Group n Scan End Interrupt Enable"]
#[inline(always)]
pub fn adie0(
self,
) -> crate::common::RegisterField<
0,
0x1,
1,
0,
adintcr::Adie0,
adintcr::Adie0,
Adintcr_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
0,
0x1,
1,
0,
adintcr::Adie0,
adintcr::Adie0,
Adintcr_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[doc = "Scan Group n Scan End Interrupt Enable"]
#[inline(always)]
pub fn adie1(
self,
) -> crate::common::RegisterField<
1,
0x1,
1,
0,
adintcr::Adie1,
adintcr::Adie1,
Adintcr_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
1,
0x1,
1,
0,
adintcr::Adie1,
adintcr::Adie1,
Adintcr_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[doc = "Scan Group n Scan End Interrupt Enable"]
#[inline(always)]
pub fn adie2(
self,
) -> crate::common::RegisterField<
2,
0x1,
1,
0,
adintcr::Adie2,
adintcr::Adie2,
Adintcr_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
2,
0x1,
1,
0,
adintcr::Adie2,
adintcr::Adie2,
Adintcr_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[doc = "Scan Group n Scan End Interrupt Enable"]
#[inline(always)]
pub fn adie3(
self,
) -> crate::common::RegisterField<
3,
0x1,
1,
0,
adintcr::Adie3,
adintcr::Adie3,
Adintcr_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
3,
0x1,
1,
0,
adintcr::Adie3,
adintcr::Adie3,
Adintcr_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[doc = "Scan Group n Scan End Interrupt Enable"]
#[inline(always)]
pub fn adie4(
self,
) -> crate::common::RegisterField<
4,
0x1,
1,
0,
adintcr::Adie4,
adintcr::Adie4,
Adintcr_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
4,
0x1,
1,
0,
adintcr::Adie4,
adintcr::Adie4,
Adintcr_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[doc = "Scan Group n Scan End Interrupt Enable"]
#[inline(always)]
pub fn adie5(
self,
) -> crate::common::RegisterField<
5,
0x1,
1,
0,
adintcr::Adie5,
adintcr::Adie5,
Adintcr_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
5,
0x1,
1,
0,
adintcr::Adie5,
adintcr::Adie5,
Adintcr_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[doc = "Scan Group n Scan End Interrupt Enable"]
#[inline(always)]
pub fn adie6(
self,
) -> crate::common::RegisterField<
6,
0x1,
1,
0,
adintcr::Adie6,
adintcr::Adie6,
Adintcr_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
6,
0x1,
1,
0,
adintcr::Adie6,
adintcr::Adie6,
Adintcr_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[doc = "Scan Group n Scan End Interrupt Enable"]
#[inline(always)]
pub fn adie7(
self,
) -> crate::common::RegisterField<
7,
0x1,
1,
0,
adintcr::Adie7,
adintcr::Adie7,
Adintcr_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
7,
0x1,
1,
0,
adintcr::Adie7,
adintcr::Adie7,
Adintcr_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[doc = "Scan Group n Scan End Interrupt Enable"]
#[inline(always)]
pub fn adie8(
self,
) -> crate::common::RegisterField<
8,
0x1,
1,
0,
adintcr::Adie8,
adintcr::Adie8,
Adintcr_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
8,
0x1,
1,
0,
adintcr::Adie8,
adintcr::Adie8,
Adintcr_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
}
impl ::core::default::Default for Adintcr {
#[inline(always)]
fn default() -> Adintcr {
<crate::RegValueT<Adintcr_SPEC> as RegisterValue<_>>::new(0)
}
}
pub mod adintcr {
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Adie0_SPEC;
pub type Adie0 = crate::EnumBitfieldStruct<u8, Adie0_SPEC>;
impl Adie0 {
#[doc = "Disable scan end interrupt"]
pub const _0: Self = Self::new(0);
#[doc = "Enable scan end interrupt"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Adie1_SPEC;
pub type Adie1 = crate::EnumBitfieldStruct<u8, Adie1_SPEC>;
impl Adie1 {
#[doc = "Disable scan end interrupt"]
pub const _0: Self = Self::new(0);
#[doc = "Enable scan end interrupt"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Adie2_SPEC;
pub type Adie2 = crate::EnumBitfieldStruct<u8, Adie2_SPEC>;
impl Adie2 {
#[doc = "Disable scan end interrupt"]
pub const _0: Self = Self::new(0);
#[doc = "Enable scan end interrupt"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Adie3_SPEC;
pub type Adie3 = crate::EnumBitfieldStruct<u8, Adie3_SPEC>;
impl Adie3 {
#[doc = "Disable scan end interrupt"]
pub const _0: Self = Self::new(0);
#[doc = "Enable scan end interrupt"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Adie4_SPEC;
pub type Adie4 = crate::EnumBitfieldStruct<u8, Adie4_SPEC>;
impl Adie4 {
#[doc = "Disable scan end interrupt"]
pub const _0: Self = Self::new(0);
#[doc = "Enable scan end interrupt"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Adie5_SPEC;
pub type Adie5 = crate::EnumBitfieldStruct<u8, Adie5_SPEC>;
impl Adie5 {
#[doc = "Disable scan end interrupt"]
pub const _0: Self = Self::new(0);
#[doc = "Enable scan end interrupt"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Adie6_SPEC;
pub type Adie6 = crate::EnumBitfieldStruct<u8, Adie6_SPEC>;
impl Adie6 {
#[doc = "Disable scan end interrupt"]
pub const _0: Self = Self::new(0);
#[doc = "Enable scan end interrupt"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Adie7_SPEC;
pub type Adie7 = crate::EnumBitfieldStruct<u8, Adie7_SPEC>;
impl Adie7 {
#[doc = "Disable scan end interrupt"]
pub const _0: Self = Self::new(0);
#[doc = "Enable scan end interrupt"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Adie8_SPEC;
pub type Adie8 = crate::EnumBitfieldStruct<u8, Adie8_SPEC>;
impl Adie8 {
#[doc = "Disable scan end interrupt"]
pub const _0: Self = Self::new(0);
#[doc = "Enable scan end interrupt"]
pub const _1: Self = Self::new(1);
}
}
#[doc(hidden)]
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct Adswnr0_SPEC;
impl crate::sealed::RegSpec for Adswnr0_SPEC {
type DataType = u32;
}
#[doc = "A/D conversion times per scan Register 0"]
pub type Adswnr0 = crate::RegValueT<Adswnr0_SPEC>;
impl Adswnr0 {
#[doc = "Sweep Conversion Channel Number per scan"]
#[inline(always)]
pub fn swnum(
self,
) -> crate::common::RegisterField<0, 0x7, 1, 0, u8, u8, Adswnr0_SPEC, crate::common::RW> {
crate::common::RegisterField::<0,0x7,1,0,u8,u8,Adswnr0_SPEC,crate::common::RW>::from_register(self,0)
}
#[doc = "Blank Channel Sampling State Table Select"]
#[inline(always)]
pub fn bcsstsl(
self,
) -> crate::common::RegisterField<8, 0xf, 1, 0, u8, u8, Adswnr0_SPEC, crate::common::RW> {
crate::common::RegisterField::<8,0xf,1,0,u8,u8,Adswnr0_SPEC,crate::common::RW>::from_register(self,0)
}
#[doc = "Fixed channel Number"]
#[inline(always)]
pub fn swfix(
self,
) -> crate::common::RegisterField<
16,
0x3,
1,
0,
adswnr0::Swfix,
adswnr0::Swfix,
Adswnr0_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
16,
0x3,
1,
0,
adswnr0::Swfix,
adswnr0::Swfix,
Adswnr0_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[doc = "Non-Fixed Channel Number"]
#[inline(always)]
pub fn swnofix(
self,
) -> crate::common::RegisterField<
24,
0x7,
1,
0,
adswnr0::Swnofix,
adswnr0::Swnofix,
Adswnr0_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
24,
0x7,
1,
0,
adswnr0::Swnofix,
adswnr0::Swnofix,
Adswnr0_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
}
impl ::core::default::Default for Adswnr0 {
#[inline(always)]
fn default() -> Adswnr0 {
<crate::RegValueT<Adswnr0_SPEC> as RegisterValue<_>>::new(0)
}
}
pub mod adswnr0 {
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Swfix_SPEC;
pub type Swfix = crate::EnumBitfieldStruct<u8, Swfix_SPEC>;
impl Swfix {
#[doc = "1 fixed channel"]
pub const _0_X_0: Self = Self::new(0);
#[doc = "2 fixed channels"]
pub const _0_X_1: Self = Self::new(1);
#[doc = "3 fixed channels"]
pub const _0_X_2: Self = Self::new(2);
#[doc = "Setting prohibited"]
pub const _0_X_3: Self = Self::new(3);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Swnofix_SPEC;
pub type Swnofix = crate::EnumBitfieldStruct<u8, Swnofix_SPEC>;
impl Swnofix {
#[doc = "1 channels"]
pub const _0_X_1: Self = Self::new(1);
#[doc = "Setting prohibited"]
pub const OTHERS: Self = Self::new(0);
}
}
#[doc(hidden)]
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct Adswnr1_SPEC;
impl crate::sealed::RegSpec for Adswnr1_SPEC {
type DataType = u32;
}
#[doc = "A/D conversion times per scan Register 1"]
pub type Adswnr1 = crate::RegValueT<Adswnr1_SPEC>;
impl Adswnr1 {
#[doc = "Sweep Conversion Channel Number per scan"]
#[inline(always)]
pub fn swnum(
self,
) -> crate::common::RegisterField<0, 0x7, 1, 0, u8, u8, Adswnr1_SPEC, crate::common::RW> {
crate::common::RegisterField::<0,0x7,1,0,u8,u8,Adswnr1_SPEC,crate::common::RW>::from_register(self,0)
}
#[doc = "Blank Channel Sampling State Table Select"]
#[inline(always)]
pub fn bcsstsl(
self,
) -> crate::common::RegisterField<8, 0xf, 1, 0, u8, u8, Adswnr1_SPEC, crate::common::RW> {
crate::common::RegisterField::<8,0xf,1,0,u8,u8,Adswnr1_SPEC,crate::common::RW>::from_register(self,0)
}
#[doc = "Fixed channel Number"]
#[inline(always)]
pub fn swfix(
self,
) -> crate::common::RegisterField<
16,
0x3,
1,
0,
adswnr1::Swfix,
adswnr1::Swfix,
Adswnr1_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
16,
0x3,
1,
0,
adswnr1::Swfix,
adswnr1::Swfix,
Adswnr1_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[doc = "Non-Fixed Channel Number"]
#[inline(always)]
pub fn swnofix(
self,
) -> crate::common::RegisterField<
24,
0x7,
1,
0,
adswnr1::Swnofix,
adswnr1::Swnofix,
Adswnr1_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
24,
0x7,
1,
0,
adswnr1::Swnofix,
adswnr1::Swnofix,
Adswnr1_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
}
impl ::core::default::Default for Adswnr1 {
#[inline(always)]
fn default() -> Adswnr1 {
<crate::RegValueT<Adswnr1_SPEC> as RegisterValue<_>>::new(0)
}
}
pub mod adswnr1 {
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Swfix_SPEC;
pub type Swfix = crate::EnumBitfieldStruct<u8, Swfix_SPEC>;
impl Swfix {
#[doc = "1 fixed channel"]
pub const _0_X_0: Self = Self::new(0);
#[doc = "2 fixed channels"]
pub const _0_X_1: Self = Self::new(1);
#[doc = "3 fixed channels"]
pub const _0_X_2: Self = Self::new(2);
#[doc = "Setting prohibited"]
pub const _0_X_3: Self = Self::new(3);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Swnofix_SPEC;
pub type Swnofix = crate::EnumBitfieldStruct<u8, Swnofix_SPEC>;
impl Swnofix {
#[doc = "1 channels"]
pub const _0_X_1: Self = Self::new(1);
#[doc = "Setting prohibited"]
pub const OTHERS: Self = Self::new(0);
}
}
#[doc(hidden)]
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct Addeccr_SPEC;
impl crate::sealed::RegSpec for Addeccr_SPEC {
type DataType = u32;
}
#[doc = "One-channel Continuous Scan Mode Decimation Control Register"]
pub type Addeccr = crate::RegValueT<Addeccr_SPEC>;
impl Addeccr {
#[doc = "One-channel continuous scan mode output decimation setting for A/D converter unit 0"]
#[inline(always)]
pub fn dcim0(
self,
) -> crate::common::RegisterField<
0,
0x1f,
1,
0,
addeccr::Dcim0,
addeccr::Dcim0,
Addeccr_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
0,
0x1f,
1,
0,
addeccr::Dcim0,
addeccr::Dcim0,
Addeccr_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[doc = "One-channel continuous scan mode output decimation setting for A/D converter unit 1"]
#[inline(always)]
pub fn dcim1(
self,
) -> crate::common::RegisterField<
8,
0x1f,
1,
0,
addeccr::Dcim1,
addeccr::Dcim1,
Addeccr_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
8,
0x1f,
1,
0,
addeccr::Dcim1,
addeccr::Dcim1,
Addeccr_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
}
impl ::core::default::Default for Addeccr {
#[inline(always)]
fn default() -> Addeccr {
<crate::RegValueT<Addeccr_SPEC> as RegisterValue<_>>::new(0)
}
}
pub mod addeccr {
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Dcim0_SPEC;
pub type Dcim0 = crate::EnumBitfieldStruct<u8, Dcim0_SPEC>;
impl Dcim0 {
#[doc = "No decimation"]
pub const _0_X_0: Self = Self::new(0);
#[doc = "Output data once for every 4 conversions (thinned 3 times)"]
pub const _0_X_3: Self = Self::new(3);
#[doc = "Output data once for every 8 conversions (thinned out 7 times)"]
pub const _0_X_7: Self = Self::new(7);
#[doc = "Setting prohibited"]
pub const OTHERS: Self = Self::new(0);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Dcim1_SPEC;
pub type Dcim1 = crate::EnumBitfieldStruct<u8, Dcim1_SPEC>;
impl Dcim1 {
#[doc = "No decimation"]
pub const _0_X_0: Self = Self::new(0);
#[doc = "Output data once for every 4 conversions (thinned 3 times)"]
pub const _0_X_3: Self = Self::new(3);
#[doc = "Output data once for every 8 conversions (thinned out 7 times)"]
pub const _0_X_7: Self = Self::new(7);
#[doc = "Setting prohibited"]
pub const OTHERS: Self = Self::new(0);
}
}
#[doc(hidden)]
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct Adacmdr_SPEC;
impl crate::sealed::RegSpec for Adacmdr_SPEC {
type DataType = u32;
}
#[doc = "A/D Converter Accuracy Mode Register"]
pub type Adacmdr = crate::RegValueT<Adacmdr_SPEC>;
impl Adacmdr {
#[doc = "A/D converter unit 0 high accuracy mode setting"]
#[inline(always)]
pub fn adhacmd0(
self,
) -> crate::common::RegisterField<
0,
0x1,
1,
0,
adacmdr::Adhacmd0,
adacmdr::Adhacmd0,
Adacmdr_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
0,
0x1,
1,
0,
adacmdr::Adhacmd0,
adacmdr::Adhacmd0,
Adacmdr_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[doc = "A/D converter unit 1 high accuracy mode setting"]
#[inline(always)]
pub fn adhacmd1(
self,
) -> crate::common::RegisterField<
8,
0x1,
1,
0,
adacmdr::Adhacmd1,
adacmdr::Adhacmd1,
Adacmdr_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
8,
0x1,
1,
0,
adacmdr::Adhacmd1,
adacmdr::Adhacmd1,
Adacmdr_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
}
impl ::core::default::Default for Adacmdr {
#[inline(always)]
fn default() -> Adacmdr {
<crate::RegValueT<Adacmdr_SPEC> as RegisterValue<_>>::new(0)
}
}
pub mod adacmdr {
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Adhacmd0_SPEC;
pub type Adhacmd0 = crate::EnumBitfieldStruct<u8, Adhacmd0_SPEC>;
impl Adhacmd0 {
#[doc = "High accuracy mode of A/D converter is disabled"]
pub const _0: Self = Self::new(0);
#[doc = "High accuracy mode of A/D converter is enabled"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Adhacmd1_SPEC;
pub type Adhacmd1 = crate::EnumBitfieldStruct<u8, Adhacmd1_SPEC>;
impl Adhacmd1 {
#[doc = "High accuracy mode of A/D converter is disabled"]
pub const _0: Self = Self::new(0);
#[doc = "High accuracy mode of A/D converter is enabled"]
pub const _1: Self = Self::new(1);
}
}
#[doc(hidden)]
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct Adtrgext_SPEC;
impl crate::sealed::RegSpec for Adtrgext_SPEC {
type DataType = u32;
}
#[doc = "External Trigger Enable Register %s"]
pub type Adtrgext = crate::RegValueT<Adtrgext_SPEC>;
impl Adtrgext {
#[doc = "External Trigger Input 0 (ADTRG0) Enable"]
#[inline(always)]
pub fn trgext0(
self,
) -> crate::common::RegisterField<
0,
0x1,
1,
0,
adtrgext::Trgext0,
adtrgext::Trgext0,
Adtrgext_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
0,
0x1,
1,
0,
adtrgext::Trgext0,
adtrgext::Trgext0,
Adtrgext_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[doc = "External Trigger Input 1 (ADTRG1) Enable"]
#[inline(always)]
pub fn trgext1(
self,
) -> crate::common::RegisterField<
1,
0x1,
1,
0,
adtrgext::Trgext1,
adtrgext::Trgext1,
Adtrgext_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
1,
0x1,
1,
0,
adtrgext::Trgext1,
adtrgext::Trgext1,
Adtrgext_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
}
impl ::core::default::Default for Adtrgext {
#[inline(always)]
fn default() -> Adtrgext {
<crate::RegValueT<Adtrgext_SPEC> as RegisterValue<_>>::new(0)
}
}
pub mod adtrgext {
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Trgext0_SPEC;
pub type Trgext0 = crate::EnumBitfieldStruct<u8, Trgext0_SPEC>;
impl Trgext0 {
#[doc = "Disable ADTRG0"]
pub const _0: Self = Self::new(0);
#[doc = "Enable ADTRG0"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Trgext1_SPEC;
pub type Trgext1 = crate::EnumBitfieldStruct<u8, Trgext1_SPEC>;
impl Trgext1 {
#[doc = "Disable ADTRG1"]
pub const _0: Self = Self::new(0);
#[doc = "Enable ADTRG1"]
pub const _1: Self = Self::new(1);
}
}
#[doc(hidden)]
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct Adtrgelc_SPEC;
impl crate::sealed::RegSpec for Adtrgelc_SPEC {
type DataType = u32;
}
#[doc = "ELC Trigger Enable Register %s"]
pub type Adtrgelc = crate::RegValueT<Adtrgelc_SPEC>;
impl Adtrgelc {
#[doc = "ELC Trigger m Enable"]
#[inline(always)]
pub fn trgelc0(
self,
) -> crate::common::RegisterField<
0,
0x1,
1,
0,
adtrgelc::Trgelc0,
adtrgelc::Trgelc0,
Adtrgelc_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
0,
0x1,
1,
0,
adtrgelc::Trgelc0,
adtrgelc::Trgelc0,
Adtrgelc_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[doc = "ELC Trigger m Enable"]
#[inline(always)]
pub fn trgelc1(
self,
) -> crate::common::RegisterField<
1,
0x1,
1,
0,
adtrgelc::Trgelc1,
adtrgelc::Trgelc1,
Adtrgelc_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
1,
0x1,
1,
0,
adtrgelc::Trgelc1,
adtrgelc::Trgelc1,
Adtrgelc_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[doc = "ELC Trigger m Enable"]
#[inline(always)]
pub fn trgelc2(
self,
) -> crate::common::RegisterField<
2,
0x1,
1,
0,
adtrgelc::Trgelc2,
adtrgelc::Trgelc2,
Adtrgelc_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
2,
0x1,
1,
0,
adtrgelc::Trgelc2,
adtrgelc::Trgelc2,
Adtrgelc_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[doc = "ELC Trigger m Enable"]
#[inline(always)]
pub fn trgelc3(
self,
) -> crate::common::RegisterField<
3,
0x1,
1,
0,
adtrgelc::Trgelc3,
adtrgelc::Trgelc3,
Adtrgelc_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
3,
0x1,
1,
0,
adtrgelc::Trgelc3,
adtrgelc::Trgelc3,
Adtrgelc_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[doc = "ELC Trigger m Enable"]
#[inline(always)]
pub fn trgelc4(
self,
) -> crate::common::RegisterField<
4,
0x1,
1,
0,
adtrgelc::Trgelc4,
adtrgelc::Trgelc4,
Adtrgelc_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
4,
0x1,
1,
0,
adtrgelc::Trgelc4,
adtrgelc::Trgelc4,
Adtrgelc_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[doc = "ELC Trigger m Enable"]
#[inline(always)]
pub fn trgelc5(
self,
) -> crate::common::RegisterField<
5,
0x1,
1,
0,
adtrgelc::Trgelc5,
adtrgelc::Trgelc5,
Adtrgelc_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
5,
0x1,
1,
0,
adtrgelc::Trgelc5,
adtrgelc::Trgelc5,
Adtrgelc_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
}
impl ::core::default::Default for Adtrgelc {
#[inline(always)]
fn default() -> Adtrgelc {
<crate::RegValueT<Adtrgelc_SPEC> as RegisterValue<_>>::new(0)
}
}
pub mod adtrgelc {
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Trgelc0_SPEC;
pub type Trgelc0 = crate::EnumBitfieldStruct<u8, Trgelc0_SPEC>;
impl Trgelc0 {
#[doc = "Disable ELC Trigger m"]
pub const _0: Self = Self::new(0);
#[doc = "Enable ELC Trigger m"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Trgelc1_SPEC;
pub type Trgelc1 = crate::EnumBitfieldStruct<u8, Trgelc1_SPEC>;
impl Trgelc1 {
#[doc = "Disable ELC Trigger m"]
pub const _0: Self = Self::new(0);
#[doc = "Enable ELC Trigger m"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Trgelc2_SPEC;
pub type Trgelc2 = crate::EnumBitfieldStruct<u8, Trgelc2_SPEC>;
impl Trgelc2 {
#[doc = "Disable ELC Trigger m"]
pub const _0: Self = Self::new(0);
#[doc = "Enable ELC Trigger m"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Trgelc3_SPEC;
pub type Trgelc3 = crate::EnumBitfieldStruct<u8, Trgelc3_SPEC>;
impl Trgelc3 {
#[doc = "Disable ELC Trigger m"]
pub const _0: Self = Self::new(0);
#[doc = "Enable ELC Trigger m"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Trgelc4_SPEC;
pub type Trgelc4 = crate::EnumBitfieldStruct<u8, Trgelc4_SPEC>;
impl Trgelc4 {
#[doc = "Disable ELC Trigger m"]
pub const _0: Self = Self::new(0);
#[doc = "Enable ELC Trigger m"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Trgelc5_SPEC;
pub type Trgelc5 = crate::EnumBitfieldStruct<u8, Trgelc5_SPEC>;
impl Trgelc5 {
#[doc = "Disable ELC Trigger m"]
pub const _0: Self = Self::new(0);
#[doc = "Enable ELC Trigger m"]
pub const _1: Self = Self::new(1);
}
}
#[doc(hidden)]
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct Adtrggpt_SPEC;
impl crate::sealed::RegSpec for Adtrggpt_SPEC {
type DataType = u32;
}
#[doc = "GPT Trigger Enable Register %s"]
pub type Adtrggpt = crate::RegValueT<Adtrggpt_SPEC>;
impl Adtrggpt {
#[doc = "GPT channel m A/D Conversion Starting Request A Enable"]
#[inline(always)]
pub fn trggpta0(
self,
) -> crate::common::RegisterField<
0,
0x1,
1,
0,
adtrggpt::Trggpta0,
adtrggpt::Trggpta0,
Adtrggpt_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
0,
0x1,
1,
0,
adtrggpt::Trggpta0,
adtrggpt::Trggpta0,
Adtrggpt_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[doc = "GPT channel m A/D Conversion Starting Request A Enable"]
#[inline(always)]
pub fn trggpta1(
self,
) -> crate::common::RegisterField<
1,
0x1,
1,
0,
adtrggpt::Trggpta1,
adtrggpt::Trggpta1,
Adtrggpt_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
1,
0x1,
1,
0,
adtrggpt::Trggpta1,
adtrggpt::Trggpta1,
Adtrggpt_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[doc = "GPT channel m A/D Conversion Starting Request A Enable"]
#[inline(always)]
pub fn trggpta2(
self,
) -> crate::common::RegisterField<
2,
0x1,
1,
0,
adtrggpt::Trggpta2,
adtrggpt::Trggpta2,
Adtrggpt_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
2,
0x1,
1,
0,
adtrggpt::Trggpta2,
adtrggpt::Trggpta2,
Adtrggpt_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[doc = "GPT channel m A/D Conversion Starting Request A Enable"]
#[inline(always)]
pub fn trggpta3(
self,
) -> crate::common::RegisterField<
3,
0x1,
1,
0,
adtrggpt::Trggpta3,
adtrggpt::Trggpta3,
Adtrggpt_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
3,
0x1,
1,
0,
adtrggpt::Trggpta3,
adtrggpt::Trggpta3,
Adtrggpt_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[doc = "GPT channel m A/D Conversion Starting Request A Enable"]
#[inline(always)]
pub fn trggpta4(
self,
) -> crate::common::RegisterField<
4,
0x1,
1,
0,
adtrggpt::Trggpta4,
adtrggpt::Trggpta4,
Adtrggpt_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
4,
0x1,
1,
0,
adtrggpt::Trggpta4,
adtrggpt::Trggpta4,
Adtrggpt_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[doc = "GPT channel m A/D Conversion Starting Request A Enable"]
#[inline(always)]
pub fn trggpta5(
self,
) -> crate::common::RegisterField<
5,
0x1,
1,
0,
adtrggpt::Trggpta5,
adtrggpt::Trggpta5,
Adtrggpt_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
5,
0x1,
1,
0,
adtrggpt::Trggpta5,
adtrggpt::Trggpta5,
Adtrggpt_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[doc = "GPT channel m A/D Conversion Starting Request A Enable"]
#[inline(always)]
pub fn trggpta6(
self,
) -> crate::common::RegisterField<
6,
0x1,
1,
0,
adtrggpt::Trggpta6,
adtrggpt::Trggpta6,
Adtrggpt_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
6,
0x1,
1,
0,
adtrggpt::Trggpta6,
adtrggpt::Trggpta6,
Adtrggpt_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[doc = "GPT channel m A/D Conversion Starting Request A Enable"]
#[inline(always)]
pub fn trggpta7(
self,
) -> crate::common::RegisterField<
7,
0x1,
1,
0,
adtrggpt::Trggpta7,
adtrggpt::Trggpta7,
Adtrggpt_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
7,
0x1,
1,
0,
adtrggpt::Trggpta7,
adtrggpt::Trggpta7,
Adtrggpt_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[doc = "GPT channel m A/D Conversion Starting Request A Enable"]
#[inline(always)]
pub fn trggpta8(
self,
) -> crate::common::RegisterField<
8,
0x1,
1,
0,
adtrggpt::Trggpta8,
adtrggpt::Trggpta8,
Adtrggpt_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
8,
0x1,
1,
0,
adtrggpt::Trggpta8,
adtrggpt::Trggpta8,
Adtrggpt_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[doc = "GPT channel m A/D Conversion Starting Request A Enable"]
#[inline(always)]
pub fn trggpta9(
self,
) -> crate::common::RegisterField<
9,
0x1,
1,
0,
adtrggpt::Trggpta9,
adtrggpt::Trggpta9,
Adtrggpt_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
9,
0x1,
1,
0,
adtrggpt::Trggpta9,
adtrggpt::Trggpta9,
Adtrggpt_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[doc = "GPT channel m A/D Conversion Starting Request A Enable"]
#[inline(always)]
pub fn trggpta10(
self,
) -> crate::common::RegisterField<
10,
0x1,
1,
0,
adtrggpt::Trggpta10,
adtrggpt::Trggpta10,
Adtrggpt_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
10,
0x1,
1,
0,
adtrggpt::Trggpta10,
adtrggpt::Trggpta10,
Adtrggpt_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[doc = "GPT channel m A/D Conversion Starting Request A Enable"]
#[inline(always)]
pub fn trggpta11(
self,
) -> crate::common::RegisterField<
11,
0x1,
1,
0,
adtrggpt::Trggpta11,
adtrggpt::Trggpta11,
Adtrggpt_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
11,
0x1,
1,
0,
adtrggpt::Trggpta11,
adtrggpt::Trggpta11,
Adtrggpt_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[doc = "GPT channel m A/D Conversion Starting Request A Enable"]
#[inline(always)]
pub fn trggpta12(
self,
) -> crate::common::RegisterField<
12,
0x1,
1,
0,
adtrggpt::Trggpta12,
adtrggpt::Trggpta12,
Adtrggpt_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
12,
0x1,
1,
0,
adtrggpt::Trggpta12,
adtrggpt::Trggpta12,
Adtrggpt_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[doc = "GPT channel m A/D Conversion Starting Request A Enable"]
#[inline(always)]
pub fn trggpta13(
self,
) -> crate::common::RegisterField<
13,
0x1,
1,
0,
adtrggpt::Trggpta13,
adtrggpt::Trggpta13,
Adtrggpt_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
13,
0x1,
1,
0,
adtrggpt::Trggpta13,
adtrggpt::Trggpta13,
Adtrggpt_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[doc = "GPT channel m A/D Conversion Starting Request B Enable"]
#[inline(always)]
pub fn trggptb0(
self,
) -> crate::common::RegisterField<
16,
0x1,
1,
0,
adtrggpt::Trggptb0,
adtrggpt::Trggptb0,
Adtrggpt_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
16,
0x1,
1,
0,
adtrggpt::Trggptb0,
adtrggpt::Trggptb0,
Adtrggpt_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[doc = "GPT channel m A/D Conversion Starting Request B Enable"]
#[inline(always)]
pub fn trggptb1(
self,
) -> crate::common::RegisterField<
17,
0x1,
1,
0,
adtrggpt::Trggptb1,
adtrggpt::Trggptb1,
Adtrggpt_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
17,
0x1,
1,
0,
adtrggpt::Trggptb1,
adtrggpt::Trggptb1,
Adtrggpt_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[doc = "GPT channel m A/D Conversion Starting Request B Enable"]
#[inline(always)]
pub fn trggptb2(
self,
) -> crate::common::RegisterField<
18,
0x1,
1,
0,
adtrggpt::Trggptb2,
adtrggpt::Trggptb2,
Adtrggpt_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
18,
0x1,
1,
0,
adtrggpt::Trggptb2,
adtrggpt::Trggptb2,
Adtrggpt_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[doc = "GPT channel m A/D Conversion Starting Request B Enable"]
#[inline(always)]
pub fn trggptb3(
self,
) -> crate::common::RegisterField<
19,
0x1,
1,
0,
adtrggpt::Trggptb3,
adtrggpt::Trggptb3,
Adtrggpt_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
19,
0x1,
1,
0,
adtrggpt::Trggptb3,
adtrggpt::Trggptb3,
Adtrggpt_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[doc = "GPT channel m A/D Conversion Starting Request B Enable"]
#[inline(always)]
pub fn trggptb4(
self,
) -> crate::common::RegisterField<
20,
0x1,
1,
0,
adtrggpt::Trggptb4,
adtrggpt::Trggptb4,
Adtrggpt_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
20,
0x1,
1,
0,
adtrggpt::Trggptb4,
adtrggpt::Trggptb4,
Adtrggpt_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[doc = "GPT channel m A/D Conversion Starting Request B Enable"]
#[inline(always)]
pub fn trggptb5(
self,
) -> crate::common::RegisterField<
21,
0x1,
1,
0,
adtrggpt::Trggptb5,
adtrggpt::Trggptb5,
Adtrggpt_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
21,
0x1,
1,
0,
adtrggpt::Trggptb5,
adtrggpt::Trggptb5,
Adtrggpt_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[doc = "GPT channel m A/D Conversion Starting Request B Enable"]
#[inline(always)]
pub fn trggptb6(
self,
) -> crate::common::RegisterField<
22,
0x1,
1,
0,
adtrggpt::Trggptb6,
adtrggpt::Trggptb6,
Adtrggpt_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
22,
0x1,
1,
0,
adtrggpt::Trggptb6,
adtrggpt::Trggptb6,
Adtrggpt_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[doc = "GPT channel m A/D Conversion Starting Request B Enable"]
#[inline(always)]
pub fn trggptb7(
self,
) -> crate::common::RegisterField<
23,
0x1,
1,
0,
adtrggpt::Trggptb7,
adtrggpt::Trggptb7,
Adtrggpt_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
23,
0x1,
1,
0,
adtrggpt::Trggptb7,
adtrggpt::Trggptb7,
Adtrggpt_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[doc = "GPT channel m A/D Conversion Starting Request B Enable"]
#[inline(always)]
pub fn trggptb8(
self,
) -> crate::common::RegisterField<
24,
0x1,
1,
0,
adtrggpt::Trggptb8,
adtrggpt::Trggptb8,
Adtrggpt_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
24,
0x1,
1,
0,
adtrggpt::Trggptb8,
adtrggpt::Trggptb8,
Adtrggpt_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[doc = "GPT channel m A/D Conversion Starting Request B Enable"]
#[inline(always)]
pub fn trggptb9(
self,
) -> crate::common::RegisterField<
25,
0x1,
1,
0,
adtrggpt::Trggptb9,
adtrggpt::Trggptb9,
Adtrggpt_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
25,
0x1,
1,
0,
adtrggpt::Trggptb9,
adtrggpt::Trggptb9,
Adtrggpt_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[doc = "GPT channel m A/D Conversion Starting Request B Enable"]
#[inline(always)]
pub fn trggptb10(
self,
) -> crate::common::RegisterField<
26,
0x1,
1,
0,
adtrggpt::Trggptb10,
adtrggpt::Trggptb10,
Adtrggpt_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
26,
0x1,
1,
0,
adtrggpt::Trggptb10,
adtrggpt::Trggptb10,
Adtrggpt_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[doc = "GPT channel m A/D Conversion Starting Request B Enable"]
#[inline(always)]
pub fn trggptb11(
self,
) -> crate::common::RegisterField<
27,
0x1,
1,
0,
adtrggpt::Trggptb11,
adtrggpt::Trggptb11,
Adtrggpt_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
27,
0x1,
1,
0,
adtrggpt::Trggptb11,
adtrggpt::Trggptb11,
Adtrggpt_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[doc = "GPT channel m A/D Conversion Starting Request B Enable"]
#[inline(always)]
pub fn trggptb12(
self,
) -> crate::common::RegisterField<
28,
0x1,
1,
0,
adtrggpt::Trggptb12,
adtrggpt::Trggptb12,
Adtrggpt_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
28,
0x1,
1,
0,
adtrggpt::Trggptb12,
adtrggpt::Trggptb12,
Adtrggpt_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[doc = "GPT channel m A/D Conversion Starting Request B Enable"]
#[inline(always)]
pub fn trggptb13(
self,
) -> crate::common::RegisterField<
29,
0x1,
1,
0,
adtrggpt::Trggptb13,
adtrggpt::Trggptb13,
Adtrggpt_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
29,
0x1,
1,
0,
adtrggpt::Trggptb13,
adtrggpt::Trggptb13,
Adtrggpt_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
}
impl ::core::default::Default for Adtrggpt {
#[inline(always)]
fn default() -> Adtrggpt {
<crate::RegValueT<Adtrggpt_SPEC> as RegisterValue<_>>::new(0)
}
}
pub mod adtrggpt {
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Trggpta0_SPEC;
pub type Trggpta0 = crate::EnumBitfieldStruct<u8, Trggpta0_SPEC>;
impl Trggpta0 {
#[doc = "Disable the A/D conversion stating request A from GPT channel m"]
pub const _0: Self = Self::new(0);
#[doc = "Enable the A/D conversion stating request A from GPT channel m"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Trggpta1_SPEC;
pub type Trggpta1 = crate::EnumBitfieldStruct<u8, Trggpta1_SPEC>;
impl Trggpta1 {
#[doc = "Disable the A/D conversion stating request A from GPT channel m"]
pub const _0: Self = Self::new(0);
#[doc = "Enable the A/D conversion stating request A from GPT channel m"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Trggpta2_SPEC;
pub type Trggpta2 = crate::EnumBitfieldStruct<u8, Trggpta2_SPEC>;
impl Trggpta2 {
#[doc = "Disable the A/D conversion stating request A from GPT channel m"]
pub const _0: Self = Self::new(0);
#[doc = "Enable the A/D conversion stating request A from GPT channel m"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Trggpta3_SPEC;
pub type Trggpta3 = crate::EnumBitfieldStruct<u8, Trggpta3_SPEC>;
impl Trggpta3 {
#[doc = "Disable the A/D conversion stating request A from GPT channel m"]
pub const _0: Self = Self::new(0);
#[doc = "Enable the A/D conversion stating request A from GPT channel m"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Trggpta4_SPEC;
pub type Trggpta4 = crate::EnumBitfieldStruct<u8, Trggpta4_SPEC>;
impl Trggpta4 {
#[doc = "Disable the A/D conversion stating request A from GPT channel m"]
pub const _0: Self = Self::new(0);
#[doc = "Enable the A/D conversion stating request A from GPT channel m"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Trggpta5_SPEC;
pub type Trggpta5 = crate::EnumBitfieldStruct<u8, Trggpta5_SPEC>;
impl Trggpta5 {
#[doc = "Disable the A/D conversion stating request A from GPT channel m"]
pub const _0: Self = Self::new(0);
#[doc = "Enable the A/D conversion stating request A from GPT channel m"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Trggpta6_SPEC;
pub type Trggpta6 = crate::EnumBitfieldStruct<u8, Trggpta6_SPEC>;
impl Trggpta6 {
#[doc = "Disable the A/D conversion stating request A from GPT channel m"]
pub const _0: Self = Self::new(0);
#[doc = "Enable the A/D conversion stating request A from GPT channel m"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Trggpta7_SPEC;
pub type Trggpta7 = crate::EnumBitfieldStruct<u8, Trggpta7_SPEC>;
impl Trggpta7 {
#[doc = "Disable the A/D conversion stating request A from GPT channel m"]
pub const _0: Self = Self::new(0);
#[doc = "Enable the A/D conversion stating request A from GPT channel m"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Trggpta8_SPEC;
pub type Trggpta8 = crate::EnumBitfieldStruct<u8, Trggpta8_SPEC>;
impl Trggpta8 {
#[doc = "Disable the A/D conversion stating request A from GPT channel m"]
pub const _0: Self = Self::new(0);
#[doc = "Enable the A/D conversion stating request A from GPT channel m"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Trggpta9_SPEC;
pub type Trggpta9 = crate::EnumBitfieldStruct<u8, Trggpta9_SPEC>;
impl Trggpta9 {
#[doc = "Disable the A/D conversion stating request A from GPT channel m"]
pub const _0: Self = Self::new(0);
#[doc = "Enable the A/D conversion stating request A from GPT channel m"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Trggpta10_SPEC;
pub type Trggpta10 = crate::EnumBitfieldStruct<u8, Trggpta10_SPEC>;
impl Trggpta10 {
#[doc = "Disable the A/D conversion stating request A from GPT channel m"]
pub const _0: Self = Self::new(0);
#[doc = "Enable the A/D conversion stating request A from GPT channel m"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Trggpta11_SPEC;
pub type Trggpta11 = crate::EnumBitfieldStruct<u8, Trggpta11_SPEC>;
impl Trggpta11 {
#[doc = "Disable the A/D conversion stating request A from GPT channel m"]
pub const _0: Self = Self::new(0);
#[doc = "Enable the A/D conversion stating request A from GPT channel m"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Trggpta12_SPEC;
pub type Trggpta12 = crate::EnumBitfieldStruct<u8, Trggpta12_SPEC>;
impl Trggpta12 {
#[doc = "Disable the A/D conversion stating request A from GPT channel m"]
pub const _0: Self = Self::new(0);
#[doc = "Enable the A/D conversion stating request A from GPT channel m"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Trggpta13_SPEC;
pub type Trggpta13 = crate::EnumBitfieldStruct<u8, Trggpta13_SPEC>;
impl Trggpta13 {
#[doc = "Disable the A/D conversion stating request A from GPT channel m"]
pub const _0: Self = Self::new(0);
#[doc = "Enable the A/D conversion stating request A from GPT channel m"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Trggptb0_SPEC;
pub type Trggptb0 = crate::EnumBitfieldStruct<u8, Trggptb0_SPEC>;
impl Trggptb0 {
#[doc = "Disable the A/D conversion stating request B from GPT channel m"]
pub const _0: Self = Self::new(0);
#[doc = "Enable the A/D conversion stating request B from GPT channel m"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Trggptb1_SPEC;
pub type Trggptb1 = crate::EnumBitfieldStruct<u8, Trggptb1_SPEC>;
impl Trggptb1 {
#[doc = "Disable the A/D conversion stating request B from GPT channel m"]
pub const _0: Self = Self::new(0);
#[doc = "Enable the A/D conversion stating request B from GPT channel m"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Trggptb2_SPEC;
pub type Trggptb2 = crate::EnumBitfieldStruct<u8, Trggptb2_SPEC>;
impl Trggptb2 {
#[doc = "Disable the A/D conversion stating request B from GPT channel m"]
pub const _0: Self = Self::new(0);
#[doc = "Enable the A/D conversion stating request B from GPT channel m"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Trggptb3_SPEC;
pub type Trggptb3 = crate::EnumBitfieldStruct<u8, Trggptb3_SPEC>;
impl Trggptb3 {
#[doc = "Disable the A/D conversion stating request B from GPT channel m"]
pub const _0: Self = Self::new(0);
#[doc = "Enable the A/D conversion stating request B from GPT channel m"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Trggptb4_SPEC;
pub type Trggptb4 = crate::EnumBitfieldStruct<u8, Trggptb4_SPEC>;
impl Trggptb4 {
#[doc = "Disable the A/D conversion stating request B from GPT channel m"]
pub const _0: Self = Self::new(0);
#[doc = "Enable the A/D conversion stating request B from GPT channel m"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Trggptb5_SPEC;
pub type Trggptb5 = crate::EnumBitfieldStruct<u8, Trggptb5_SPEC>;
impl Trggptb5 {
#[doc = "Disable the A/D conversion stating request B from GPT channel m"]
pub const _0: Self = Self::new(0);
#[doc = "Enable the A/D conversion stating request B from GPT channel m"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Trggptb6_SPEC;
pub type Trggptb6 = crate::EnumBitfieldStruct<u8, Trggptb6_SPEC>;
impl Trggptb6 {
#[doc = "Disable the A/D conversion stating request B from GPT channel m"]
pub const _0: Self = Self::new(0);
#[doc = "Enable the A/D conversion stating request B from GPT channel m"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Trggptb7_SPEC;
pub type Trggptb7 = crate::EnumBitfieldStruct<u8, Trggptb7_SPEC>;
impl Trggptb7 {
#[doc = "Disable the A/D conversion stating request B from GPT channel m"]
pub const _0: Self = Self::new(0);
#[doc = "Enable the A/D conversion stating request B from GPT channel m"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Trggptb8_SPEC;
pub type Trggptb8 = crate::EnumBitfieldStruct<u8, Trggptb8_SPEC>;
impl Trggptb8 {
#[doc = "Disable the A/D conversion stating request B from GPT channel m"]
pub const _0: Self = Self::new(0);
#[doc = "Enable the A/D conversion stating request B from GPT channel m"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Trggptb9_SPEC;
pub type Trggptb9 = crate::EnumBitfieldStruct<u8, Trggptb9_SPEC>;
impl Trggptb9 {
#[doc = "Disable the A/D conversion stating request B from GPT channel m"]
pub const _0: Self = Self::new(0);
#[doc = "Enable the A/D conversion stating request B from GPT channel m"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Trggptb10_SPEC;
pub type Trggptb10 = crate::EnumBitfieldStruct<u8, Trggptb10_SPEC>;
impl Trggptb10 {
#[doc = "Disable the A/D conversion stating request B from GPT channel m"]
pub const _0: Self = Self::new(0);
#[doc = "Enable the A/D conversion stating request B from GPT channel m"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Trggptb11_SPEC;
pub type Trggptb11 = crate::EnumBitfieldStruct<u8, Trggptb11_SPEC>;
impl Trggptb11 {
#[doc = "Disable the A/D conversion stating request B from GPT channel m"]
pub const _0: Self = Self::new(0);
#[doc = "Enable the A/D conversion stating request B from GPT channel m"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Trggptb12_SPEC;
pub type Trggptb12 = crate::EnumBitfieldStruct<u8, Trggptb12_SPEC>;
impl Trggptb12 {
#[doc = "Disable the A/D conversion stating request B from GPT channel m"]
pub const _0: Self = Self::new(0);
#[doc = "Enable the A/D conversion stating request B from GPT channel m"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Trggptb13_SPEC;
pub type Trggptb13 = crate::EnumBitfieldStruct<u8, Trggptb13_SPEC>;
impl Trggptb13 {
#[doc = "Disable the A/D conversion stating request B from GPT channel m"]
pub const _0: Self = Self::new(0);
#[doc = "Enable the A/D conversion stating request B from GPT channel m"]
pub const _1: Self = Self::new(1);
}
}
#[doc(hidden)]
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct Adtrgdlr0_SPEC;
impl crate::sealed::RegSpec for Adtrgdlr0_SPEC {
type DataType = u32;
}
#[doc = "A/D Conversion Start Trigger Delay Register 0"]
pub type Adtrgdlr0 = crate::RegValueT<Adtrgdlr0_SPEC>;
impl Adtrgdlr0 {
#[doc = "Scan Group 0 Trigger Input Delay Configuration"]
#[inline(always)]
pub fn trgdly0(
self,
) -> crate::common::RegisterField<0, 0xff, 1, 0, u8, u8, Adtrgdlr0_SPEC, crate::common::RW>
{
crate::common::RegisterField::<0,0xff,1,0,u8,u8,Adtrgdlr0_SPEC,crate::common::RW>::from_register(self,0)
}
#[doc = "Scan Group 1 Trigger Input Delay Configuration"]
#[inline(always)]
pub fn trgdly1(
self,
) -> crate::common::RegisterField<16, 0xff, 1, 0, u8, u8, Adtrgdlr0_SPEC, crate::common::RW>
{
crate::common::RegisterField::<16,0xff,1,0,u8,u8,Adtrgdlr0_SPEC,crate::common::RW>::from_register(self,0)
}
}
impl ::core::default::Default for Adtrgdlr0 {
#[inline(always)]
fn default() -> Adtrgdlr0 {
<crate::RegValueT<Adtrgdlr0_SPEC> as RegisterValue<_>>::new(0)
}
}
#[doc(hidden)]
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct Adtrgdlr1_SPEC;
impl crate::sealed::RegSpec for Adtrgdlr1_SPEC {
type DataType = u32;
}
#[doc = "A/D Conversion Start Trigger Delay Register 1"]
pub type Adtrgdlr1 = crate::RegValueT<Adtrgdlr1_SPEC>;
impl Adtrgdlr1 {
#[doc = "Scan Group 2 Trigger Input Delay Configuration"]
#[inline(always)]
pub fn trgdly2(
self,
) -> crate::common::RegisterField<0, 0xff, 1, 0, u8, u8, Adtrgdlr1_SPEC, crate::common::RW>
{
crate::common::RegisterField::<0,0xff,1,0,u8,u8,Adtrgdlr1_SPEC,crate::common::RW>::from_register(self,0)
}
#[doc = "Scan Group 3 Trigger Input Delay Configuration"]
#[inline(always)]
pub fn trgdly3(
self,
) -> crate::common::RegisterField<16, 0xff, 1, 0, u8, u8, Adtrgdlr1_SPEC, crate::common::RW>
{
crate::common::RegisterField::<16,0xff,1,0,u8,u8,Adtrgdlr1_SPEC,crate::common::RW>::from_register(self,0)
}
}
impl ::core::default::Default for Adtrgdlr1 {
#[inline(always)]
fn default() -> Adtrgdlr1 {
<crate::RegValueT<Adtrgdlr1_SPEC> as RegisterValue<_>>::new(0)
}
}
#[doc(hidden)]
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct Adtrgdlr2_SPEC;
impl crate::sealed::RegSpec for Adtrgdlr2_SPEC {
type DataType = u32;
}
#[doc = "A/D Conversion Start Trigger Delay Register 2"]
pub type Adtrgdlr2 = crate::RegValueT<Adtrgdlr2_SPEC>;
impl Adtrgdlr2 {
#[doc = "Scan Group 4 Trigger Input Delay Configuration"]
#[inline(always)]
pub fn trgdly4(
self,
) -> crate::common::RegisterField<0, 0xff, 1, 0, u8, u8, Adtrgdlr2_SPEC, crate::common::RW>
{
crate::common::RegisterField::<0,0xff,1,0,u8,u8,Adtrgdlr2_SPEC,crate::common::RW>::from_register(self,0)
}
#[doc = "Scan Group 5 Trigger Input Delay Configuration"]
#[inline(always)]
pub fn trgdly5(
self,
) -> crate::common::RegisterField<16, 0xff, 1, 0, u8, u8, Adtrgdlr2_SPEC, crate::common::RW>
{
crate::common::RegisterField::<16,0xff,1,0,u8,u8,Adtrgdlr2_SPEC,crate::common::RW>::from_register(self,0)
}
}
impl ::core::default::Default for Adtrgdlr2 {
#[inline(always)]
fn default() -> Adtrgdlr2 {
<crate::RegValueT<Adtrgdlr2_SPEC> as RegisterValue<_>>::new(0)
}
}
#[doc(hidden)]
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct Adtrgdlr3_SPEC;
impl crate::sealed::RegSpec for Adtrgdlr3_SPEC {
type DataType = u32;
}
#[doc = "A/D Conversion Start Trigger Delay Register 3"]
pub type Adtrgdlr3 = crate::RegValueT<Adtrgdlr3_SPEC>;
impl Adtrgdlr3 {
#[doc = "Scan Group 6 Trigger Input Delay Configuration"]
#[inline(always)]
pub fn trgdly6(
self,
) -> crate::common::RegisterField<0, 0xff, 1, 0, u8, u8, Adtrgdlr3_SPEC, crate::common::RW>
{
crate::common::RegisterField::<0,0xff,1,0,u8,u8,Adtrgdlr3_SPEC,crate::common::RW>::from_register(self,0)
}
#[doc = "Scan Group 7 Trigger Input Delay Configuration"]
#[inline(always)]
pub fn trgdly7(
self,
) -> crate::common::RegisterField<16, 0xff, 1, 0, u8, u8, Adtrgdlr3_SPEC, crate::common::RW>
{
crate::common::RegisterField::<16,0xff,1,0,u8,u8,Adtrgdlr3_SPEC,crate::common::RW>::from_register(self,0)
}
}
impl ::core::default::Default for Adtrgdlr3 {
#[inline(always)]
fn default() -> Adtrgdlr3 {
<crate::RegValueT<Adtrgdlr3_SPEC> as RegisterValue<_>>::new(0)
}
}
#[doc(hidden)]
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct Adtrgdlr4_SPEC;
impl crate::sealed::RegSpec for Adtrgdlr4_SPEC {
type DataType = u32;
}
#[doc = "A/D Conversion Start Trigger Delay Register 4"]
pub type Adtrgdlr4 = crate::RegValueT<Adtrgdlr4_SPEC>;
impl Adtrgdlr4 {
#[doc = "Scan Group 8 Trigger Input Delay Configuration"]
#[inline(always)]
pub fn trgdly8(
self,
) -> crate::common::RegisterField<0, 0xff, 1, 0, u8, u8, Adtrgdlr4_SPEC, crate::common::RW>
{
crate::common::RegisterField::<0,0xff,1,0,u8,u8,Adtrgdlr4_SPEC,crate::common::RW>::from_register(self,0)
}
}
impl ::core::default::Default for Adtrgdlr4 {
#[inline(always)]
fn default() -> Adtrgdlr4 {
<crate::RegValueT<Adtrgdlr4_SPEC> as RegisterValue<_>>::new(0)
}
}
#[doc(hidden)]
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct Adsgdcr_SPEC;
impl crate::sealed::RegSpec for Adsgdcr_SPEC {
type DataType = u32;
}
#[doc = "Scan Group Diagnosis Function Control Register %s"]
pub type Adsgdcr = crate::RegValueT<Adsgdcr_SPEC>;
impl Adsgdcr {
#[doc = "Self-diagnosis Mode Selection"]
#[inline(always)]
pub fn diagval(
self,
) -> crate::common::RegisterField<
0,
0x7,
1,
0,
adsgdcr::Diagval,
adsgdcr::Diagval,
Adsgdcr_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
0,
0x7,
1,
0,
adsgdcr::Diagval,
adsgdcr::Diagval,
Adsgdcr_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[doc = "Disconnection Detection Assist Enable"]
#[inline(always)]
pub fn addisen(
self,
) -> crate::common::RegisterField<
16,
0x1,
1,
0,
adsgdcr::Addisen,
adsgdcr::Addisen,
Adsgdcr_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
16,
0x1,
1,
0,
adsgdcr::Addisen,
adsgdcr::Addisen,
Adsgdcr_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[doc = "Disconnection Detection Assist Mode Selection"]
#[inline(always)]
pub fn addisp(
self,
) -> crate::common::RegisterField<
20,
0x1,
1,
0,
adsgdcr::Addisp,
adsgdcr::Addisp,
Adsgdcr_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
20,
0x1,
1,
0,
adsgdcr::Addisp,
adsgdcr::Addisp,
Adsgdcr_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[doc = "Disconnection Detection Assist Mode Selection"]
#[inline(always)]
pub fn addisn(
self,
) -> crate::common::RegisterField<
21,
0x1,
1,
0,
adsgdcr::Addisn,
adsgdcr::Addisn,
Adsgdcr_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
21,
0x1,
1,
0,
adsgdcr::Addisn,
adsgdcr::Addisn,
Adsgdcr_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[doc = "Disconnection Detection Assist Period"]
#[inline(always)]
pub fn adndis(
self,
) -> crate::common::RegisterField<
24,
0xff,
1,
0,
adsgdcr::Adndis,
adsgdcr::Adndis,
Adsgdcr_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
24,
0xff,
1,
0,
adsgdcr::Adndis,
adsgdcr::Adndis,
Adsgdcr_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
}
impl ::core::default::Default for Adsgdcr {
#[inline(always)]
fn default() -> Adsgdcr {
<crate::RegValueT<Adsgdcr_SPEC> as RegisterValue<_>>::new(0)
}
}
pub mod adsgdcr {
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Diagval_SPEC;
pub type Diagval = crate::EnumBitfieldStruct<u8, Diagval_SPEC>;
impl Diagval {
#[doc = "Set when any self-diagnosis channel are not included. Setting prohibited when any self-diagnosis channels are included."]
pub const _000: Self = Self::new(0);
#[doc = "Self-diagnosis mode 1"]
pub const _100: Self = Self::new(4);
#[doc = "Self-diagnosis mode 2"]
pub const _101: Self = Self::new(5);
#[doc = "Self-diagnosis mode 3"]
pub const _110: Self = Self::new(6);
#[doc = "Setting prohibited"]
pub const OTHERS: Self = Self::new(0);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Addisen_SPEC;
pub type Addisen = crate::EnumBitfieldStruct<u8, Addisen_SPEC>;
impl Addisen {
#[doc = "Disable the disconnection detection assist function"]
pub const _0: Self = Self::new(0);
#[doc = "Enable the disconnection detection assist function"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Addisp_SPEC;
pub type Addisp = crate::EnumBitfieldStruct<u8, Addisp_SPEC>;
impl Addisp {
#[doc = "Discharge"]
pub const _0: Self = Self::new(0);
#[doc = "Precharge"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Addisn_SPEC;
pub type Addisn = crate::EnumBitfieldStruct<u8, Addisn_SPEC>;
impl Addisn {
#[doc = "Discharge"]
pub const _0: Self = Self::new(0);
#[doc = "Precharge"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Adndis_SPEC;
pub type Adndis = crate::EnumBitfieldStruct<u8, Adndis_SPEC>;
impl Adndis {
#[doc = "Setting prohibited when the disconnection detection assist function is enabled"]
pub const _0_X_0: Self = Self::new(0);
#[doc = "Setting prohibited"]
pub const _0_X_1: Self = Self::new(1);
#[doc = "Setting prohibited"]
pub const _0_X_2: Self = Self::new(2);
#[doc = "Setting prohibited"]
pub const _0_X_3: Self = Self::new(3);
#[doc = "The number of states for the discharge or precharge period. The number of states actually valid in the operation is the value of the register setting minus one."]
pub const OTHERS: Self = Self::new(0);
}
}
#[doc(hidden)]
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct Adsstr0_SPEC;
impl crate::sealed::RegSpec for Adsstr0_SPEC {
type DataType = u32;
}
#[doc = "Sampling State Table Register 0"]
pub type Adsstr0 = crate::RegValueT<Adsstr0_SPEC>;
impl Adsstr0 {
#[doc = "Sampling State Table 0"]
#[inline(always)]
pub fn sst0(
self,
) -> crate::common::RegisterField<0, 0x3ff, 1, 0, u16, u16, Adsstr0_SPEC, crate::common::RW>
{
crate::common::RegisterField::<0,0x3ff,1,0,u16,u16,Adsstr0_SPEC,crate::common::RW>::from_register(self,0)
}
#[doc = "Sampling State Table 1"]
#[inline(always)]
pub fn sst1(
self,
) -> crate::common::RegisterField<16, 0x3ff, 1, 0, u16, u16, Adsstr0_SPEC, crate::common::RW>
{
crate::common::RegisterField::<16,0x3ff,1,0,u16,u16,Adsstr0_SPEC,crate::common::RW>::from_register(self,0)
}
}
impl ::core::default::Default for Adsstr0 {
#[inline(always)]
fn default() -> Adsstr0 {
<crate::RegValueT<Adsstr0_SPEC> as RegisterValue<_>>::new(131074)
}
}
#[doc(hidden)]
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct Adsstr1_SPEC;
impl crate::sealed::RegSpec for Adsstr1_SPEC {
type DataType = u32;
}
#[doc = "Sampling State Table Register 1"]
pub type Adsstr1 = crate::RegValueT<Adsstr1_SPEC>;
impl Adsstr1 {
#[doc = "Sampling State Table 2"]
#[inline(always)]
pub fn sst2(
self,
) -> crate::common::RegisterField<0, 0x3ff, 1, 0, u16, u16, Adsstr1_SPEC, crate::common::RW>
{
crate::common::RegisterField::<0,0x3ff,1,0,u16,u16,Adsstr1_SPEC,crate::common::RW>::from_register(self,0)
}
#[doc = "Sampling State Table 3"]
#[inline(always)]
pub fn sst3(
self,
) -> crate::common::RegisterField<16, 0x3ff, 1, 0, u16, u16, Adsstr1_SPEC, crate::common::RW>
{
crate::common::RegisterField::<16,0x3ff,1,0,u16,u16,Adsstr1_SPEC,crate::common::RW>::from_register(self,0)
}
}
impl ::core::default::Default for Adsstr1 {
#[inline(always)]
fn default() -> Adsstr1 {
<crate::RegValueT<Adsstr1_SPEC> as RegisterValue<_>>::new(131074)
}
}
#[doc(hidden)]
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct Adsstr2_SPEC;
impl crate::sealed::RegSpec for Adsstr2_SPEC {
type DataType = u32;
}
#[doc = "Sampling State Table Register 2"]
pub type Adsstr2 = crate::RegValueT<Adsstr2_SPEC>;
impl Adsstr2 {
#[doc = "Sampling State Table 4"]
#[inline(always)]
pub fn sst4(
self,
) -> crate::common::RegisterField<0, 0x3ff, 1, 0, u16, u16, Adsstr2_SPEC, crate::common::RW>
{
crate::common::RegisterField::<0,0x3ff,1,0,u16,u16,Adsstr2_SPEC,crate::common::RW>::from_register(self,0)
}
#[doc = "Sampling State Table 5"]
#[inline(always)]
pub fn sst5(
self,
) -> crate::common::RegisterField<16, 0x3ff, 1, 0, u16, u16, Adsstr2_SPEC, crate::common::RW>
{
crate::common::RegisterField::<16,0x3ff,1,0,u16,u16,Adsstr2_SPEC,crate::common::RW>::from_register(self,0)
}
}
impl ::core::default::Default for Adsstr2 {
#[inline(always)]
fn default() -> Adsstr2 {
<crate::RegValueT<Adsstr2_SPEC> as RegisterValue<_>>::new(131074)
}
}
#[doc(hidden)]
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct Adsstr3_SPEC;
impl crate::sealed::RegSpec for Adsstr3_SPEC {
type DataType = u32;
}
#[doc = "Sampling State Table Register 3"]
pub type Adsstr3 = crate::RegValueT<Adsstr3_SPEC>;
impl Adsstr3 {
#[doc = "Sampling State Table 6"]
#[inline(always)]
pub fn sst6(
self,
) -> crate::common::RegisterField<0, 0x3ff, 1, 0, u16, u16, Adsstr3_SPEC, crate::common::RW>
{
crate::common::RegisterField::<0,0x3ff,1,0,u16,u16,Adsstr3_SPEC,crate::common::RW>::from_register(self,0)
}
#[doc = "Sampling State Table 7"]
#[inline(always)]
pub fn sst7(
self,
) -> crate::common::RegisterField<16, 0x3ff, 1, 0, u16, u16, Adsstr3_SPEC, crate::common::RW>
{
crate::common::RegisterField::<16,0x3ff,1,0,u16,u16,Adsstr3_SPEC,crate::common::RW>::from_register(self,0)
}
}
impl ::core::default::Default for Adsstr3 {
#[inline(always)]
fn default() -> Adsstr3 {
<crate::RegValueT<Adsstr3_SPEC> as RegisterValue<_>>::new(131074)
}
}
#[doc(hidden)]
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct Adsstr4_SPEC;
impl crate::sealed::RegSpec for Adsstr4_SPEC {
type DataType = u32;
}
#[doc = "Sampling State Table Register 4"]
pub type Adsstr4 = crate::RegValueT<Adsstr4_SPEC>;
impl Adsstr4 {
#[doc = "Sampling State Table 8"]
#[inline(always)]
pub fn sst8(
self,
) -> crate::common::RegisterField<0, 0x3ff, 1, 0, u16, u16, Adsstr4_SPEC, crate::common::RW>
{
crate::common::RegisterField::<0,0x3ff,1,0,u16,u16,Adsstr4_SPEC,crate::common::RW>::from_register(self,0)
}
#[doc = "Sampling State Table 9"]
#[inline(always)]
pub fn sst9(
self,
) -> crate::common::RegisterField<16, 0x3ff, 1, 0, u16, u16, Adsstr4_SPEC, crate::common::RW>
{
crate::common::RegisterField::<16,0x3ff,1,0,u16,u16,Adsstr4_SPEC,crate::common::RW>::from_register(self,0)
}
}
impl ::core::default::Default for Adsstr4 {
#[inline(always)]
fn default() -> Adsstr4 {
<crate::RegValueT<Adsstr4_SPEC> as RegisterValue<_>>::new(131074)
}
}
#[doc(hidden)]
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct Adsstr5_SPEC;
impl crate::sealed::RegSpec for Adsstr5_SPEC {
type DataType = u32;
}
#[doc = "Sampling State Table Register 5"]
pub type Adsstr5 = crate::RegValueT<Adsstr5_SPEC>;
impl Adsstr5 {
#[doc = "Sampling State Table 10"]
#[inline(always)]
pub fn sst10(
self,
) -> crate::common::RegisterField<0, 0x3ff, 1, 0, u16, u16, Adsstr5_SPEC, crate::common::RW>
{
crate::common::RegisterField::<0,0x3ff,1,0,u16,u16,Adsstr5_SPEC,crate::common::RW>::from_register(self,0)
}
#[doc = "Sampling State Table 11"]
#[inline(always)]
pub fn sst11(
self,
) -> crate::common::RegisterField<16, 0x3ff, 1, 0, u16, u16, Adsstr5_SPEC, crate::common::RW>
{
crate::common::RegisterField::<16,0x3ff,1,0,u16,u16,Adsstr5_SPEC,crate::common::RW>::from_register(self,0)
}
}
impl ::core::default::Default for Adsstr5 {
#[inline(always)]
fn default() -> Adsstr5 {
<crate::RegValueT<Adsstr5_SPEC> as RegisterValue<_>>::new(131074)
}
}
#[doc(hidden)]
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct Adsstr6_SPEC;
impl crate::sealed::RegSpec for Adsstr6_SPEC {
type DataType = u32;
}
#[doc = "Sampling State Table Register 6"]
pub type Adsstr6 = crate::RegValueT<Adsstr6_SPEC>;
impl Adsstr6 {
#[doc = "Sampling State Table 12"]
#[inline(always)]
pub fn sst12(
self,
) -> crate::common::RegisterField<0, 0x3ff, 1, 0, u16, u16, Adsstr6_SPEC, crate::common::RW>
{
crate::common::RegisterField::<0,0x3ff,1,0,u16,u16,Adsstr6_SPEC,crate::common::RW>::from_register(self,0)
}
#[doc = "Sampling State Table 13"]
#[inline(always)]
pub fn sst13(
self,
) -> crate::common::RegisterField<16, 0x3ff, 1, 0, u16, u16, Adsstr6_SPEC, crate::common::RW>
{
crate::common::RegisterField::<16,0x3ff,1,0,u16,u16,Adsstr6_SPEC,crate::common::RW>::from_register(self,0)
}
}
impl ::core::default::Default for Adsstr6 {
#[inline(always)]
fn default() -> Adsstr6 {
<crate::RegValueT<Adsstr6_SPEC> as RegisterValue<_>>::new(131074)
}
}
#[doc(hidden)]
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct Adsstr7_SPEC;
impl crate::sealed::RegSpec for Adsstr7_SPEC {
type DataType = u32;
}
#[doc = "Sampling State Table Register 7"]
pub type Adsstr7 = crate::RegValueT<Adsstr7_SPEC>;
impl Adsstr7 {
#[doc = "Sampling State Table 14"]
#[inline(always)]
pub fn sst14(
self,
) -> crate::common::RegisterField<0, 0x3ff, 1, 0, u16, u16, Adsstr7_SPEC, crate::common::RW>
{
crate::common::RegisterField::<0,0x3ff,1,0,u16,u16,Adsstr7_SPEC,crate::common::RW>::from_register(self,0)
}
#[doc = "Sampling State Table 15"]
#[inline(always)]
pub fn sst15(
self,
) -> crate::common::RegisterField<16, 0x3ff, 1, 0, u16, u16, Adsstr7_SPEC, crate::common::RW>
{
crate::common::RegisterField::<16,0x3ff,1,0,u16,u16,Adsstr7_SPEC,crate::common::RW>::from_register(self,0)
}
}
impl ::core::default::Default for Adsstr7 {
#[inline(always)]
fn default() -> Adsstr7 {
<crate::RegValueT<Adsstr7_SPEC> as RegisterValue<_>>::new(131074)
}
}
#[doc(hidden)]
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct Adcnvstr_SPEC;
impl crate::sealed::RegSpec for Adcnvstr_SPEC {
type DataType = u32;
}
#[doc = "A/D Conversion State Register"]
pub type Adcnvstr = crate::RegValueT<Adcnvstr_SPEC>;
impl Adcnvstr {
#[doc = "A/D Converter Unit 0 (ADC0)"]
#[inline(always)]
pub fn cst0(
self,
) -> crate::common::RegisterField<0, 0x3f, 1, 0, u8, u8, Adcnvstr_SPEC, crate::common::RW> {
crate::common::RegisterField::<0,0x3f,1,0,u8,u8,Adcnvstr_SPEC,crate::common::RW>::from_register(self,0)
}
#[doc = "A/D Converter Unit 1 (ADC1)"]
#[inline(always)]
pub fn cst1(
self,
) -> crate::common::RegisterField<8, 0x3f, 1, 0, u8, u8, Adcnvstr_SPEC, crate::common::RW> {
crate::common::RegisterField::<8,0x3f,1,0,u8,u8,Adcnvstr_SPEC,crate::common::RW>::from_register(self,0)
}
}
impl ::core::default::Default for Adcnvstr {
#[inline(always)]
fn default() -> Adcnvstr {
<crate::RegValueT<Adcnvstr_SPEC> as RegisterValue<_>>::new(771)
}
}
#[doc(hidden)]
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct Adcalstcr_SPEC;
impl crate::sealed::RegSpec for Adcalstcr_SPEC {
type DataType = u32;
}
#[doc = "A/D Converter Self-calibration State Register"]
pub type Adcalstcr = crate::RegValueT<Adcalstcr_SPEC>;
impl Adcalstcr {
#[doc = "A/D Converter Self-calibration Sampling Time Configuration"]
#[inline(always)]
pub fn caladsst(
self,
) -> crate::common::RegisterField<0, 0x3ff, 1, 0, u16, u16, Adcalstcr_SPEC, crate::common::RW>
{
crate::common::RegisterField::<0,0x3ff,1,0,u16,u16,Adcalstcr_SPEC,crate::common::RW>::from_register(self,0)
}
#[doc = "A/D Converter Self-calibration Successive Approximation Time Configuration."]
#[inline(always)]
pub fn caladcst(
self,
) -> crate::common::RegisterField<16, 0x3f, 1, 0, u8, u8, Adcalstcr_SPEC, crate::common::RW>
{
crate::common::RegisterField::<16,0x3f,1,0,u8,u8,Adcalstcr_SPEC,crate::common::RW>::from_register(self,0)
}
}
impl ::core::default::Default for Adcalstcr {
#[inline(always)]
fn default() -> Adcalstcr {
<crate::RegValueT<Adcalstcr_SPEC> as RegisterValue<_>>::new(196610)
}
}
#[doc(hidden)]
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct Adshcr0_SPEC;
impl crate::sealed::RegSpec for Adshcr0_SPEC {
type DataType = u32;
}
#[doc = "Channel-dedicated Sample-and-hold Circuit Control Register 0"]
pub type Adshcr0 = crate::RegValueT<Adshcr0_SPEC>;
impl Adshcr0 {
#[doc = "Channel-dedicated Sample-and-hold Circuit Unit 0 Select"]
#[inline(always)]
pub fn shen0(
self,
) -> crate::common::RegisterField<
0,
0x1,
1,
0,
adshcr0::Shen0,
adshcr0::Shen0,
Adshcr0_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
0,
0x1,
1,
0,
adshcr0::Shen0,
adshcr0::Shen0,
Adshcr0_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[doc = "Channel-dedicated Sample-and-hold Circuit Unit 1 Select"]
#[inline(always)]
pub fn shen1(
self,
) -> crate::common::RegisterField<
1,
0x1,
1,
0,
adshcr0::Shen1,
adshcr0::Shen1,
Adshcr0_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
1,
0x1,
1,
0,
adshcr0::Shen1,
adshcr0::Shen1,
Adshcr0_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[doc = "Channel-dedicated Sample-and-hold Circuit Unit 2 Select"]
#[inline(always)]
pub fn shen2(
self,
) -> crate::common::RegisterField<
2,
0x1,
1,
0,
adshcr0::Shen2,
adshcr0::Shen2,
Adshcr0_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
2,
0x1,
1,
0,
adshcr0::Shen2,
adshcr0::Shen2,
Adshcr0_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[doc = "Channel-dedicated Sample-and-hold Circuit Unit 0 Input Mode Select"]
#[inline(always)]
pub fn shmd0(
self,
) -> crate::common::RegisterField<
16,
0x1,
1,
0,
adshcr0::Shmd0,
adshcr0::Shmd0,
Adshcr0_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
16,
0x1,
1,
0,
adshcr0::Shmd0,
adshcr0::Shmd0,
Adshcr0_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[doc = "Channel-dedicated Sample-and-hold Circuit Unit 1 Input Mode Select"]
#[inline(always)]
pub fn shmd1(
self,
) -> crate::common::RegisterField<
17,
0x1,
1,
0,
adshcr0::Shmd1,
adshcr0::Shmd1,
Adshcr0_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
17,
0x1,
1,
0,
adshcr0::Shmd1,
adshcr0::Shmd1,
Adshcr0_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[doc = "Channel-dedicated Sample-and-hold Circuit Unit 2 Input Mode Select"]
#[inline(always)]
pub fn shmd2(
self,
) -> crate::common::RegisterField<
18,
0x1,
1,
0,
adshcr0::Shmd2,
adshcr0::Shmd2,
Adshcr0_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
18,
0x1,
1,
0,
adshcr0::Shmd2,
adshcr0::Shmd2,
Adshcr0_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
}
impl ::core::default::Default for Adshcr0 {
#[inline(always)]
fn default() -> Adshcr0 {
<crate::RegValueT<Adshcr0_SPEC> as RegisterValue<_>>::new(0)
}
}
pub mod adshcr0 {
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Shen0_SPEC;
pub type Shen0 = crate::EnumBitfieldStruct<u8, Shen0_SPEC>;
impl Shen0 {
#[doc = "Bypass the circuit unit 0"]
pub const _0: Self = Self::new(0);
#[doc = "Use the circuit unit 0"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Shen1_SPEC;
pub type Shen1 = crate::EnumBitfieldStruct<u8, Shen1_SPEC>;
impl Shen1 {
#[doc = "Bypass the circuit unit 1"]
pub const _0: Self = Self::new(0);
#[doc = "Use the circuit unit 1"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Shen2_SPEC;
pub type Shen2 = crate::EnumBitfieldStruct<u8, Shen2_SPEC>;
impl Shen2 {
#[doc = "Bypass the circuit unit 2"]
pub const _0: Self = Self::new(0);
#[doc = "Use the circuit unit 2"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Shmd0_SPEC;
pub type Shmd0 = crate::EnumBitfieldStruct<u8, Shmd0_SPEC>;
impl Shmd0 {
#[doc = "Single-ended Input mode"]
pub const _0: Self = Self::new(0);
#[doc = "Differential Input mode"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Shmd1_SPEC;
pub type Shmd1 = crate::EnumBitfieldStruct<u8, Shmd1_SPEC>;
impl Shmd1 {
#[doc = "Single-ended Input mode"]
pub const _0: Self = Self::new(0);
#[doc = "Differential Input mode"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Shmd2_SPEC;
pub type Shmd2 = crate::EnumBitfieldStruct<u8, Shmd2_SPEC>;
impl Shmd2 {
#[doc = "Single-ended Input mode"]
pub const _0: Self = Self::new(0);
#[doc = "Differential Input mode"]
pub const _1: Self = Self::new(1);
}
}
#[doc(hidden)]
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct Adshdcr0_SPEC;
impl crate::sealed::RegSpec for Adshdcr0_SPEC {
type DataType = u32;
}
#[doc = "Channel-dedicated Sample-and-hold Circuit Diagnosis Control Register 0"]
pub type Adshdcr0 = crate::RegValueT<Adshdcr0_SPEC>;
impl Adshdcr0 {
#[doc = "A/D converter unit 0 channel-dedicated sample-and-hold circuit disconnection detection assist enable"]
#[inline(always)]
pub fn sh0disen(
self,
) -> crate::common::RegisterField<
0,
0x1,
1,
0,
adshdcr0::Sh0Disen,
adshdcr0::Sh0Disen,
Adshdcr0_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
0,
0x1,
1,
0,
adshdcr0::Sh0Disen,
adshdcr0::Sh0Disen,
Adshdcr0_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[doc = "A/D converter unit 0 channel-dedicated sample-and-hold circuit disconnection detection assist selection"]
#[inline(always)]
pub fn sh0dis(
self,
) -> crate::common::RegisterField<
4,
0x1,
1,
0,
adshdcr0::Sh0Dis,
adshdcr0::Sh0Dis,
Adshdcr0_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
4,
0x1,
1,
0,
adshdcr0::Sh0Dis,
adshdcr0::Sh0Dis,
Adshdcr0_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
}
impl ::core::default::Default for Adshdcr0 {
#[inline(always)]
fn default() -> Adshdcr0 {
<crate::RegValueT<Adshdcr0_SPEC> as RegisterValue<_>>::new(0)
}
}
pub mod adshdcr0 {
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Sh0Disen_SPEC;
pub type Sh0Disen = crate::EnumBitfieldStruct<u8, Sh0Disen_SPEC>;
impl Sh0Disen {
#[doc = "Disconnection detection assist is disabled"]
pub const _0: Self = Self::new(0);
#[doc = "Disconnection detection assist is enabled"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Sh0Dis_SPEC;
pub type Sh0Dis = crate::EnumBitfieldStruct<u8, Sh0Dis_SPEC>;
impl Sh0Dis {
#[doc = "Discharge"]
pub const _0: Self = Self::new(0);
#[doc = "Precharge"]
pub const _1: Self = Self::new(1);
}
}
#[doc(hidden)]
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct Adshstr0_SPEC;
impl crate::sealed::RegSpec for Adshstr0_SPEC {
type DataType = u32;
}
#[doc = "Channel-dedicated Sample-and-hold Circuit State Register 0"]
pub type Adshstr0 = crate::RegValueT<Adshstr0_SPEC>;
impl Adshstr0 {
#[doc = "Channel-dedicated Sample-and-hold Circuit Unit 0 to 2"]
#[inline(always)]
pub fn shsst(
self,
) -> crate::common::RegisterField<0, 0xff, 1, 0, u8, u8, Adshstr0_SPEC, crate::common::RW> {
crate::common::RegisterField::<0,0xff,1,0,u8,u8,Adshstr0_SPEC,crate::common::RW>::from_register(self,0)
}
#[doc = "Channel-dedicated Sample-and-hold Circuit Unit 0 to 2"]
#[inline(always)]
pub fn shhst(
self,
) -> crate::common::RegisterField<16, 0x7, 1, 0, u8, u8, Adshstr0_SPEC, crate::common::RW> {
crate::common::RegisterField::<16,0x7,1,0,u8,u8,Adshstr0_SPEC,crate::common::RW>::from_register(self,0)
}
}
impl ::core::default::Default for Adshstr0 {
#[inline(always)]
fn default() -> Adshstr0 {
<crate::RegValueT<Adshstr0_SPEC> as RegisterValue<_>>::new(131076)
}
}
#[doc(hidden)]
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct Adshcr1_SPEC;
impl crate::sealed::RegSpec for Adshcr1_SPEC {
type DataType = u32;
}
#[doc = "Channel-dedicated Sample-and-hold Circuit Control Register 1"]
pub type Adshcr1 = crate::RegValueT<Adshcr1_SPEC>;
impl Adshcr1 {
#[doc = "Channel-dedicated Sample-and-hold Circuit Unit 4 Select"]
#[inline(always)]
pub fn shen4(
self,
) -> crate::common::RegisterField<
0,
0x1,
1,
0,
adshcr1::Shen4,
adshcr1::Shen4,
Adshcr1_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
0,
0x1,
1,
0,
adshcr1::Shen4,
adshcr1::Shen4,
Adshcr1_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[doc = "Channel-dedicated Sample-and-hold Circuit Unit 5 Select"]
#[inline(always)]
pub fn shen5(
self,
) -> crate::common::RegisterField<
1,
0x1,
1,
0,
adshcr1::Shen5,
adshcr1::Shen5,
Adshcr1_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
1,
0x1,
1,
0,
adshcr1::Shen5,
adshcr1::Shen5,
Adshcr1_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[doc = "Channel-dedicated Sample-and-hold Circuit Unit 6 Select"]
#[inline(always)]
pub fn shen6(
self,
) -> crate::common::RegisterField<
2,
0x1,
1,
0,
adshcr1::Shen6,
adshcr1::Shen6,
Adshcr1_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
2,
0x1,
1,
0,
adshcr1::Shen6,
adshcr1::Shen6,
Adshcr1_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[doc = "Channel-dedicated Sample-and-hold Circuit Unit 4 Input Mode Select"]
#[inline(always)]
pub fn shmd4(
self,
) -> crate::common::RegisterField<
16,
0x1,
1,
0,
adshcr1::Shmd4,
adshcr1::Shmd4,
Adshcr1_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
16,
0x1,
1,
0,
adshcr1::Shmd4,
adshcr1::Shmd4,
Adshcr1_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[doc = "Channel-dedicated Sample-and-hold Circuit Unit 5 Input Mode Select"]
#[inline(always)]
pub fn shmd5(
self,
) -> crate::common::RegisterField<
17,
0x1,
1,
0,
adshcr1::Shmd5,
adshcr1::Shmd5,
Adshcr1_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
17,
0x1,
1,
0,
adshcr1::Shmd5,
adshcr1::Shmd5,
Adshcr1_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[doc = "Channel-dedicated Sample-and-hold Circuit Unit 6 Input Mode Select"]
#[inline(always)]
pub fn shmd6(
self,
) -> crate::common::RegisterField<
18,
0x1,
1,
0,
adshcr1::Shmd6,
adshcr1::Shmd6,
Adshcr1_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
18,
0x1,
1,
0,
adshcr1::Shmd6,
adshcr1::Shmd6,
Adshcr1_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
}
impl ::core::default::Default for Adshcr1 {
#[inline(always)]
fn default() -> Adshcr1 {
<crate::RegValueT<Adshcr1_SPEC> as RegisterValue<_>>::new(0)
}
}
pub mod adshcr1 {
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Shen4_SPEC;
pub type Shen4 = crate::EnumBitfieldStruct<u8, Shen4_SPEC>;
impl Shen4 {
#[doc = "Bypass the circuit unit 4"]
pub const _0: Self = Self::new(0);
#[doc = "Use the circuit unit 4"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Shen5_SPEC;
pub type Shen5 = crate::EnumBitfieldStruct<u8, Shen5_SPEC>;
impl Shen5 {
#[doc = "Bypass the circuit unit 5"]
pub const _0: Self = Self::new(0);
#[doc = "Use the circuit unit 5"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Shen6_SPEC;
pub type Shen6 = crate::EnumBitfieldStruct<u8, Shen6_SPEC>;
impl Shen6 {
#[doc = "Bypass the circuit unit 6"]
pub const _0: Self = Self::new(0);
#[doc = "Use the circuit unit 6"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Shmd4_SPEC;
pub type Shmd4 = crate::EnumBitfieldStruct<u8, Shmd4_SPEC>;
impl Shmd4 {
#[doc = "Single-ended Input mode"]
pub const _0: Self = Self::new(0);
#[doc = "Differential Input mode"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Shmd5_SPEC;
pub type Shmd5 = crate::EnumBitfieldStruct<u8, Shmd5_SPEC>;
impl Shmd5 {
#[doc = "Single-ended Input mode"]
pub const _0: Self = Self::new(0);
#[doc = "Differential Input mode"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Shmd6_SPEC;
pub type Shmd6 = crate::EnumBitfieldStruct<u8, Shmd6_SPEC>;
impl Shmd6 {
#[doc = "Single-ended Input mode"]
pub const _0: Self = Self::new(0);
#[doc = "Differential Input mode"]
pub const _1: Self = Self::new(1);
}
}
#[doc(hidden)]
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct Adshdcr1_SPEC;
impl crate::sealed::RegSpec for Adshdcr1_SPEC {
type DataType = u32;
}
#[doc = "Channel-dedicated Sample-and-hold Circuit Diagnosis Control Register 1"]
pub type Adshdcr1 = crate::RegValueT<Adshdcr1_SPEC>;
impl Adshdcr1 {
#[doc = "A/D converter unit 1 channel-dedicated sample-and-hold circuit disconnection detection assist enable"]
#[inline(always)]
pub fn sh1disen(
self,
) -> crate::common::RegisterField<
0,
0x1,
1,
0,
adshdcr1::Sh1Disen,
adshdcr1::Sh1Disen,
Adshdcr1_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
0,
0x1,
1,
0,
adshdcr1::Sh1Disen,
adshdcr1::Sh1Disen,
Adshdcr1_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[doc = "A/D converter unit 1 channel-dedicated sample-and-hold circuit disconnection detection assist selection"]
#[inline(always)]
pub fn sh1dis(
self,
) -> crate::common::RegisterField<
4,
0x1,
1,
0,
adshdcr1::Sh1Dis,
adshdcr1::Sh1Dis,
Adshdcr1_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
4,
0x1,
1,
0,
adshdcr1::Sh1Dis,
adshdcr1::Sh1Dis,
Adshdcr1_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
}
impl ::core::default::Default for Adshdcr1 {
#[inline(always)]
fn default() -> Adshdcr1 {
<crate::RegValueT<Adshdcr1_SPEC> as RegisterValue<_>>::new(0)
}
}
pub mod adshdcr1 {
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Sh1Disen_SPEC;
pub type Sh1Disen = crate::EnumBitfieldStruct<u8, Sh1Disen_SPEC>;
impl Sh1Disen {
#[doc = "Disconnection detection assist is disabled"]
pub const _0: Self = Self::new(0);
#[doc = "Disconnection detection assist is enabled"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Sh1Dis_SPEC;
pub type Sh1Dis = crate::EnumBitfieldStruct<u8, Sh1Dis_SPEC>;
impl Sh1Dis {
#[doc = "Discharge"]
pub const _0: Self = Self::new(0);
#[doc = "Precharge"]
pub const _1: Self = Self::new(1);
}
}
#[doc(hidden)]
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct Adshstr1_SPEC;
impl crate::sealed::RegSpec for Adshstr1_SPEC {
type DataType = u32;
}
#[doc = "Channel-dedicated Sample-and-hold Circuit State Register 1"]
pub type Adshstr1 = crate::RegValueT<Adshstr1_SPEC>;
impl Adshstr1 {
#[doc = "Channel-dedicated Sample-and-hold Circuit Unit 4 to 6"]
#[inline(always)]
pub fn shsst(
self,
) -> crate::common::RegisterField<0, 0xff, 1, 0, u8, u8, Adshstr1_SPEC, crate::common::RW> {
crate::common::RegisterField::<0,0xff,1,0,u8,u8,Adshstr1_SPEC,crate::common::RW>::from_register(self,0)
}
#[doc = "Channel-dedicated Sample-and-hold Circuit Unit 4 to 6"]
#[inline(always)]
pub fn shhst(
self,
) -> crate::common::RegisterField<16, 0x7, 1, 0, u8, u8, Adshstr1_SPEC, crate::common::RW> {
crate::common::RegisterField::<16,0x7,1,0,u8,u8,Adshstr1_SPEC,crate::common::RW>::from_register(self,0)
}
}
impl ::core::default::Default for Adshstr1 {
#[inline(always)]
fn default() -> Adshstr1 {
<crate::RegValueT<Adshstr1_SPEC> as RegisterValue<_>>::new(131076)
}
}
#[doc(hidden)]
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct Adcalshcr_SPEC;
impl crate::sealed::RegSpec for Adcalshcr_SPEC {
type DataType = u32;
}
#[doc = "Channel-dedicated Sample-and-hold Circuit Self-calibration State Register"]
pub type Adcalshcr = crate::RegValueT<Adcalshcr_SPEC>;
impl Adcalshcr {
#[doc = "Channel-dedicated Sample-and-hold Circuit Self-calibration Sampling Time Configuration"]
#[inline(always)]
pub fn calshsst(
self,
) -> crate::common::RegisterField<0, 0xff, 1, 0, u8, u8, Adcalshcr_SPEC, crate::common::RW>
{
crate::common::RegisterField::<0,0xff,1,0,u8,u8,Adcalshcr_SPEC,crate::common::RW>::from_register(self,0)
}
#[doc = "Channel-dedicated Sample-and-hold Circuit Self-calibration Hold Mode Switching Time Configuration"]
#[inline(always)]
pub fn calshhst(
self,
) -> crate::common::RegisterField<16, 0x7, 1, 0, u8, u8, Adcalshcr_SPEC, crate::common::RW>
{
crate::common::RegisterField::<16,0x7,1,0,u8,u8,Adcalshcr_SPEC,crate::common::RW>::from_register(self,0)
}
}
impl ::core::default::Default for Adcalshcr {
#[inline(always)]
fn default() -> Adcalshcr {
<crate::RegValueT<Adcalshcr_SPEC> as RegisterValue<_>>::new(131076)
}
}
#[doc(hidden)]
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct Adshsbpcr_SPEC;
impl crate::sealed::RegSpec for Adshsbpcr_SPEC {
type DataType = u32;
}
#[doc = "Channel-dedicated Sample-and-hold Circuit Single-ended Input Mode Bypass Control Register"]
pub type Adshsbpcr = crate::RegValueT<Adshsbpcr_SPEC>;
impl Adshsbpcr {
#[doc = "Channel-dedicated sample-and-hold circuit unit 0 single-ended input bypass selection (even-numbered analog channel)"]
#[inline(always)]
pub fn shsbp0(
self,
) -> crate::common::RegisterField<
0,
0x1,
1,
0,
adshsbpcr::Shsbp0,
adshsbpcr::Shsbp0,
Adshsbpcr_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
0,
0x1,
1,
0,
adshsbpcr::Shsbp0,
adshsbpcr::Shsbp0,
Adshsbpcr_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[doc = "Channel-dedicated sample-and-hold circuit unit 1 single-ended input bypass selection (even-numbered analog channel)"]
#[inline(always)]
pub fn shsbp1(
self,
) -> crate::common::RegisterField<
1,
0x1,
1,
0,
adshsbpcr::Shsbp1,
adshsbpcr::Shsbp1,
Adshsbpcr_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
1,
0x1,
1,
0,
adshsbpcr::Shsbp1,
adshsbpcr::Shsbp1,
Adshsbpcr_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[doc = "Channel-dedicated sample-and-hold circuit unit 2 single-ended input bypass selection (even-numbered analog channel)"]
#[inline(always)]
pub fn shsbp2(
self,
) -> crate::common::RegisterField<
2,
0x1,
1,
0,
adshsbpcr::Shsbp2,
adshsbpcr::Shsbp2,
Adshsbpcr_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
2,
0x1,
1,
0,
adshsbpcr::Shsbp2,
adshsbpcr::Shsbp2,
Adshsbpcr_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[doc = "Channel-dedicated sample-and-hold circuit unit 4 single-ended input bypass selection (even-numbered analog channel)"]
#[inline(always)]
pub fn shsbp4(
self,
) -> crate::common::RegisterField<
4,
0x1,
1,
0,
adshsbpcr::Shsbp4,
adshsbpcr::Shsbp4,
Adshsbpcr_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
4,
0x1,
1,
0,
adshsbpcr::Shsbp4,
adshsbpcr::Shsbp4,
Adshsbpcr_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[doc = "Channel-dedicated sample-and-hold circuit unit 5 single-ended input bypass selection (even-numbered analog channel)"]
#[inline(always)]
pub fn shsbp5(
self,
) -> crate::common::RegisterField<
5,
0x1,
1,
0,
adshsbpcr::Shsbp5,
adshsbpcr::Shsbp5,
Adshsbpcr_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
5,
0x1,
1,
0,
adshsbpcr::Shsbp5,
adshsbpcr::Shsbp5,
Adshsbpcr_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[doc = "Channel-dedicated sample-and-hold circuit unit 6 single-ended input bypass selection (even-numbered analog channel)"]
#[inline(always)]
pub fn shsbp6(
self,
) -> crate::common::RegisterField<
6,
0x1,
1,
0,
adshsbpcr::Shsbp6,
adshsbpcr::Shsbp6,
Adshsbpcr_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
6,
0x1,
1,
0,
adshsbpcr::Shsbp6,
adshsbpcr::Shsbp6,
Adshsbpcr_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[doc = "Channel-dedicated sample-and-hold circuit unit 0 single-ended input bypass selection (odd analog channel)"]
#[inline(always)]
pub fn shsbn0(
self,
) -> crate::common::RegisterField<
16,
0x1,
1,
0,
adshsbpcr::Shsbn0,
adshsbpcr::Shsbn0,
Adshsbpcr_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
16,
0x1,
1,
0,
adshsbpcr::Shsbn0,
adshsbpcr::Shsbn0,
Adshsbpcr_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[doc = "Channel-dedicated sample-and-hold circuit unit 1 single-ended input bypass selection (odd analog channel)"]
#[inline(always)]
pub fn shsbn1(
self,
) -> crate::common::RegisterField<
17,
0x1,
1,
0,
adshsbpcr::Shsbn1,
adshsbpcr::Shsbn1,
Adshsbpcr_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
17,
0x1,
1,
0,
adshsbpcr::Shsbn1,
adshsbpcr::Shsbn1,
Adshsbpcr_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[doc = "Channel-dedicated sample-and-hold circuit unit 2 single-ended input bypass selection (odd analog channel)"]
#[inline(always)]
pub fn shsbn2(
self,
) -> crate::common::RegisterField<
18,
0x1,
1,
0,
adshsbpcr::Shsbn2,
adshsbpcr::Shsbn2,
Adshsbpcr_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
18,
0x1,
1,
0,
adshsbpcr::Shsbn2,
adshsbpcr::Shsbn2,
Adshsbpcr_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[doc = "Channel-dedicated sample-and-hold circuit unit 4 single-ended input bypass selection (odd analog channel)"]
#[inline(always)]
pub fn shsbn4(
self,
) -> crate::common::RegisterField<
20,
0x1,
1,
0,
adshsbpcr::Shsbn4,
adshsbpcr::Shsbn4,
Adshsbpcr_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
20,
0x1,
1,
0,
adshsbpcr::Shsbn4,
adshsbpcr::Shsbn4,
Adshsbpcr_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[doc = "Channel-dedicated sample-and-hold circuit unit 5 single-ended input bypass selection (odd analog channel)"]
#[inline(always)]
pub fn shsbn5(
self,
) -> crate::common::RegisterField<
21,
0x1,
1,
0,
adshsbpcr::Shsbn5,
adshsbpcr::Shsbn5,
Adshsbpcr_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
21,
0x1,
1,
0,
adshsbpcr::Shsbn5,
adshsbpcr::Shsbn5,
Adshsbpcr_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[doc = "Channel-dedicated sample-and-hold circuit unit 6 single-ended input bypass selection (odd analog channel)"]
#[inline(always)]
pub fn shsbn6(
self,
) -> crate::common::RegisterField<
22,
0x1,
1,
0,
adshsbpcr::Shsbn6,
adshsbpcr::Shsbn6,
Adshsbpcr_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
22,
0x1,
1,
0,
adshsbpcr::Shsbn6,
adshsbpcr::Shsbn6,
Adshsbpcr_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
}
impl ::core::default::Default for Adshsbpcr {
#[inline(always)]
fn default() -> Adshsbpcr {
<crate::RegValueT<Adshsbpcr_SPEC> as RegisterValue<_>>::new(0)
}
}
pub mod adshsbpcr {
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Shsbp0_SPEC;
pub type Shsbp0 = crate::EnumBitfieldStruct<u8, Shsbp0_SPEC>;
impl Shsbp0 {
#[doc = "Use the sample-and-hold circuit"]
pub const _0: Self = Self::new(0);
#[doc = "Bypass the sample-and-hold circuit"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Shsbp1_SPEC;
pub type Shsbp1 = crate::EnumBitfieldStruct<u8, Shsbp1_SPEC>;
impl Shsbp1 {
#[doc = "Use the sample-and-hold circuit"]
pub const _0: Self = Self::new(0);
#[doc = "Bypass the sample-and-hold circuit"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Shsbp2_SPEC;
pub type Shsbp2 = crate::EnumBitfieldStruct<u8, Shsbp2_SPEC>;
impl Shsbp2 {
#[doc = "Use the sample-and-hold circuit"]
pub const _0: Self = Self::new(0);
#[doc = "Bypass the sample-and-hold circuit"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Shsbp4_SPEC;
pub type Shsbp4 = crate::EnumBitfieldStruct<u8, Shsbp4_SPEC>;
impl Shsbp4 {
#[doc = "Use the sample-and-hold circuit"]
pub const _0: Self = Self::new(0);
#[doc = "Bypass the sample-and-hold circuit"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Shsbp5_SPEC;
pub type Shsbp5 = crate::EnumBitfieldStruct<u8, Shsbp5_SPEC>;
impl Shsbp5 {
#[doc = "Use the sample-and-hold circuit"]
pub const _0: Self = Self::new(0);
#[doc = "Bypass the sample-and-hold circuit"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Shsbp6_SPEC;
pub type Shsbp6 = crate::EnumBitfieldStruct<u8, Shsbp6_SPEC>;
impl Shsbp6 {
#[doc = "Use the sample-and-hold circuit"]
pub const _0: Self = Self::new(0);
#[doc = "Bypass the sample-and-hold circuit"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Shsbn0_SPEC;
pub type Shsbn0 = crate::EnumBitfieldStruct<u8, Shsbn0_SPEC>;
impl Shsbn0 {
#[doc = "Use the sample-and-hold circuit"]
pub const _0: Self = Self::new(0);
#[doc = "Bypass the sample-and-hold circuit"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Shsbn1_SPEC;
pub type Shsbn1 = crate::EnumBitfieldStruct<u8, Shsbn1_SPEC>;
impl Shsbn1 {
#[doc = "Use the sample-and-hold circuit"]
pub const _0: Self = Self::new(0);
#[doc = "Bypass the sample-and-hold circuit"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Shsbn2_SPEC;
pub type Shsbn2 = crate::EnumBitfieldStruct<u8, Shsbn2_SPEC>;
impl Shsbn2 {
#[doc = "Use the sample-and-hold circuit"]
pub const _0: Self = Self::new(0);
#[doc = "Bypass the sample-and-hold circuit"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Shsbn4_SPEC;
pub type Shsbn4 = crate::EnumBitfieldStruct<u8, Shsbn4_SPEC>;
impl Shsbn4 {
#[doc = "Use the sample-and-hold circuit"]
pub const _0: Self = Self::new(0);
#[doc = "Bypass the sample-and-hold circuit"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Shsbn5_SPEC;
pub type Shsbn5 = crate::EnumBitfieldStruct<u8, Shsbn5_SPEC>;
impl Shsbn5 {
#[doc = "Use the sample-and-hold circuit"]
pub const _0: Self = Self::new(0);
#[doc = "Bypass the sample-and-hold circuit"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Shsbn6_SPEC;
pub type Shsbn6 = crate::EnumBitfieldStruct<u8, Shsbn6_SPEC>;
impl Shsbn6 {
#[doc = "Use the sample-and-hold circuit"]
pub const _0: Self = Self::new(0);
#[doc = "Bypass the sample-and-hold circuit"]
pub const _1: Self = Self::new(1);
}
}
#[doc(hidden)]
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct Adshdbpcr_SPEC;
impl crate::sealed::RegSpec for Adshdbpcr_SPEC {
type DataType = u32;
}
#[doc = "Channel-dedicated Sample-and-hold Circuit Differential Input Mode Bypass Control Register"]
pub type Adshdbpcr = crate::RegValueT<Adshdbpcr_SPEC>;
impl Adshdbpcr {
#[doc = "Scan group 0 channel-dedicated sample-and-hold circuit differential input bypass select"]
#[inline(always)]
pub fn shdbp0(
self,
) -> crate::common::RegisterField<
0,
0x1,
1,
0,
adshdbpcr::Shdbp0,
adshdbpcr::Shdbp0,
Adshdbpcr_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
0,
0x1,
1,
0,
adshdbpcr::Shdbp0,
adshdbpcr::Shdbp0,
Adshdbpcr_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[doc = "Scan group 1 channel-dedicated sample-and-hold circuit differential input bypass select"]
#[inline(always)]
pub fn shdbp1(
self,
) -> crate::common::RegisterField<
1,
0x1,
1,
0,
adshdbpcr::Shdbp1,
adshdbpcr::Shdbp1,
Adshdbpcr_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
1,
0x1,
1,
0,
adshdbpcr::Shdbp1,
adshdbpcr::Shdbp1,
Adshdbpcr_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[doc = "Scan group 2 channel-dedicated sample-and-hold circuit differential input bypass select"]
#[inline(always)]
pub fn shdbp2(
self,
) -> crate::common::RegisterField<
2,
0x1,
1,
0,
adshdbpcr::Shdbp2,
adshdbpcr::Shdbp2,
Adshdbpcr_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
2,
0x1,
1,
0,
adshdbpcr::Shdbp2,
adshdbpcr::Shdbp2,
Adshdbpcr_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[doc = "Scan group 3 channel-dedicated sample-and-hold circuit differential input bypass select"]
#[inline(always)]
pub fn shdbp3(
self,
) -> crate::common::RegisterField<
3,
0x1,
1,
0,
adshdbpcr::Shdbp3,
adshdbpcr::Shdbp3,
Adshdbpcr_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
3,
0x1,
1,
0,
adshdbpcr::Shdbp3,
adshdbpcr::Shdbp3,
Adshdbpcr_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[doc = "Scan group 4 channel-dedicated sample-and-hold circuit differential input bypass select"]
#[inline(always)]
pub fn shdbp4(
self,
) -> crate::common::RegisterField<
4,
0x1,
1,
0,
adshdbpcr::Shdbp4,
adshdbpcr::Shdbp4,
Adshdbpcr_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
4,
0x1,
1,
0,
adshdbpcr::Shdbp4,
adshdbpcr::Shdbp4,
Adshdbpcr_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[doc = "Scan group 5 channel-dedicated sample-and-hold circuit differential input bypass select"]
#[inline(always)]
pub fn shdbp5(
self,
) -> crate::common::RegisterField<
5,
0x1,
1,
0,
adshdbpcr::Shdbp5,
adshdbpcr::Shdbp5,
Adshdbpcr_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
5,
0x1,
1,
0,
adshdbpcr::Shdbp5,
adshdbpcr::Shdbp5,
Adshdbpcr_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[doc = "Scan group 6 channel-dedicated sample-and-hold circuit differential input bypass select"]
#[inline(always)]
pub fn shdbp6(
self,
) -> crate::common::RegisterField<
6,
0x1,
1,
0,
adshdbpcr::Shdbp6,
adshdbpcr::Shdbp6,
Adshdbpcr_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
6,
0x1,
1,
0,
adshdbpcr::Shdbp6,
adshdbpcr::Shdbp6,
Adshdbpcr_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[doc = "Scan group 7 channel-dedicated sample-and-hold circuit differential input bypass select"]
#[inline(always)]
pub fn shdbp7(
self,
) -> crate::common::RegisterField<
7,
0x1,
1,
0,
adshdbpcr::Shdbp7,
adshdbpcr::Shdbp7,
Adshdbpcr_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
7,
0x1,
1,
0,
adshdbpcr::Shdbp7,
adshdbpcr::Shdbp7,
Adshdbpcr_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[doc = "Scan group 8 channel-dedicated sample-and-hold circuit differential input bypass select"]
#[inline(always)]
pub fn shdbp8(
self,
) -> crate::common::RegisterField<
8,
0x1,
1,
0,
adshdbpcr::Shdbp8,
adshdbpcr::Shdbp8,
Adshdbpcr_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
8,
0x1,
1,
0,
adshdbpcr::Shdbp8,
adshdbpcr::Shdbp8,
Adshdbpcr_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
}
impl ::core::default::Default for Adshdbpcr {
#[inline(always)]
fn default() -> Adshdbpcr {
<crate::RegValueT<Adshdbpcr_SPEC> as RegisterValue<_>>::new(0)
}
}
pub mod adshdbpcr {
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Shdbp0_SPEC;
pub type Shdbp0 = crate::EnumBitfieldStruct<u8, Shdbp0_SPEC>;
impl Shdbp0 {
#[doc = "Use the sample-and-hold circuit"]
pub const _0: Self = Self::new(0);
#[doc = "Bypass the sample-and-hold circuit"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Shdbp1_SPEC;
pub type Shdbp1 = crate::EnumBitfieldStruct<u8, Shdbp1_SPEC>;
impl Shdbp1 {
#[doc = "Use the sample-and-hold circuit"]
pub const _0: Self = Self::new(0);
#[doc = "Bypass the sample-and-hold circuit"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Shdbp2_SPEC;
pub type Shdbp2 = crate::EnumBitfieldStruct<u8, Shdbp2_SPEC>;
impl Shdbp2 {
#[doc = "Use the sample-and-hold circuit"]
pub const _0: Self = Self::new(0);
#[doc = "Bypass the sample-and-hold circuit"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Shdbp3_SPEC;
pub type Shdbp3 = crate::EnumBitfieldStruct<u8, Shdbp3_SPEC>;
impl Shdbp3 {
#[doc = "Use the sample-and-hold circuit"]
pub const _0: Self = Self::new(0);
#[doc = "Bypass the sample-and-hold circuit"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Shdbp4_SPEC;
pub type Shdbp4 = crate::EnumBitfieldStruct<u8, Shdbp4_SPEC>;
impl Shdbp4 {
#[doc = "Use the sample-and-hold circuit"]
pub const _0: Self = Self::new(0);
#[doc = "Bypass the sample-and-hold circuit"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Shdbp5_SPEC;
pub type Shdbp5 = crate::EnumBitfieldStruct<u8, Shdbp5_SPEC>;
impl Shdbp5 {
#[doc = "Use the sample-and-hold circuit"]
pub const _0: Self = Self::new(0);
#[doc = "Bypass the sample-and-hold circuit"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Shdbp6_SPEC;
pub type Shdbp6 = crate::EnumBitfieldStruct<u8, Shdbp6_SPEC>;
impl Shdbp6 {
#[doc = "Use the sample-and-hold circuit"]
pub const _0: Self = Self::new(0);
#[doc = "Bypass the sample-and-hold circuit"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Shdbp7_SPEC;
pub type Shdbp7 = crate::EnumBitfieldStruct<u8, Shdbp7_SPEC>;
impl Shdbp7 {
#[doc = "Use the sample-and-hold circuit"]
pub const _0: Self = Self::new(0);
#[doc = "Bypass the sample-and-hold circuit"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Shdbp8_SPEC;
pub type Shdbp8 = crate::EnumBitfieldStruct<u8, Shdbp8_SPEC>;
impl Shdbp8 {
#[doc = "Use the sample-and-hold circuit"]
pub const _0: Self = Self::new(0);
#[doc = "Bypass the sample-and-hold circuit"]
pub const _1: Self = Self::new(1);
}
}
#[doc(hidden)]
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct Adshsdcr0_SPEC;
impl crate::sealed::RegSpec for Adshsdcr0_SPEC {
type DataType = u32;
}
#[doc = "Channel-dedicated Sample-and-hold Circuit Self-diagnosis Control Register 0"]
pub type Adshsdcr0 = crate::RegValueT<Adshsdcr0_SPEC>;
impl Adshsdcr0 {
#[doc = "Scan group 0 channel-dedicated sample-and-hold circuit self-diagnostic voltage selection"]
#[inline(always)]
pub fn shdiag0(
self,
) -> crate::common::RegisterField<
0,
0x7,
1,
0,
adshsdcr0::Shdiag0,
adshsdcr0::Shdiag0,
Adshsdcr0_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
0,
0x7,
1,
0,
adshsdcr0::Shdiag0,
adshsdcr0::Shdiag0,
Adshsdcr0_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[doc = "Scan group 1 channel-dedicated sample-and-hold circuit self-diagnostic voltage selection"]
#[inline(always)]
pub fn shdiag1(
self,
) -> crate::common::RegisterField<
4,
0x7,
1,
0,
adshsdcr0::Shdiag1,
adshsdcr0::Shdiag1,
Adshsdcr0_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
4,
0x7,
1,
0,
adshsdcr0::Shdiag1,
adshsdcr0::Shdiag1,
Adshsdcr0_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[doc = "Scan group 2 channel-dedicated sample-and-hold circuit self-diagnostic voltage selection"]
#[inline(always)]
pub fn shdiag2(
self,
) -> crate::common::RegisterField<
8,
0x7,
1,
0,
adshsdcr0::Shdiag2,
adshsdcr0::Shdiag2,
Adshsdcr0_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
8,
0x7,
1,
0,
adshsdcr0::Shdiag2,
adshsdcr0::Shdiag2,
Adshsdcr0_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[doc = "Scan group 3 channel-dedicated sample-and-hold circuit self-diagnostic voltage selection"]
#[inline(always)]
pub fn shdiag3(
self,
) -> crate::common::RegisterField<
12,
0x7,
1,
0,
adshsdcr0::Shdiag3,
adshsdcr0::Shdiag3,
Adshsdcr0_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
12,
0x7,
1,
0,
adshsdcr0::Shdiag3,
adshsdcr0::Shdiag3,
Adshsdcr0_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[doc = "Scan group 4 channel-dedicated sample-and-hold circuit self-diagnostic voltage selection"]
#[inline(always)]
pub fn shdiag4(
self,
) -> crate::common::RegisterField<
16,
0x7,
1,
0,
adshsdcr0::Shdiag4,
adshsdcr0::Shdiag4,
Adshsdcr0_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
16,
0x7,
1,
0,
adshsdcr0::Shdiag4,
adshsdcr0::Shdiag4,
Adshsdcr0_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[doc = "Scan group 5 channel-dedicated sample-and-hold circuit self-diagnostic voltage selection"]
#[inline(always)]
pub fn shdiag5(
self,
) -> crate::common::RegisterField<
20,
0x7,
1,
0,
adshsdcr0::Shdiag5,
adshsdcr0::Shdiag5,
Adshsdcr0_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
20,
0x7,
1,
0,
adshsdcr0::Shdiag5,
adshsdcr0::Shdiag5,
Adshsdcr0_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[doc = "Scan group 6 channel-dedicated sample-and-hold circuit self-diagnostic voltage selection"]
#[inline(always)]
pub fn shdiag6(
self,
) -> crate::common::RegisterField<
24,
0x7,
1,
0,
adshsdcr0::Shdiag6,
adshsdcr0::Shdiag6,
Adshsdcr0_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
24,
0x7,
1,
0,
adshsdcr0::Shdiag6,
adshsdcr0::Shdiag6,
Adshsdcr0_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[doc = "Scan group 7 channel-dedicated sample-and-hold circuit self-diagnostic voltage selection"]
#[inline(always)]
pub fn shdiag7(
self,
) -> crate::common::RegisterField<
28,
0x7,
1,
0,
adshsdcr0::Shdiag7,
adshsdcr0::Shdiag7,
Adshsdcr0_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
28,
0x7,
1,
0,
adshsdcr0::Shdiag7,
adshsdcr0::Shdiag7,
Adshsdcr0_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
}
impl ::core::default::Default for Adshsdcr0 {
#[inline(always)]
fn default() -> Adshsdcr0 {
<crate::RegValueT<Adshsdcr0_SPEC> as RegisterValue<_>>::new(0)
}
}
pub mod adshsdcr0 {
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Shdiag0_SPEC;
pub type Shdiag0 = crate::EnumBitfieldStruct<u8, Shdiag0_SPEC>;
impl Shdiag0 {
#[doc = "Normal operation"]
pub const _000: Self = Self::new(0);
#[doc = "Self-diagnostic voltage 0 V"]
pub const _001: Self = Self::new(1);
#[doc = "Self-diagnostic voltage −VREFH"]
pub const _010: Self = Self::new(2);
#[doc = "Self-diagnostic voltage +VREFH"]
pub const _011: Self = Self::new(3);
#[doc = "Self-diagnostic voltage 0 V"]
pub const _100: Self = Self::new(4);
#[doc = "Self-diagnostic voltage −VREFH/2"]
pub const _101: Self = Self::new(5);
#[doc = "Self-diagnostic voltage +VREFH/2"]
pub const _110: Self = Self::new(6);
#[doc = "Setting prohibited"]
pub const _111: Self = Self::new(7);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Shdiag1_SPEC;
pub type Shdiag1 = crate::EnumBitfieldStruct<u8, Shdiag1_SPEC>;
impl Shdiag1 {
#[doc = "Normal operation"]
pub const _000: Self = Self::new(0);
#[doc = "Self-diagnostic voltage 0 V"]
pub const _001: Self = Self::new(1);
#[doc = "Self-diagnostic voltage −VREFH"]
pub const _010: Self = Self::new(2);
#[doc = "Self-diagnostic voltage +VREFH"]
pub const _011: Self = Self::new(3);
#[doc = "Self-diagnostic voltage 0 V"]
pub const _100: Self = Self::new(4);
#[doc = "Self-diagnostic voltage −VREFH/2"]
pub const _101: Self = Self::new(5);
#[doc = "Self-diagnostic voltage +VREFH/2"]
pub const _110: Self = Self::new(6);
#[doc = "Setting prohibited"]
pub const _111: Self = Self::new(7);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Shdiag2_SPEC;
pub type Shdiag2 = crate::EnumBitfieldStruct<u8, Shdiag2_SPEC>;
impl Shdiag2 {
#[doc = "Normal operation"]
pub const _000: Self = Self::new(0);
#[doc = "Self-diagnostic voltage 0 V"]
pub const _001: Self = Self::new(1);
#[doc = "Self-diagnostic voltage −VREFH"]
pub const _010: Self = Self::new(2);
#[doc = "Self-diagnostic voltage +VREFH"]
pub const _011: Self = Self::new(3);
#[doc = "Self-diagnostic voltage 0 V"]
pub const _100: Self = Self::new(4);
#[doc = "Self-diagnostic voltage −VREFH/2"]
pub const _101: Self = Self::new(5);
#[doc = "Self-diagnostic voltage +VREFH/2"]
pub const _110: Self = Self::new(6);
#[doc = "Setting prohibited"]
pub const _111: Self = Self::new(7);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Shdiag3_SPEC;
pub type Shdiag3 = crate::EnumBitfieldStruct<u8, Shdiag3_SPEC>;
impl Shdiag3 {
#[doc = "Normal operation"]
pub const _000: Self = Self::new(0);
#[doc = "Self-diagnostic voltage 0 V"]
pub const _001: Self = Self::new(1);
#[doc = "Self-diagnostic voltage −VREFH"]
pub const _010: Self = Self::new(2);
#[doc = "Self-diagnostic voltage +VREFH"]
pub const _011: Self = Self::new(3);
#[doc = "Self-diagnostic voltage 0 V"]
pub const _100: Self = Self::new(4);
#[doc = "Self-diagnostic voltage −VREFH/2"]
pub const _101: Self = Self::new(5);
#[doc = "Self-diagnostic voltage +VREFH/2"]
pub const _110: Self = Self::new(6);
#[doc = "Setting prohibited"]
pub const _111: Self = Self::new(7);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Shdiag4_SPEC;
pub type Shdiag4 = crate::EnumBitfieldStruct<u8, Shdiag4_SPEC>;
impl Shdiag4 {
#[doc = "Normal operation"]
pub const _000: Self = Self::new(0);
#[doc = "Self-diagnostic voltage 0 V"]
pub const _001: Self = Self::new(1);
#[doc = "Self-diagnostic voltage −VREFH"]
pub const _010: Self = Self::new(2);
#[doc = "Self-diagnostic voltage +VREFH"]
pub const _011: Self = Self::new(3);
#[doc = "Self-diagnostic voltage 0 V"]
pub const _100: Self = Self::new(4);
#[doc = "Self-diagnostic voltage −VREFH/2"]
pub const _101: Self = Self::new(5);
#[doc = "Self-diagnostic voltage +VREFH/2"]
pub const _110: Self = Self::new(6);
#[doc = "Setting prohibited"]
pub const _111: Self = Self::new(7);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Shdiag5_SPEC;
pub type Shdiag5 = crate::EnumBitfieldStruct<u8, Shdiag5_SPEC>;
impl Shdiag5 {
#[doc = "Normal operation"]
pub const _000: Self = Self::new(0);
#[doc = "Self-diagnostic voltage 0 V"]
pub const _001: Self = Self::new(1);
#[doc = "Self-diagnostic voltage −VREFH"]
pub const _010: Self = Self::new(2);
#[doc = "Self-diagnostic voltage +VREFH"]
pub const _011: Self = Self::new(3);
#[doc = "Self-diagnostic voltage 0 V"]
pub const _100: Self = Self::new(4);
#[doc = "Self-diagnostic voltage −VREFH/2"]
pub const _101: Self = Self::new(5);
#[doc = "Self-diagnostic voltage +VREFH/2"]
pub const _110: Self = Self::new(6);
#[doc = "Setting prohibited"]
pub const _111: Self = Self::new(7);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Shdiag6_SPEC;
pub type Shdiag6 = crate::EnumBitfieldStruct<u8, Shdiag6_SPEC>;
impl Shdiag6 {
#[doc = "Normal operation"]
pub const _000: Self = Self::new(0);
#[doc = "Self-diagnostic voltage 0 V"]
pub const _001: Self = Self::new(1);
#[doc = "Self-diagnostic voltage −VREFH"]
pub const _010: Self = Self::new(2);
#[doc = "Self-diagnostic voltage +VREFH"]
pub const _011: Self = Self::new(3);
#[doc = "Self-diagnostic voltage 0 V"]
pub const _100: Self = Self::new(4);
#[doc = "Self-diagnostic voltage −VREFH/2"]
pub const _101: Self = Self::new(5);
#[doc = "Self-diagnostic voltage +VREFH/2"]
pub const _110: Self = Self::new(6);
#[doc = "Setting prohibited"]
pub const _111: Self = Self::new(7);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Shdiag7_SPEC;
pub type Shdiag7 = crate::EnumBitfieldStruct<u8, Shdiag7_SPEC>;
impl Shdiag7 {
#[doc = "Normal operation"]
pub const _000: Self = Self::new(0);
#[doc = "Self-diagnostic voltage 0 V"]
pub const _001: Self = Self::new(1);
#[doc = "Self-diagnostic voltage −VREFH"]
pub const _010: Self = Self::new(2);
#[doc = "Self-diagnostic voltage +VREFH"]
pub const _011: Self = Self::new(3);
#[doc = "Self-diagnostic voltage 0 V"]
pub const _100: Self = Self::new(4);
#[doc = "Self-diagnostic voltage −VREFH/2"]
pub const _101: Self = Self::new(5);
#[doc = "Self-diagnostic voltage +VREFH/2"]
pub const _110: Self = Self::new(6);
#[doc = "Setting prohibited"]
pub const _111: Self = Self::new(7);
}
}
#[doc(hidden)]
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct Adshsdcr1_SPEC;
impl crate::sealed::RegSpec for Adshsdcr1_SPEC {
type DataType = u32;
}
#[doc = "Channel-dedicated Sample-and-hold Circuit Self-diagnosis Control Register 1"]
pub type Adshsdcr1 = crate::RegValueT<Adshsdcr1_SPEC>;
impl Adshsdcr1 {
#[doc = "Scan group 8 channel-dedicated sample-and-hold circuit self-diagnostic voltage selection"]
#[inline(always)]
pub fn shdiag8(
self,
) -> crate::common::RegisterField<
0,
0x7,
1,
0,
adshsdcr1::Shdiag8,
adshsdcr1::Shdiag8,
Adshsdcr1_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
0,
0x7,
1,
0,
adshsdcr1::Shdiag8,
adshsdcr1::Shdiag8,
Adshsdcr1_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
}
impl ::core::default::Default for Adshsdcr1 {
#[inline(always)]
fn default() -> Adshsdcr1 {
<crate::RegValueT<Adshsdcr1_SPEC> as RegisterValue<_>>::new(0)
}
}
pub mod adshsdcr1 {
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Shdiag8_SPEC;
pub type Shdiag8 = crate::EnumBitfieldStruct<u8, Shdiag8_SPEC>;
impl Shdiag8 {
#[doc = "Normal operation"]
pub const _000: Self = Self::new(0);
#[doc = "Self-diagnostic voltage 0 V"]
pub const _001: Self = Self::new(1);
#[doc = "Self-diagnostic voltage −VREFH"]
pub const _010: Self = Self::new(2);
#[doc = "Self-diagnostic voltage +VREFH"]
pub const _011: Self = Self::new(3);
#[doc = "Self-diagnostic voltage 0 V"]
pub const _100: Self = Self::new(4);
#[doc = "Self-diagnostic voltage −VREFH/2"]
pub const _101: Self = Self::new(5);
#[doc = "Self-diagnostic voltage +VREFH/2"]
pub const _110: Self = Self::new(6);
#[doc = "Setting prohibited"]
pub const _111: Self = Self::new(7);
}
}
#[doc(hidden)]
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct Adrefcr_SPEC;
impl crate::sealed::RegSpec for Adrefcr_SPEC {
type DataType = u32;
}
#[doc = "Internal Reference Voltage Monitor Enable Register"]
pub type Adrefcr = crate::RegValueT<Adrefcr_SPEC>;
impl Adrefcr {
#[doc = "Internal Reference Voltage A/D Conversion Select"]
#[inline(always)]
pub fn vde(
self,
) -> crate::common::RegisterField<
0,
0x1,
1,
0,
adrefcr::Vde,
adrefcr::Vde,
Adrefcr_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
0,
0x1,
1,
0,
adrefcr::Vde,
adrefcr::Vde,
Adrefcr_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
}
impl ::core::default::Default for Adrefcr {
#[inline(always)]
fn default() -> Adrefcr {
<crate::RegValueT<Adrefcr_SPEC> as RegisterValue<_>>::new(0)
}
}
pub mod adrefcr {
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Vde_SPEC;
pub type Vde = crate::EnumBitfieldStruct<u8, Vde_SPEC>;
impl Vde {
#[doc = "Disable A/D conversion of internal reference voltage"]
pub const _0: Self = Self::new(0);
#[doc = "Enable A/D conversion of internal reference voltage"]
pub const _1: Self = Self::new(1);
}
}
#[doc(hidden)]
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct Addfsr_SPEC;
impl crate::sealed::RegSpec for Addfsr_SPEC {
type DataType = u32;
}
#[doc = "A/D Converter Digital Filter Selection Register %s"]
pub type Addfsr = crate::RegValueT<Addfsr_SPEC>;
impl Addfsr {
#[doc = "A/D Converter Unit n the 1st Digital Filter Characteristic Selection"]
#[inline(always)]
pub fn dfsel0(
self,
) -> crate::common::RegisterField<
0,
0x3,
1,
0,
addfsr::Dfsel0,
addfsr::Dfsel0,
Addfsr_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
0,
0x3,
1,
0,
addfsr::Dfsel0,
addfsr::Dfsel0,
Addfsr_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[doc = "A/D Converter Unit n the 2nd Digital Filter Characteristic Selection"]
#[inline(always)]
pub fn dfsel1(
self,
) -> crate::common::RegisterField<
8,
0x3,
1,
0,
addfsr::Dfsel1,
addfsr::Dfsel1,
Addfsr_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
8,
0x3,
1,
0,
addfsr::Dfsel1,
addfsr::Dfsel1,
Addfsr_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[doc = "A/D Converter Unit n the 3rd Digital Filter Characteristic Selection"]
#[inline(always)]
pub fn dfsel2(
self,
) -> crate::common::RegisterField<
16,
0x3,
1,
0,
addfsr::Dfsel2,
addfsr::Dfsel2,
Addfsr_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
16,
0x3,
1,
0,
addfsr::Dfsel2,
addfsr::Dfsel2,
Addfsr_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[doc = "A/D Converter Unit n the 4th Digital Filter Characteristic Selection"]
#[inline(always)]
pub fn dfsel3(
self,
) -> crate::common::RegisterField<
24,
0x3,
1,
0,
addfsr::Dfsel3,
addfsr::Dfsel3,
Addfsr_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
24,
0x3,
1,
0,
addfsr::Dfsel3,
addfsr::Dfsel3,
Addfsr_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
}
impl ::core::default::Default for Addfsr {
#[inline(always)]
fn default() -> Addfsr {
<crate::RegValueT<Addfsr_SPEC> as RegisterValue<_>>::new(0)
}
}
pub mod addfsr {
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Dfsel0_SPEC;
pub type Dfsel0 = crate::EnumBitfieldStruct<u8, Dfsel0_SPEC>;
impl Dfsel0 {
#[doc = "Sinc filter"]
pub const _01: Self = Self::new(1);
#[doc = "Setting prohibited"]
pub const OTHERS: Self = Self::new(0);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Dfsel1_SPEC;
pub type Dfsel1 = crate::EnumBitfieldStruct<u8, Dfsel1_SPEC>;
impl Dfsel1 {
#[doc = "Sinc filter"]
pub const _01: Self = Self::new(1);
#[doc = "Setting prohibited"]
pub const OTHERS: Self = Self::new(0);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Dfsel2_SPEC;
pub type Dfsel2 = crate::EnumBitfieldStruct<u8, Dfsel2_SPEC>;
impl Dfsel2 {
#[doc = "Sinc filter"]
pub const _01: Self = Self::new(1);
#[doc = "Setting prohibited"]
pub const OTHERS: Self = Self::new(0);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Dfsel3_SPEC;
pub type Dfsel3 = crate::EnumBitfieldStruct<u8, Dfsel3_SPEC>;
impl Dfsel3 {
#[doc = "Sinc filter"]
pub const _01: Self = Self::new(1);
#[doc = "Setting prohibited"]
pub const OTHERS: Self = Self::new(0);
}
}
#[doc(hidden)]
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct Aduoftr_SPEC;
impl crate::sealed::RegSpec for Aduoftr_SPEC {
type DataType = u32;
}
#[doc = "User Offset Table Register %s"]
pub type Aduoftr = crate::RegValueT<Aduoftr_SPEC>;
impl Aduoftr {
#[doc = "User Offset Table n"]
#[inline(always)]
pub fn uofset(
self,
) -> crate::common::RegisterField<0, 0xffff, 1, 0, u16, u16, Aduoftr_SPEC, crate::common::RW>
{
crate::common::RegisterField::<0,0xffff,1,0,u16,u16,Aduoftr_SPEC,crate::common::RW>::from_register(self,0)
}
}
impl ::core::default::Default for Aduoftr {
#[inline(always)]
fn default() -> Aduoftr {
<crate::RegValueT<Aduoftr_SPEC> as RegisterValue<_>>::new(0)
}
}
#[doc(hidden)]
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct Adugtr_SPEC;
impl crate::sealed::RegSpec for Adugtr_SPEC {
type DataType = u32;
}
#[doc = "User Gain Table Register %s"]
pub type Adugtr = crate::RegValueT<Adugtr_SPEC>;
impl Adugtr {
#[doc = "User Gain Table n"]
#[inline(always)]
pub fn ugain(
self,
) -> crate::common::RegisterField<0, 0xffff, 1, 0, u16, u16, Adugtr_SPEC, crate::common::RW>
{
crate::common::RegisterField::<0,0xffff,1,0,u16,u16,Adugtr_SPEC,crate::common::RW>::from_register(self,0)
}
}
impl ::core::default::Default for Adugtr {
#[inline(always)]
fn default() -> Adugtr {
<crate::RegValueT<Adugtr_SPEC> as RegisterValue<_>>::new(16384)
}
}
#[doc(hidden)]
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct Adlimintcr_SPEC;
impl crate::sealed::RegSpec for Adlimintcr_SPEC {
type DataType = u32;
}
#[doc = "Limiter Clip Interrupt Enable Register"]
pub type Adlimintcr = crate::RegValueT<Adlimintcr_SPEC>;
impl Adlimintcr {
#[doc = "Limiter Clip Interrupt n Enable bit"]
#[inline(always)]
pub fn limie0(
self,
) -> crate::common::RegisterField<
0,
0x1,
1,
0,
adlimintcr::Limie0,
adlimintcr::Limie0,
Adlimintcr_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
0,
0x1,
1,
0,
adlimintcr::Limie0,
adlimintcr::Limie0,
Adlimintcr_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[doc = "Limiter Clip Interrupt n Enable bit"]
#[inline(always)]
pub fn limie1(
self,
) -> crate::common::RegisterField<
1,
0x1,
1,
0,
adlimintcr::Limie1,
adlimintcr::Limie1,
Adlimintcr_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
1,
0x1,
1,
0,
adlimintcr::Limie1,
adlimintcr::Limie1,
Adlimintcr_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[doc = "Limiter Clip Interrupt n Enable bit"]
#[inline(always)]
pub fn limie2(
self,
) -> crate::common::RegisterField<
2,
0x1,
1,
0,
adlimintcr::Limie2,
adlimintcr::Limie2,
Adlimintcr_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
2,
0x1,
1,
0,
adlimintcr::Limie2,
adlimintcr::Limie2,
Adlimintcr_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[doc = "Limiter Clip Interrupt n Enable bit"]
#[inline(always)]
pub fn limie3(
self,
) -> crate::common::RegisterField<
3,
0x1,
1,
0,
adlimintcr::Limie3,
adlimintcr::Limie3,
Adlimintcr_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
3,
0x1,
1,
0,
adlimintcr::Limie3,
adlimintcr::Limie3,
Adlimintcr_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[doc = "Limiter Clip Interrupt n Enable bit"]
#[inline(always)]
pub fn limie4(
self,
) -> crate::common::RegisterField<
4,
0x1,
1,
0,
adlimintcr::Limie4,
adlimintcr::Limie4,
Adlimintcr_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
4,
0x1,
1,
0,
adlimintcr::Limie4,
adlimintcr::Limie4,
Adlimintcr_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[doc = "Limiter Clip Interrupt n Enable bit"]
#[inline(always)]
pub fn limie5(
self,
) -> crate::common::RegisterField<
5,
0x1,
1,
0,
adlimintcr::Limie5,
adlimintcr::Limie5,
Adlimintcr_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
5,
0x1,
1,
0,
adlimintcr::Limie5,
adlimintcr::Limie5,
Adlimintcr_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[doc = "Limiter Clip Interrupt n Enable bit"]
#[inline(always)]
pub fn limie6(
self,
) -> crate::common::RegisterField<
6,
0x1,
1,
0,
adlimintcr::Limie6,
adlimintcr::Limie6,
Adlimintcr_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
6,
0x1,
1,
0,
adlimintcr::Limie6,
adlimintcr::Limie6,
Adlimintcr_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[doc = "Limiter Clip Interrupt n Enable bit"]
#[inline(always)]
pub fn limie7(
self,
) -> crate::common::RegisterField<
7,
0x1,
1,
0,
adlimintcr::Limie7,
adlimintcr::Limie7,
Adlimintcr_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
7,
0x1,
1,
0,
adlimintcr::Limie7,
adlimintcr::Limie7,
Adlimintcr_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[doc = "Limiter Clip Interrupt n Enable bit"]
#[inline(always)]
pub fn limie8(
self,
) -> crate::common::RegisterField<
8,
0x1,
1,
0,
adlimintcr::Limie8,
adlimintcr::Limie8,
Adlimintcr_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
8,
0x1,
1,
0,
adlimintcr::Limie8,
adlimintcr::Limie8,
Adlimintcr_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
}
impl ::core::default::Default for Adlimintcr {
#[inline(always)]
fn default() -> Adlimintcr {
<crate::RegValueT<Adlimintcr_SPEC> as RegisterValue<_>>::new(0)
}
}
pub mod adlimintcr {
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Limie0_SPEC;
pub type Limie0 = crate::EnumBitfieldStruct<u8, Limie0_SPEC>;
impl Limie0 {
#[doc = "Disable the limiter clip interrupt n"]
pub const _0: Self = Self::new(0);
#[doc = "Enable the limiter clip interrupt n"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Limie1_SPEC;
pub type Limie1 = crate::EnumBitfieldStruct<u8, Limie1_SPEC>;
impl Limie1 {
#[doc = "Disable the limiter clip interrupt n"]
pub const _0: Self = Self::new(0);
#[doc = "Enable the limiter clip interrupt n"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Limie2_SPEC;
pub type Limie2 = crate::EnumBitfieldStruct<u8, Limie2_SPEC>;
impl Limie2 {
#[doc = "Disable the limiter clip interrupt n"]
pub const _0: Self = Self::new(0);
#[doc = "Enable the limiter clip interrupt n"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Limie3_SPEC;
pub type Limie3 = crate::EnumBitfieldStruct<u8, Limie3_SPEC>;
impl Limie3 {
#[doc = "Disable the limiter clip interrupt n"]
pub const _0: Self = Self::new(0);
#[doc = "Enable the limiter clip interrupt n"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Limie4_SPEC;
pub type Limie4 = crate::EnumBitfieldStruct<u8, Limie4_SPEC>;
impl Limie4 {
#[doc = "Disable the limiter clip interrupt n"]
pub const _0: Self = Self::new(0);
#[doc = "Enable the limiter clip interrupt n"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Limie5_SPEC;
pub type Limie5 = crate::EnumBitfieldStruct<u8, Limie5_SPEC>;
impl Limie5 {
#[doc = "Disable the limiter clip interrupt n"]
pub const _0: Self = Self::new(0);
#[doc = "Enable the limiter clip interrupt n"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Limie6_SPEC;
pub type Limie6 = crate::EnumBitfieldStruct<u8, Limie6_SPEC>;
impl Limie6 {
#[doc = "Disable the limiter clip interrupt n"]
pub const _0: Self = Self::new(0);
#[doc = "Enable the limiter clip interrupt n"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Limie7_SPEC;
pub type Limie7 = crate::EnumBitfieldStruct<u8, Limie7_SPEC>;
impl Limie7 {
#[doc = "Disable the limiter clip interrupt n"]
pub const _0: Self = Self::new(0);
#[doc = "Enable the limiter clip interrupt n"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Limie8_SPEC;
pub type Limie8 = crate::EnumBitfieldStruct<u8, Limie8_SPEC>;
impl Limie8 {
#[doc = "Disable the limiter clip interrupt n"]
pub const _0: Self = Self::new(0);
#[doc = "Enable the limiter clip interrupt n"]
pub const _1: Self = Self::new(1);
}
}
#[doc(hidden)]
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct Adlimtr_SPEC;
impl crate::sealed::RegSpec for Adlimtr_SPEC {
type DataType = u32;
}
#[doc = "Limiter Clip Table Register %s"]
pub type Adlimtr = crate::RegValueT<Adlimtr_SPEC>;
impl Adlimtr {
#[doc = "Limiter clip table n : Lower-side limit value"]
#[inline(always)]
pub fn liml(
self,
) -> crate::common::RegisterField<0, 0xffff, 1, 0, u16, u16, Adlimtr_SPEC, crate::common::RW>
{
crate::common::RegisterField::<0,0xffff,1,0,u16,u16,Adlimtr_SPEC,crate::common::RW>::from_register(self,0)
}
#[doc = "Limiter clip table n : Upper-side limit value"]
#[inline(always)]
pub fn limu(
self,
) -> crate::common::RegisterField<16, 0xffff, 1, 0, u16, u16, Adlimtr_SPEC, crate::common::RW>
{
crate::common::RegisterField::<16,0xffff,1,0,u16,u16,Adlimtr_SPEC,crate::common::RW>::from_register(self,0)
}
}
impl ::core::default::Default for Adlimtr {
#[inline(always)]
fn default() -> Adlimtr {
<crate::RegValueT<Adlimtr_SPEC> as RegisterValue<_>>::new(0)
}
}
#[doc(hidden)]
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct Adcmpenr_SPEC;
impl crate::sealed::RegSpec for Adcmpenr_SPEC {
type DataType = u32;
}
#[doc = "Compare Match Enable Register"]
pub type Adcmpenr = crate::RegValueT<Adcmpenr_SPEC>;
impl Adcmpenr {
#[doc = "Compare Match n Enable"]
#[inline(always)]
pub fn cmpen0(
self,
) -> crate::common::RegisterField<
0,
0x1,
1,
0,
adcmpenr::Cmpen0,
adcmpenr::Cmpen0,
Adcmpenr_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
0,
0x1,
1,
0,
adcmpenr::Cmpen0,
adcmpenr::Cmpen0,
Adcmpenr_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[doc = "Compare Match n Enable"]
#[inline(always)]
pub fn cmpen1(
self,
) -> crate::common::RegisterField<
1,
0x1,
1,
0,
adcmpenr::Cmpen1,
adcmpenr::Cmpen1,
Adcmpenr_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
1,
0x1,
1,
0,
adcmpenr::Cmpen1,
adcmpenr::Cmpen1,
Adcmpenr_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[doc = "Compare Match n Enable"]
#[inline(always)]
pub fn cmpen2(
self,
) -> crate::common::RegisterField<
2,
0x1,
1,
0,
adcmpenr::Cmpen2,
adcmpenr::Cmpen2,
Adcmpenr_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
2,
0x1,
1,
0,
adcmpenr::Cmpen2,
adcmpenr::Cmpen2,
Adcmpenr_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[doc = "Compare Match n Enable"]
#[inline(always)]
pub fn cmpen3(
self,
) -> crate::common::RegisterField<
3,
0x1,
1,
0,
adcmpenr::Cmpen3,
adcmpenr::Cmpen3,
Adcmpenr_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
3,
0x1,
1,
0,
adcmpenr::Cmpen3,
adcmpenr::Cmpen3,
Adcmpenr_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[doc = "Compare Match n Enable"]
#[inline(always)]
pub fn cmpen4(
self,
) -> crate::common::RegisterField<
4,
0x1,
1,
0,
adcmpenr::Cmpen4,
adcmpenr::Cmpen4,
Adcmpenr_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
4,
0x1,
1,
0,
adcmpenr::Cmpen4,
adcmpenr::Cmpen4,
Adcmpenr_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[doc = "Compare Match n Enable"]
#[inline(always)]
pub fn cmpen5(
self,
) -> crate::common::RegisterField<
5,
0x1,
1,
0,
adcmpenr::Cmpen5,
adcmpenr::Cmpen5,
Adcmpenr_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
5,
0x1,
1,
0,
adcmpenr::Cmpen5,
adcmpenr::Cmpen5,
Adcmpenr_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[doc = "Compare Match n Enable"]
#[inline(always)]
pub fn cmpen6(
self,
) -> crate::common::RegisterField<
6,
0x1,
1,
0,
adcmpenr::Cmpen6,
adcmpenr::Cmpen6,
Adcmpenr_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
6,
0x1,
1,
0,
adcmpenr::Cmpen6,
adcmpenr::Cmpen6,
Adcmpenr_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[doc = "Compare Match n Enable"]
#[inline(always)]
pub fn cmpen7(
self,
) -> crate::common::RegisterField<
7,
0x1,
1,
0,
adcmpenr::Cmpen7,
adcmpenr::Cmpen7,
Adcmpenr_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
7,
0x1,
1,
0,
adcmpenr::Cmpen7,
adcmpenr::Cmpen7,
Adcmpenr_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
}
impl ::core::default::Default for Adcmpenr {
#[inline(always)]
fn default() -> Adcmpenr {
<crate::RegValueT<Adcmpenr_SPEC> as RegisterValue<_>>::new(0)
}
}
pub mod adcmpenr {
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Cmpen0_SPEC;
pub type Cmpen0 = crate::EnumBitfieldStruct<u8, Cmpen0_SPEC>;
impl Cmpen0 {
#[doc = "Disable the compare match n"]
pub const _0: Self = Self::new(0);
#[doc = "Enable the compare match n"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Cmpen1_SPEC;
pub type Cmpen1 = crate::EnumBitfieldStruct<u8, Cmpen1_SPEC>;
impl Cmpen1 {
#[doc = "Disable the compare match n"]
pub const _0: Self = Self::new(0);
#[doc = "Enable the compare match n"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Cmpen2_SPEC;
pub type Cmpen2 = crate::EnumBitfieldStruct<u8, Cmpen2_SPEC>;
impl Cmpen2 {
#[doc = "Disable the compare match n"]
pub const _0: Self = Self::new(0);
#[doc = "Enable the compare match n"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Cmpen3_SPEC;
pub type Cmpen3 = crate::EnumBitfieldStruct<u8, Cmpen3_SPEC>;
impl Cmpen3 {
#[doc = "Disable the compare match n"]
pub const _0: Self = Self::new(0);
#[doc = "Enable the compare match n"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Cmpen4_SPEC;
pub type Cmpen4 = crate::EnumBitfieldStruct<u8, Cmpen4_SPEC>;
impl Cmpen4 {
#[doc = "Disable the compare match n"]
pub const _0: Self = Self::new(0);
#[doc = "Enable the compare match n"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Cmpen5_SPEC;
pub type Cmpen5 = crate::EnumBitfieldStruct<u8, Cmpen5_SPEC>;
impl Cmpen5 {
#[doc = "Disable the compare match n"]
pub const _0: Self = Self::new(0);
#[doc = "Enable the compare match n"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Cmpen6_SPEC;
pub type Cmpen6 = crate::EnumBitfieldStruct<u8, Cmpen6_SPEC>;
impl Cmpen6 {
#[doc = "Disable the compare match n"]
pub const _0: Self = Self::new(0);
#[doc = "Enable the compare match n"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Cmpen7_SPEC;
pub type Cmpen7 = crate::EnumBitfieldStruct<u8, Cmpen7_SPEC>;
impl Cmpen7 {
#[doc = "Disable the compare match n"]
pub const _0: Self = Self::new(0);
#[doc = "Enable the compare match n"]
pub const _1: Self = Self::new(1);
}
}
#[doc(hidden)]
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct Adcmpintcr_SPEC;
impl crate::sealed::RegSpec for Adcmpintcr_SPEC {
type DataType = u32;
}
#[doc = "Compare Match Interrupt Enable Register"]
pub type Adcmpintcr = crate::RegValueT<Adcmpintcr_SPEC>;
impl Adcmpintcr {
#[doc = "Compare Match Interrupt n Enable"]
#[inline(always)]
pub fn cmpie0(
self,
) -> crate::common::RegisterField<
0,
0x1,
1,
0,
adcmpintcr::Cmpie0,
adcmpintcr::Cmpie0,
Adcmpintcr_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
0,
0x1,
1,
0,
adcmpintcr::Cmpie0,
adcmpintcr::Cmpie0,
Adcmpintcr_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[doc = "Compare Match Interrupt n Enable"]
#[inline(always)]
pub fn cmpie1(
self,
) -> crate::common::RegisterField<
1,
0x1,
1,
0,
adcmpintcr::Cmpie1,
adcmpintcr::Cmpie1,
Adcmpintcr_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
1,
0x1,
1,
0,
adcmpintcr::Cmpie1,
adcmpintcr::Cmpie1,
Adcmpintcr_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[doc = "Compare Match Interrupt n Enable"]
#[inline(always)]
pub fn cmpie2(
self,
) -> crate::common::RegisterField<
2,
0x1,
1,
0,
adcmpintcr::Cmpie2,
adcmpintcr::Cmpie2,
Adcmpintcr_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
2,
0x1,
1,
0,
adcmpintcr::Cmpie2,
adcmpintcr::Cmpie2,
Adcmpintcr_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[doc = "Compare Match Interrupt n Enable"]
#[inline(always)]
pub fn cmpie3(
self,
) -> crate::common::RegisterField<
3,
0x1,
1,
0,
adcmpintcr::Cmpie3,
adcmpintcr::Cmpie3,
Adcmpintcr_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
3,
0x1,
1,
0,
adcmpintcr::Cmpie3,
adcmpintcr::Cmpie3,
Adcmpintcr_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
}
impl ::core::default::Default for Adcmpintcr {
#[inline(always)]
fn default() -> Adcmpintcr {
<crate::RegValueT<Adcmpintcr_SPEC> as RegisterValue<_>>::new(0)
}
}
pub mod adcmpintcr {
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Cmpie0_SPEC;
pub type Cmpie0 = crate::EnumBitfieldStruct<u8, Cmpie0_SPEC>;
impl Cmpie0 {
#[doc = "Disable the compare match interrupt n"]
pub const _0: Self = Self::new(0);
#[doc = "Enable the compare match interrupt n"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Cmpie1_SPEC;
pub type Cmpie1 = crate::EnumBitfieldStruct<u8, Cmpie1_SPEC>;
impl Cmpie1 {
#[doc = "Disable the compare match interrupt n"]
pub const _0: Self = Self::new(0);
#[doc = "Enable the compare match interrupt n"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Cmpie2_SPEC;
pub type Cmpie2 = crate::EnumBitfieldStruct<u8, Cmpie2_SPEC>;
impl Cmpie2 {
#[doc = "Disable the compare match interrupt n"]
pub const _0: Self = Self::new(0);
#[doc = "Enable the compare match interrupt n"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Cmpie3_SPEC;
pub type Cmpie3 = crate::EnumBitfieldStruct<u8, Cmpie3_SPEC>;
impl Cmpie3 {
#[doc = "Disable the compare match interrupt n"]
pub const _0: Self = Self::new(0);
#[doc = "Enable the compare match interrupt n"]
pub const _1: Self = Self::new(1);
}
}
#[doc(hidden)]
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct Adccmpcr_SPEC;
impl crate::sealed::RegSpec for Adccmpcr_SPEC {
type DataType = u32;
}
#[doc = "Composite Compare Match Configuration Register %s"]
pub type Adccmpcr = crate::RegValueT<Adccmpcr_SPEC>;
impl Adccmpcr {
#[doc = "Composite Compare Match Condition Selection"]
#[inline(always)]
pub fn ccmpcnd(
self,
) -> crate::common::RegisterField<
0,
0x3,
1,
0,
adccmpcr::Ccmpcnd,
adccmpcr::Ccmpcnd,
Adccmpcr_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
0,
0x3,
1,
0,
adccmpcr::Ccmpcnd,
adccmpcr::Ccmpcnd,
Adccmpcr_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[doc = "Composite Compare Match Condition Table Selection"]
#[inline(always)]
pub fn ccmptbl0(
self,
) -> crate::common::RegisterField<
16,
0x1,
1,
0,
adccmpcr::Ccmptbl0,
adccmpcr::Ccmptbl0,
Adccmpcr_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
16,
0x1,
1,
0,
adccmpcr::Ccmptbl0,
adccmpcr::Ccmptbl0,
Adccmpcr_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[doc = "Composite Compare Match Condition Table Selection"]
#[inline(always)]
pub fn ccmptbl1(
self,
) -> crate::common::RegisterField<
17,
0x1,
1,
0,
adccmpcr::Ccmptbl1,
adccmpcr::Ccmptbl1,
Adccmpcr_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
17,
0x1,
1,
0,
adccmpcr::Ccmptbl1,
adccmpcr::Ccmptbl1,
Adccmpcr_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[doc = "Composite Compare Match Condition Table Selection"]
#[inline(always)]
pub fn ccmptbl2(
self,
) -> crate::common::RegisterField<
18,
0x1,
1,
0,
adccmpcr::Ccmptbl2,
adccmpcr::Ccmptbl2,
Adccmpcr_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
18,
0x1,
1,
0,
adccmpcr::Ccmptbl2,
adccmpcr::Ccmptbl2,
Adccmpcr_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[doc = "Composite Compare Match Condition Table Selection"]
#[inline(always)]
pub fn ccmptbl3(
self,
) -> crate::common::RegisterField<
19,
0x1,
1,
0,
adccmpcr::Ccmptbl3,
adccmpcr::Ccmptbl3,
Adccmpcr_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
19,
0x1,
1,
0,
adccmpcr::Ccmptbl3,
adccmpcr::Ccmptbl3,
Adccmpcr_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[doc = "Composite Compare Match Condition Table Selection"]
#[inline(always)]
pub fn ccmptbl4(
self,
) -> crate::common::RegisterField<
20,
0x1,
1,
0,
adccmpcr::Ccmptbl4,
adccmpcr::Ccmptbl4,
Adccmpcr_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
20,
0x1,
1,
0,
adccmpcr::Ccmptbl4,
adccmpcr::Ccmptbl4,
Adccmpcr_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[doc = "Composite Compare Match Condition Table Selection"]
#[inline(always)]
pub fn ccmptbl5(
self,
) -> crate::common::RegisterField<
21,
0x1,
1,
0,
adccmpcr::Ccmptbl5,
adccmpcr::Ccmptbl5,
Adccmpcr_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
21,
0x1,
1,
0,
adccmpcr::Ccmptbl5,
adccmpcr::Ccmptbl5,
Adccmpcr_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[doc = "Composite Compare Match Condition Table Selection"]
#[inline(always)]
pub fn ccmptbl6(
self,
) -> crate::common::RegisterField<
22,
0x1,
1,
0,
adccmpcr::Ccmptbl6,
adccmpcr::Ccmptbl6,
Adccmpcr_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
22,
0x1,
1,
0,
adccmpcr::Ccmptbl6,
adccmpcr::Ccmptbl6,
Adccmpcr_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[doc = "Composite Compare Match Condition Table Selection"]
#[inline(always)]
pub fn ccmptbl7(
self,
) -> crate::common::RegisterField<
23,
0x1,
1,
0,
adccmpcr::Ccmptbl7,
adccmpcr::Ccmptbl7,
Adccmpcr_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
23,
0x1,
1,
0,
adccmpcr::Ccmptbl7,
adccmpcr::Ccmptbl7,
Adccmpcr_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
}
impl ::core::default::Default for Adccmpcr {
#[inline(always)]
fn default() -> Adccmpcr {
<crate::RegValueT<Adccmpcr_SPEC> as RegisterValue<_>>::new(0)
}
}
pub mod adccmpcr {
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Ccmpcnd_SPEC;
pub type Ccmpcnd = crate::EnumBitfieldStruct<u8, Ccmpcnd_SPEC>;
impl Ccmpcnd {
#[doc = "Logical disjunction (OR) conditions"]
pub const _00: Self = Self::new(0);
#[doc = "Setting prohibited"]
pub const OTHERS: Self = Self::new(0);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Ccmptbl0_SPEC;
pub type Ccmptbl0 = crate::EnumBitfieldStruct<u8, Ccmptbl0_SPEC>;
impl Ccmptbl0 {
#[doc = "Not use the compare match table m"]
pub const _0: Self = Self::new(0);
#[doc = "Use the compare match table m"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Ccmptbl1_SPEC;
pub type Ccmptbl1 = crate::EnumBitfieldStruct<u8, Ccmptbl1_SPEC>;
impl Ccmptbl1 {
#[doc = "Not use the compare match table m"]
pub const _0: Self = Self::new(0);
#[doc = "Use the compare match table m"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Ccmptbl2_SPEC;
pub type Ccmptbl2 = crate::EnumBitfieldStruct<u8, Ccmptbl2_SPEC>;
impl Ccmptbl2 {
#[doc = "Not use the compare match table m"]
pub const _0: Self = Self::new(0);
#[doc = "Use the compare match table m"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Ccmptbl3_SPEC;
pub type Ccmptbl3 = crate::EnumBitfieldStruct<u8, Ccmptbl3_SPEC>;
impl Ccmptbl3 {
#[doc = "Not use the compare match table m"]
pub const _0: Self = Self::new(0);
#[doc = "Use the compare match table m"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Ccmptbl4_SPEC;
pub type Ccmptbl4 = crate::EnumBitfieldStruct<u8, Ccmptbl4_SPEC>;
impl Ccmptbl4 {
#[doc = "Not use the compare match table m"]
pub const _0: Self = Self::new(0);
#[doc = "Use the compare match table m"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Ccmptbl5_SPEC;
pub type Ccmptbl5 = crate::EnumBitfieldStruct<u8, Ccmptbl5_SPEC>;
impl Ccmptbl5 {
#[doc = "Not use the compare match table m"]
pub const _0: Self = Self::new(0);
#[doc = "Use the compare match table m"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Ccmptbl6_SPEC;
pub type Ccmptbl6 = crate::EnumBitfieldStruct<u8, Ccmptbl6_SPEC>;
impl Ccmptbl6 {
#[doc = "Not use the compare match table m"]
pub const _0: Self = Self::new(0);
#[doc = "Use the compare match table m"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Ccmptbl7_SPEC;
pub type Ccmptbl7 = crate::EnumBitfieldStruct<u8, Ccmptbl7_SPEC>;
impl Ccmptbl7 {
#[doc = "Not use the compare match table m"]
pub const _0: Self = Self::new(0);
#[doc = "Use the compare match table m"]
pub const _1: Self = Self::new(1);
}
}
#[doc(hidden)]
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct Adcmpmdr0_SPEC;
impl crate::sealed::RegSpec for Adcmpmdr0_SPEC {
type DataType = u32;
}
#[doc = "Compare Match Mode Selection Register 0"]
pub type Adcmpmdr0 = crate::RegValueT<Adcmpmdr0_SPEC>;
impl Adcmpmdr0 {
#[doc = "Compare Match 0 : Match Mode Selection"]
#[inline(always)]
pub fn cmpmd0(
self,
) -> crate::common::RegisterField<
0,
0x3,
1,
0,
adcmpmdr0::Cmpmd0,
adcmpmdr0::Cmpmd0,
Adcmpmdr0_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
0,
0x3,
1,
0,
adcmpmdr0::Cmpmd0,
adcmpmdr0::Cmpmd0,
Adcmpmdr0_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[doc = "Compare Match 1 : Match Mode Selection"]
#[inline(always)]
pub fn cmpmd1(
self,
) -> crate::common::RegisterField<
8,
0x3,
1,
0,
adcmpmdr0::Cmpmd1,
adcmpmdr0::Cmpmd1,
Adcmpmdr0_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
8,
0x3,
1,
0,
adcmpmdr0::Cmpmd1,
adcmpmdr0::Cmpmd1,
Adcmpmdr0_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[doc = "Compare Match 2 : Match Mode Selection"]
#[inline(always)]
pub fn cmpmd2(
self,
) -> crate::common::RegisterField<
16,
0x3,
1,
0,
adcmpmdr0::Cmpmd2,
adcmpmdr0::Cmpmd2,
Adcmpmdr0_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
16,
0x3,
1,
0,
adcmpmdr0::Cmpmd2,
adcmpmdr0::Cmpmd2,
Adcmpmdr0_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[doc = "Compare Match 3 : Match Mode Selection"]
#[inline(always)]
pub fn cmpmd3(
self,
) -> crate::common::RegisterField<
24,
0x3,
1,
0,
adcmpmdr0::Cmpmd3,
adcmpmdr0::Cmpmd3,
Adcmpmdr0_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
24,
0x3,
1,
0,
adcmpmdr0::Cmpmd3,
adcmpmdr0::Cmpmd3,
Adcmpmdr0_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
}
impl ::core::default::Default for Adcmpmdr0 {
#[inline(always)]
fn default() -> Adcmpmdr0 {
<crate::RegValueT<Adcmpmdr0_SPEC> as RegisterValue<_>>::new(0)
}
}
pub mod adcmpmdr0 {
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Cmpmd0_SPEC;
pub type Cmpmd0 = crate::EnumBitfieldStruct<u8, Cmpmd0_SPEC>;
impl Cmpmd0 {
#[doc = "Generate the match event when high-side level or more"]
pub const _00: Self = Self::new(0);
#[doc = "Generate the match event when low-side level or less"]
pub const _01: Self = Self::new(1);
#[doc = "Generate the match event when high-side level or more, or low-side level or less"]
pub const _10: Self = Self::new(2);
#[doc = "Generate the match event when low-side level or more and high-side level or less"]
pub const _11: Self = Self::new(3);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Cmpmd1_SPEC;
pub type Cmpmd1 = crate::EnumBitfieldStruct<u8, Cmpmd1_SPEC>;
impl Cmpmd1 {
#[doc = "Generate the match event when high-side level or more"]
pub const _00: Self = Self::new(0);
#[doc = "Generate the match event when low-side level or less"]
pub const _01: Self = Self::new(1);
#[doc = "Generate the match event when high-side level or more, or low-side level or less"]
pub const _10: Self = Self::new(2);
#[doc = "Generate the match event when low-side level or more and high-side level or less"]
pub const _11: Self = Self::new(3);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Cmpmd2_SPEC;
pub type Cmpmd2 = crate::EnumBitfieldStruct<u8, Cmpmd2_SPEC>;
impl Cmpmd2 {
#[doc = "Generate the match event when high-side level or more"]
pub const _00: Self = Self::new(0);
#[doc = "Generate the match event when low-side level or less"]
pub const _01: Self = Self::new(1);
#[doc = "Generate the match event when high-side level or more, or low-side level or less"]
pub const _10: Self = Self::new(2);
#[doc = "Generate the match event when low-side level or more and high-side level or less"]
pub const _11: Self = Self::new(3);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Cmpmd3_SPEC;
pub type Cmpmd3 = crate::EnumBitfieldStruct<u8, Cmpmd3_SPEC>;
impl Cmpmd3 {
#[doc = "Generate the match event when high-side level or more"]
pub const _00: Self = Self::new(0);
#[doc = "Generate the match event when low-side level or less"]
pub const _01: Self = Self::new(1);
#[doc = "Generate the match event when high-side level or more, or low-side level or less"]
pub const _10: Self = Self::new(2);
#[doc = "Generate the match event when low-side level or more and high-side level or less"]
pub const _11: Self = Self::new(3);
}
}
#[doc(hidden)]
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct Adcmpmdr1_SPEC;
impl crate::sealed::RegSpec for Adcmpmdr1_SPEC {
type DataType = u32;
}
#[doc = "Compare Match Mode Selection Register 1"]
pub type Adcmpmdr1 = crate::RegValueT<Adcmpmdr1_SPEC>;
impl Adcmpmdr1 {
#[doc = "Compare Match 4 : Match Mode Selection"]
#[inline(always)]
pub fn cmpmd4(
self,
) -> crate::common::RegisterField<
0,
0x3,
1,
0,
adcmpmdr1::Cmpmd4,
adcmpmdr1::Cmpmd4,
Adcmpmdr1_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
0,
0x3,
1,
0,
adcmpmdr1::Cmpmd4,
adcmpmdr1::Cmpmd4,
Adcmpmdr1_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[doc = "Compare Match 5 : Match Mode Selection"]
#[inline(always)]
pub fn cmpmd5(
self,
) -> crate::common::RegisterField<
8,
0x3,
1,
0,
adcmpmdr1::Cmpmd5,
adcmpmdr1::Cmpmd5,
Adcmpmdr1_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
8,
0x3,
1,
0,
adcmpmdr1::Cmpmd5,
adcmpmdr1::Cmpmd5,
Adcmpmdr1_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[doc = "Compare Match 6 : Match Mode Selection"]
#[inline(always)]
pub fn cmpmd6(
self,
) -> crate::common::RegisterField<
16,
0x3,
1,
0,
adcmpmdr1::Cmpmd6,
adcmpmdr1::Cmpmd6,
Adcmpmdr1_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
16,
0x3,
1,
0,
adcmpmdr1::Cmpmd6,
adcmpmdr1::Cmpmd6,
Adcmpmdr1_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[doc = "Compare Match 7 : Match Mode Selection"]
#[inline(always)]
pub fn cmpmd7(
self,
) -> crate::common::RegisterField<
24,
0x3,
1,
0,
adcmpmdr1::Cmpmd7,
adcmpmdr1::Cmpmd7,
Adcmpmdr1_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
24,
0x3,
1,
0,
adcmpmdr1::Cmpmd7,
adcmpmdr1::Cmpmd7,
Adcmpmdr1_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
}
impl ::core::default::Default for Adcmpmdr1 {
#[inline(always)]
fn default() -> Adcmpmdr1 {
<crate::RegValueT<Adcmpmdr1_SPEC> as RegisterValue<_>>::new(0)
}
}
pub mod adcmpmdr1 {
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Cmpmd4_SPEC;
pub type Cmpmd4 = crate::EnumBitfieldStruct<u8, Cmpmd4_SPEC>;
impl Cmpmd4 {
#[doc = "Generate the match event when high-side level or more"]
pub const _00: Self = Self::new(0);
#[doc = "Generate the match event when low-side level or less"]
pub const _01: Self = Self::new(1);
#[doc = "Generate the match event when high-side level or more, or low-side level or less"]
pub const _10: Self = Self::new(2);
#[doc = "Generate the match event when low-side level or more and high-side level or less"]
pub const _11: Self = Self::new(3);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Cmpmd5_SPEC;
pub type Cmpmd5 = crate::EnumBitfieldStruct<u8, Cmpmd5_SPEC>;
impl Cmpmd5 {
#[doc = "Generate the match event when high-side level or more"]
pub const _00: Self = Self::new(0);
#[doc = "Generate the match event when low-side level or less"]
pub const _01: Self = Self::new(1);
#[doc = "Generate the match event when high-side level or more, or low-side level or less"]
pub const _10: Self = Self::new(2);
#[doc = "Generate the match event when low-side level or more and high-side level or less"]
pub const _11: Self = Self::new(3);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Cmpmd6_SPEC;
pub type Cmpmd6 = crate::EnumBitfieldStruct<u8, Cmpmd6_SPEC>;
impl Cmpmd6 {
#[doc = "Generate the match event when high-side level or more"]
pub const _00: Self = Self::new(0);
#[doc = "Generate the match event when low-side level or less"]
pub const _01: Self = Self::new(1);
#[doc = "Generate the match event when high-side level or more, or low-side level or less"]
pub const _10: Self = Self::new(2);
#[doc = "Generate the match event when low-side level or more and high-side level or less"]
pub const _11: Self = Self::new(3);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Cmpmd7_SPEC;
pub type Cmpmd7 = crate::EnumBitfieldStruct<u8, Cmpmd7_SPEC>;
impl Cmpmd7 {
#[doc = "Generate the match event when high-side level or more"]
pub const _00: Self = Self::new(0);
#[doc = "Generate the match event when low-side level or less"]
pub const _01: Self = Self::new(1);
#[doc = "Generate the match event when high-side level or more, or low-side level or less"]
pub const _10: Self = Self::new(2);
#[doc = "Generate the match event when low-side level or more and high-side level or less"]
pub const _11: Self = Self::new(3);
}
}
#[doc(hidden)]
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct Adcmptbr_SPEC;
impl crate::sealed::RegSpec for Adcmptbr_SPEC {
type DataType = u32;
}
#[doc = "Compare Match Table Register %s"]
pub type Adcmptbr = crate::RegValueT<Adcmptbr_SPEC>;
impl Adcmptbr {
#[doc = "Compare Match Table n : Low-side level"]
#[inline(always)]
pub fn cmptbl(
self,
) -> crate::common::RegisterField<0, 0xffff, 1, 0, u16, u16, Adcmptbr_SPEC, crate::common::RW>
{
crate::common::RegisterField::<0,0xffff,1,0,u16,u16,Adcmptbr_SPEC,crate::common::RW>::from_register(self,0)
}
#[doc = "Compare Match Table n : High-side level"]
#[inline(always)]
pub fn cmptbh(
self,
) -> crate::common::RegisterField<16, 0xffff, 1, 0, u16, u16, Adcmptbr_SPEC, crate::common::RW>
{
crate::common::RegisterField::<16,0xffff,1,0,u16,u16,Adcmptbr_SPEC,crate::common::RW>::from_register(self,0)
}
}
impl ::core::default::Default for Adcmptbr {
#[inline(always)]
fn default() -> Adcmptbr {
<crate::RegValueT<Adcmptbr_SPEC> as RegisterValue<_>>::new(4294901760)
}
}
#[doc(hidden)]
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct Adfifointcr_SPEC;
impl crate::sealed::RegSpec for Adfifointcr_SPEC {
type DataType = u32;
}
#[doc = "FIFO Interrupt Control Register"]
pub type Adfifointcr = crate::RegValueT<Adfifointcr_SPEC>;
impl Adfifointcr {
#[doc = "Scan Group n FIFO Interrupt Enable"]
#[inline(always)]
pub fn fifoie0(
self,
) -> crate::common::RegisterField<
0,
0x1,
1,
0,
adfifointcr::Fifoie0,
adfifointcr::Fifoie0,
Adfifointcr_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
0,
0x1,
1,
0,
adfifointcr::Fifoie0,
adfifointcr::Fifoie0,
Adfifointcr_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[doc = "Scan Group n FIFO Interrupt Enable"]
#[inline(always)]
pub fn fifoie1(
self,
) -> crate::common::RegisterField<
1,
0x1,
1,
0,
adfifointcr::Fifoie1,
adfifointcr::Fifoie1,
Adfifointcr_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
1,
0x1,
1,
0,
adfifointcr::Fifoie1,
adfifointcr::Fifoie1,
Adfifointcr_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[doc = "Scan Group n FIFO Interrupt Enable"]
#[inline(always)]
pub fn fifoie2(
self,
) -> crate::common::RegisterField<
2,
0x1,
1,
0,
adfifointcr::Fifoie2,
adfifointcr::Fifoie2,
Adfifointcr_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
2,
0x1,
1,
0,
adfifointcr::Fifoie2,
adfifointcr::Fifoie2,
Adfifointcr_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[doc = "Scan Group n FIFO Interrupt Enable"]
#[inline(always)]
pub fn fifoie3(
self,
) -> crate::common::RegisterField<
3,
0x1,
1,
0,
adfifointcr::Fifoie3,
adfifointcr::Fifoie3,
Adfifointcr_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
3,
0x1,
1,
0,
adfifointcr::Fifoie3,
adfifointcr::Fifoie3,
Adfifointcr_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[doc = "Scan Group n FIFO Interrupt Enable"]
#[inline(always)]
pub fn fifoie4(
self,
) -> crate::common::RegisterField<
4,
0x1,
1,
0,
adfifointcr::Fifoie4,
adfifointcr::Fifoie4,
Adfifointcr_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
4,
0x1,
1,
0,
adfifointcr::Fifoie4,
adfifointcr::Fifoie4,
Adfifointcr_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[doc = "Scan Group n FIFO Interrupt Enable"]
#[inline(always)]
pub fn fifoie5(
self,
) -> crate::common::RegisterField<
5,
0x1,
1,
0,
adfifointcr::Fifoie5,
adfifointcr::Fifoie5,
Adfifointcr_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
5,
0x1,
1,
0,
adfifointcr::Fifoie5,
adfifointcr::Fifoie5,
Adfifointcr_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[doc = "Scan Group n FIFO Interrupt Enable"]
#[inline(always)]
pub fn fifoie6(
self,
) -> crate::common::RegisterField<
6,
0x1,
1,
0,
adfifointcr::Fifoie6,
adfifointcr::Fifoie6,
Adfifointcr_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
6,
0x1,
1,
0,
adfifointcr::Fifoie6,
adfifointcr::Fifoie6,
Adfifointcr_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[doc = "Scan Group n FIFO Interrupt Enable"]
#[inline(always)]
pub fn fifoie7(
self,
) -> crate::common::RegisterField<
7,
0x1,
1,
0,
adfifointcr::Fifoie7,
adfifointcr::Fifoie7,
Adfifointcr_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
7,
0x1,
1,
0,
adfifointcr::Fifoie7,
adfifointcr::Fifoie7,
Adfifointcr_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[doc = "Scan Group n FIFO Interrupt Enable"]
#[inline(always)]
pub fn fifoie8(
self,
) -> crate::common::RegisterField<
8,
0x1,
1,
0,
adfifointcr::Fifoie8,
adfifointcr::Fifoie8,
Adfifointcr_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
8,
0x1,
1,
0,
adfifointcr::Fifoie8,
adfifointcr::Fifoie8,
Adfifointcr_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
}
impl ::core::default::Default for Adfifointcr {
#[inline(always)]
fn default() -> Adfifointcr {
<crate::RegValueT<Adfifointcr_SPEC> as RegisterValue<_>>::new(0)
}
}
pub mod adfifointcr {
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Fifoie0_SPEC;
pub type Fifoie0 = crate::EnumBitfieldStruct<u8, Fifoie0_SPEC>;
impl Fifoie0 {
#[doc = "Disable scan group n FIFO interrupt"]
pub const _0: Self = Self::new(0);
#[doc = "Enable scan group n FIFO interrupt"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Fifoie1_SPEC;
pub type Fifoie1 = crate::EnumBitfieldStruct<u8, Fifoie1_SPEC>;
impl Fifoie1 {
#[doc = "Disable scan group n FIFO interrupt"]
pub const _0: Self = Self::new(0);
#[doc = "Enable scan group n FIFO interrupt"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Fifoie2_SPEC;
pub type Fifoie2 = crate::EnumBitfieldStruct<u8, Fifoie2_SPEC>;
impl Fifoie2 {
#[doc = "Disable scan group n FIFO interrupt"]
pub const _0: Self = Self::new(0);
#[doc = "Enable scan group n FIFO interrupt"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Fifoie3_SPEC;
pub type Fifoie3 = crate::EnumBitfieldStruct<u8, Fifoie3_SPEC>;
impl Fifoie3 {
#[doc = "Disable scan group n FIFO interrupt"]
pub const _0: Self = Self::new(0);
#[doc = "Enable scan group n FIFO interrupt"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Fifoie4_SPEC;
pub type Fifoie4 = crate::EnumBitfieldStruct<u8, Fifoie4_SPEC>;
impl Fifoie4 {
#[doc = "Disable scan group n FIFO interrupt"]
pub const _0: Self = Self::new(0);
#[doc = "Enable scan group n FIFO interrupt"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Fifoie5_SPEC;
pub type Fifoie5 = crate::EnumBitfieldStruct<u8, Fifoie5_SPEC>;
impl Fifoie5 {
#[doc = "Disable scan group n FIFO interrupt"]
pub const _0: Self = Self::new(0);
#[doc = "Enable scan group n FIFO interrupt"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Fifoie6_SPEC;
pub type Fifoie6 = crate::EnumBitfieldStruct<u8, Fifoie6_SPEC>;
impl Fifoie6 {
#[doc = "Disable scan group n FIFO interrupt"]
pub const _0: Self = Self::new(0);
#[doc = "Enable scan group n FIFO interrupt"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Fifoie7_SPEC;
pub type Fifoie7 = crate::EnumBitfieldStruct<u8, Fifoie7_SPEC>;
impl Fifoie7 {
#[doc = "Disable scan group n FIFO interrupt"]
pub const _0: Self = Self::new(0);
#[doc = "Enable scan group n FIFO interrupt"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Fifoie8_SPEC;
pub type Fifoie8 = crate::EnumBitfieldStruct<u8, Fifoie8_SPEC>;
impl Fifoie8 {
#[doc = "Disable scan group n FIFO interrupt"]
pub const _0: Self = Self::new(0);
#[doc = "Enable scan group n FIFO interrupt"]
pub const _1: Self = Self::new(1);
}
}
#[doc(hidden)]
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct Adfifointlr0_SPEC;
impl crate::sealed::RegSpec for Adfifointlr0_SPEC {
type DataType = u32;
}
#[doc = "FIFO Interrupt Generation Level Register 0"]
pub type Adfifointlr0 = crate::RegValueT<Adfifointlr0_SPEC>;
impl Adfifointlr0 {
#[doc = "Scan Group 0 FIFO Interrupt Output Timing Setting"]
#[inline(always)]
pub fn fifoilv0(
self,
) -> crate::common::RegisterField<0, 0xf, 1, 0, u8, u8, Adfifointlr0_SPEC, crate::common::RW>
{
crate::common::RegisterField::<0,0xf,1,0,u8,u8,Adfifointlr0_SPEC,crate::common::RW>::from_register(self,0)
}
#[doc = "Scan Group 1 FIFO Interrupt Output Timing Setting"]
#[inline(always)]
pub fn fifoilv1(
self,
) -> crate::common::RegisterField<16, 0xf, 1, 0, u8, u8, Adfifointlr0_SPEC, crate::common::RW>
{
crate::common::RegisterField::<16,0xf,1,0,u8,u8,Adfifointlr0_SPEC,crate::common::RW>::from_register(self,0)
}
}
impl ::core::default::Default for Adfifointlr0 {
#[inline(always)]
fn default() -> Adfifointlr0 {
<crate::RegValueT<Adfifointlr0_SPEC> as RegisterValue<_>>::new(0)
}
}
#[doc(hidden)]
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct Adfifointlr1_SPEC;
impl crate::sealed::RegSpec for Adfifointlr1_SPEC {
type DataType = u32;
}
#[doc = "FIFO Interrupt Generation Level Register 1"]
pub type Adfifointlr1 = crate::RegValueT<Adfifointlr1_SPEC>;
impl Adfifointlr1 {
#[doc = "Scan Group 2 FIFO Interrupt Output Timing Setting"]
#[inline(always)]
pub fn fifoilv2(
self,
) -> crate::common::RegisterField<0, 0xf, 1, 0, u8, u8, Adfifointlr1_SPEC, crate::common::RW>
{
crate::common::RegisterField::<0,0xf,1,0,u8,u8,Adfifointlr1_SPEC,crate::common::RW>::from_register(self,0)
}
#[doc = "Scan Group 3 FIFO Interrupt Output Timing Setting"]
#[inline(always)]
pub fn fifoilv3(
self,
) -> crate::common::RegisterField<16, 0xf, 1, 0, u8, u8, Adfifointlr1_SPEC, crate::common::RW>
{
crate::common::RegisterField::<16,0xf,1,0,u8,u8,Adfifointlr1_SPEC,crate::common::RW>::from_register(self,0)
}
}
impl ::core::default::Default for Adfifointlr1 {
#[inline(always)]
fn default() -> Adfifointlr1 {
<crate::RegValueT<Adfifointlr1_SPEC> as RegisterValue<_>>::new(0)
}
}
#[doc(hidden)]
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct Adfifointlr2_SPEC;
impl crate::sealed::RegSpec for Adfifointlr2_SPEC {
type DataType = u32;
}
#[doc = "FIFO Interrupt Generation Level Register 2"]
pub type Adfifointlr2 = crate::RegValueT<Adfifointlr2_SPEC>;
impl Adfifointlr2 {
#[doc = "Scan Group 4 FIFO Interrupt Output Timing Setting"]
#[inline(always)]
pub fn fifoilv4(
self,
) -> crate::common::RegisterField<0, 0xf, 1, 0, u8, u8, Adfifointlr2_SPEC, crate::common::RW>
{
crate::common::RegisterField::<0,0xf,1,0,u8,u8,Adfifointlr2_SPEC,crate::common::RW>::from_register(self,0)
}
#[doc = "Scan Group 5 FIFO Interrupt Output Timing Setting"]
#[inline(always)]
pub fn fifoilv5(
self,
) -> crate::common::RegisterField<16, 0xf, 1, 0, u8, u8, Adfifointlr2_SPEC, crate::common::RW>
{
crate::common::RegisterField::<16,0xf,1,0,u8,u8,Adfifointlr2_SPEC,crate::common::RW>::from_register(self,0)
}
}
impl ::core::default::Default for Adfifointlr2 {
#[inline(always)]
fn default() -> Adfifointlr2 {
<crate::RegValueT<Adfifointlr2_SPEC> as RegisterValue<_>>::new(0)
}
}
#[doc(hidden)]
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct Adfifointlr3_SPEC;
impl crate::sealed::RegSpec for Adfifointlr3_SPEC {
type DataType = u32;
}
#[doc = "FIFO Interrupt Generation Level Register 3"]
pub type Adfifointlr3 = crate::RegValueT<Adfifointlr3_SPEC>;
impl Adfifointlr3 {
#[doc = "Scan Group 6 FIFO Interrupt Output Timing Setting"]
#[inline(always)]
pub fn fifoilv6(
self,
) -> crate::common::RegisterField<0, 0xf, 1, 0, u8, u8, Adfifointlr3_SPEC, crate::common::RW>
{
crate::common::RegisterField::<0,0xf,1,0,u8,u8,Adfifointlr3_SPEC,crate::common::RW>::from_register(self,0)
}
#[doc = "Scan Group 7 FIFO Interrupt Output Timing Setting"]
#[inline(always)]
pub fn fifoilv7(
self,
) -> crate::common::RegisterField<16, 0xf, 1, 0, u8, u8, Adfifointlr3_SPEC, crate::common::RW>
{
crate::common::RegisterField::<16,0xf,1,0,u8,u8,Adfifointlr3_SPEC,crate::common::RW>::from_register(self,0)
}
}
impl ::core::default::Default for Adfifointlr3 {
#[inline(always)]
fn default() -> Adfifointlr3 {
<crate::RegValueT<Adfifointlr3_SPEC> as RegisterValue<_>>::new(0)
}
}
#[doc(hidden)]
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct Adfifointlr4_SPEC;
impl crate::sealed::RegSpec for Adfifointlr4_SPEC {
type DataType = u32;
}
#[doc = "FIFO Interrupt Generation Level Register 4"]
pub type Adfifointlr4 = crate::RegValueT<Adfifointlr4_SPEC>;
impl Adfifointlr4 {
#[doc = "Scan Group 8 FIFO Interrupt Output Timing Setting"]
#[inline(always)]
pub fn fifoilv8(
self,
) -> crate::common::RegisterField<0, 0xf, 1, 0, u8, u8, Adfifointlr4_SPEC, crate::common::RW>
{
crate::common::RegisterField::<0,0xf,1,0,u8,u8,Adfifointlr4_SPEC,crate::common::RW>::from_register(self,0)
}
}
impl ::core::default::Default for Adfifointlr4 {
#[inline(always)]
fn default() -> Adfifointlr4 {
<crate::RegValueT<Adfifointlr4_SPEC> as RegisterValue<_>>::new(0)
}
}
#[doc(hidden)]
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct Adchcr_SPEC;
impl crate::sealed::RegSpec for Adchcr_SPEC {
type DataType = u32;
}
#[doc = "A/D Conversion Channel Configuration Register %s"]
pub type Adchcr = crate::RegValueT<Adchcr_SPEC>;
impl Adchcr {
#[doc = "Scan Group Selection"]
#[inline(always)]
pub fn sgsel(
self,
) -> crate::common::RegisterField<0, 0x1f, 1, 0, u8, u8, Adchcr_SPEC, crate::common::RW> {
crate::common::RegisterField::<0,0x1f,1,0,u8,u8,Adchcr_SPEC,crate::common::RW>::from_register(self,0)
}
#[doc = "A/D Conversion Channel Selection"]
#[inline(always)]
pub fn cnvcs(
self,
) -> crate::common::RegisterField<8, 0x7f, 1, 0, u8, u8, Adchcr_SPEC, crate::common::RW> {
crate::common::RegisterField::<8,0x7f,1,0,u8,u8,Adchcr_SPEC,crate::common::RW>::from_register(self,0)
}
#[doc = "Analog Input mode selection,"]
#[inline(always)]
pub fn ainmd(
self,
) -> crate::common::RegisterField<
15,
0x1,
1,
0,
adchcr::Ainmd,
adchcr::Ainmd,
Adchcr_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
15,
0x1,
1,
0,
adchcr::Ainmd,
adchcr::Ainmd,
Adchcr_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[doc = "Sampling State Table Selection"]
#[inline(always)]
pub fn sstsel(
self,
) -> crate::common::RegisterField<16, 0xf, 1, 0, u8, u8, Adchcr_SPEC, crate::common::RW> {
crate::common::RegisterField::<16,0xf,1,0,u8,u8,Adchcr_SPEC,crate::common::RW>::from_register(self,0)
}
}
impl ::core::default::Default for Adchcr {
#[inline(always)]
fn default() -> Adchcr {
<crate::RegValueT<Adchcr_SPEC> as RegisterValue<_>>::new(0)
}
}
pub mod adchcr {
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Ainmd_SPEC;
pub type Ainmd = crate::EnumBitfieldStruct<u8, Ainmd_SPEC>;
impl Ainmd {
#[doc = "Single-ended input"]
pub const _0: Self = Self::new(0);
#[doc = "Differential input"]
pub const _1: Self = Self::new(1);
}
}
#[doc(hidden)]
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct Addopcra_SPEC;
impl crate::sealed::RegSpec for Addopcra_SPEC {
type DataType = u32;
}
#[doc = "A/D Conversion Data Operation Control A Register %s"]
pub type Addopcra = crate::RegValueT<Addopcra_SPEC>;
impl Addopcra {
#[doc = "Digital Filter Selection"]
#[inline(always)]
pub fn dfsel(
self,
) -> crate::common::RegisterField<
0,
0x7,
1,
0,
addopcra::Dfsel,
addopcra::Dfsel,
Addopcra_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
0,
0x7,
1,
0,
addopcra::Dfsel,
addopcra::Dfsel,
Addopcra_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[doc = "User Gain Table Selection"]
#[inline(always)]
pub fn gainsel(
self,
) -> crate::common::RegisterField<16, 0xf, 1, 0, u8, u8, Addopcra_SPEC, crate::common::RW> {
crate::common::RegisterField::<16,0xf,1,0,u8,u8,Addopcra_SPEC,crate::common::RW>::from_register(self,0)
}
#[doc = "User Offset Table Selection"]
#[inline(always)]
pub fn ofsetsel(
self,
) -> crate::common::RegisterField<24, 0xf, 1, 0, u8, u8, Addopcra_SPEC, crate::common::RW> {
crate::common::RegisterField::<24,0xf,1,0,u8,u8,Addopcra_SPEC,crate::common::RW>::from_register(self,0)
}
}
impl ::core::default::Default for Addopcra {
#[inline(always)]
fn default() -> Addopcra {
<crate::RegValueT<Addopcra_SPEC> as RegisterValue<_>>::new(0)
}
}
pub mod addopcra {
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Dfsel_SPEC;
pub type Dfsel = crate::EnumBitfieldStruct<u8, Dfsel_SPEC>;
impl Dfsel {
#[doc = "Not use the digital filter"]
pub const _0_X_0: Self = Self::new(0);
#[doc = "Use the 1st digital filter"]
pub const _0_X_1: Self = Self::new(1);
#[doc = "Use the 2nd digital filter"]
pub const _0_X_2: Self = Self::new(2);
#[doc = "Use the 3rd digital filter"]
pub const _0_X_3: Self = Self::new(3);
#[doc = "Use the 4th digital filter"]
pub const _0_X_4: Self = Self::new(4);
#[doc = "Setting prohibited"]
pub const OTHERS: Self = Self::new(0);
}
}
#[doc(hidden)]
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct Addopcrb_SPEC;
impl crate::sealed::RegSpec for Addopcrb_SPEC {
type DataType = u32;
}
#[doc = "A/D Conversion Data Operation Control B Register %s"]
pub type Addopcrb = crate::RegValueT<Addopcrb_SPEC>;
impl Addopcrb {
#[doc = "Addition/Averaging Mode Selection"]
#[inline(always)]
pub fn avemd(
self,
) -> crate::common::RegisterField<
0,
0x3,
1,
0,
addopcrb::Avemd,
addopcrb::Avemd,
Addopcrb_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
0,
0x3,
1,
0,
addopcrb::Avemd,
addopcrb::Avemd,
Addopcrb_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[doc = "Addition/Averaging Times Selection"]
#[inline(always)]
pub fn adc(
self,
) -> crate::common::RegisterField<
8,
0xf,
1,
0,
addopcrb::Adc,
addopcrb::Adc,
Addopcrb_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
8,
0xf,
1,
0,
addopcrb::Adc,
addopcrb::Adc,
Addopcrb_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[doc = "Compare Match Enable"]
#[inline(always)]
pub fn cmptble0(
self,
) -> crate::common::RegisterField<
16,
0x1,
1,
0,
addopcrb::Cmptble0,
addopcrb::Cmptble0,
Addopcrb_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
16,
0x1,
1,
0,
addopcrb::Cmptble0,
addopcrb::Cmptble0,
Addopcrb_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[doc = "Compare Match Enable"]
#[inline(always)]
pub fn cmptble1(
self,
) -> crate::common::RegisterField<
17,
0x1,
1,
0,
addopcrb::Cmptble1,
addopcrb::Cmptble1,
Addopcrb_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
17,
0x1,
1,
0,
addopcrb::Cmptble1,
addopcrb::Cmptble1,
Addopcrb_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[doc = "Compare Match Enable"]
#[inline(always)]
pub fn cmptble2(
self,
) -> crate::common::RegisterField<
18,
0x1,
1,
0,
addopcrb::Cmptble2,
addopcrb::Cmptble2,
Addopcrb_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
18,
0x1,
1,
0,
addopcrb::Cmptble2,
addopcrb::Cmptble2,
Addopcrb_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[doc = "Compare Match Enable"]
#[inline(always)]
pub fn cmptble3(
self,
) -> crate::common::RegisterField<
19,
0x1,
1,
0,
addopcrb::Cmptble3,
addopcrb::Cmptble3,
Addopcrb_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
19,
0x1,
1,
0,
addopcrb::Cmptble3,
addopcrb::Cmptble3,
Addopcrb_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[doc = "Compare Match Enable"]
#[inline(always)]
pub fn cmptble4(
self,
) -> crate::common::RegisterField<
20,
0x1,
1,
0,
addopcrb::Cmptble4,
addopcrb::Cmptble4,
Addopcrb_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
20,
0x1,
1,
0,
addopcrb::Cmptble4,
addopcrb::Cmptble4,
Addopcrb_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[doc = "Compare Match Enable"]
#[inline(always)]
pub fn cmptble5(
self,
) -> crate::common::RegisterField<
21,
0x1,
1,
0,
addopcrb::Cmptble5,
addopcrb::Cmptble5,
Addopcrb_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
21,
0x1,
1,
0,
addopcrb::Cmptble5,
addopcrb::Cmptble5,
Addopcrb_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[doc = "Compare Match Enable"]
#[inline(always)]
pub fn cmptble6(
self,
) -> crate::common::RegisterField<
22,
0x1,
1,
0,
addopcrb::Cmptble6,
addopcrb::Cmptble6,
Addopcrb_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
22,
0x1,
1,
0,
addopcrb::Cmptble6,
addopcrb::Cmptble6,
Addopcrb_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[doc = "Compare Match Enable"]
#[inline(always)]
pub fn cmptble7(
self,
) -> crate::common::RegisterField<
23,
0x1,
1,
0,
addopcrb::Cmptble7,
addopcrb::Cmptble7,
Addopcrb_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
23,
0x1,
1,
0,
addopcrb::Cmptble7,
addopcrb::Cmptble7,
Addopcrb_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
}
impl ::core::default::Default for Addopcrb {
#[inline(always)]
fn default() -> Addopcrb {
<crate::RegValueT<Addopcrb_SPEC> as RegisterValue<_>>::new(0)
}
}
pub mod addopcrb {
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Avemd_SPEC;
pub type Avemd = crate::EnumBitfieldStruct<u8, Avemd_SPEC>;
impl Avemd {
#[doc = "Not use Addition/Averaging mode"]
pub const _00: Self = Self::new(0);
#[doc = "Addition mode"]
pub const _01: Self = Self::new(1);
#[doc = "Averaging mode"]
pub const _10: Self = Self::new(2);
#[doc = "Setting prohibited"]
pub const _11: Self = Self::new(3);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Adc_SPEC;
pub type Adc = crate::EnumBitfieldStruct<u8, Adc_SPEC>;
impl Adc {
#[doc = "1-time conversion (no addition, same as normal conversion)"]
pub const _0_X_0: Self = Self::new(0);
#[doc = "2-time conversion (1 addition)"]
pub const _0_X_1: Self = Self::new(1);
#[doc = "4-time conversion (3 additions)"]
pub const _0_X_3: Self = Self::new(3);
#[doc = "8-time conversion (7 additions)"]
pub const _0_X_4: Self = Self::new(4);
#[doc = "16-time conversion (15 additions)"]
pub const _0_X_5: Self = Self::new(5);
#[doc = "32-time conversion (31 additions)"]
pub const _0_X_6: Self = Self::new(6);
#[doc = "64-time conversion (63 additions)"]
pub const _0_X_7: Self = Self::new(7);
#[doc = "128-time conversion (127 additions)"]
pub const _0_X_8: Self = Self::new(8);
#[doc = "256-time conversion (255 additions)"]
pub const _0_X_9: Self = Self::new(9);
#[doc = "512-time conversion (511 additions)"]
pub const _0_X_A: Self = Self::new(10);
#[doc = "1024-time conversion (1023 additions)"]
pub const _0_X_B: Self = Self::new(11);
#[doc = "Setting prohibited"]
pub const OTHERS: Self = Self::new(0);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Cmptble0_SPEC;
pub type Cmptble0 = crate::EnumBitfieldStruct<u8, Cmptble0_SPEC>;
impl Cmptble0 {
#[doc = "Disable the compare match with the compare match table m"]
pub const _0: Self = Self::new(0);
#[doc = "Enable the compare match with the compare match table m"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Cmptble1_SPEC;
pub type Cmptble1 = crate::EnumBitfieldStruct<u8, Cmptble1_SPEC>;
impl Cmptble1 {
#[doc = "Disable the compare match with the compare match table m"]
pub const _0: Self = Self::new(0);
#[doc = "Enable the compare match with the compare match table m"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Cmptble2_SPEC;
pub type Cmptble2 = crate::EnumBitfieldStruct<u8, Cmptble2_SPEC>;
impl Cmptble2 {
#[doc = "Disable the compare match with the compare match table m"]
pub const _0: Self = Self::new(0);
#[doc = "Enable the compare match with the compare match table m"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Cmptble3_SPEC;
pub type Cmptble3 = crate::EnumBitfieldStruct<u8, Cmptble3_SPEC>;
impl Cmptble3 {
#[doc = "Disable the compare match with the compare match table m"]
pub const _0: Self = Self::new(0);
#[doc = "Enable the compare match with the compare match table m"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Cmptble4_SPEC;
pub type Cmptble4 = crate::EnumBitfieldStruct<u8, Cmptble4_SPEC>;
impl Cmptble4 {
#[doc = "Disable the compare match with the compare match table m"]
pub const _0: Self = Self::new(0);
#[doc = "Enable the compare match with the compare match table m"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Cmptble5_SPEC;
pub type Cmptble5 = crate::EnumBitfieldStruct<u8, Cmptble5_SPEC>;
impl Cmptble5 {
#[doc = "Disable the compare match with the compare match table m"]
pub const _0: Self = Self::new(0);
#[doc = "Enable the compare match with the compare match table m"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Cmptble6_SPEC;
pub type Cmptble6 = crate::EnumBitfieldStruct<u8, Cmptble6_SPEC>;
impl Cmptble6 {
#[doc = "Disable the compare match with the compare match table m"]
pub const _0: Self = Self::new(0);
#[doc = "Enable the compare match with the compare match table m"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Cmptble7_SPEC;
pub type Cmptble7 = crate::EnumBitfieldStruct<u8, Cmptble7_SPEC>;
impl Cmptble7 {
#[doc = "Disable the compare match with the compare match table m"]
pub const _0: Self = Self::new(0);
#[doc = "Enable the compare match with the compare match table m"]
pub const _1: Self = Self::new(1);
}
}
#[doc(hidden)]
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct Addopcrc_SPEC;
impl crate::sealed::RegSpec for Addopcrc_SPEC {
type DataType = u32;
}
#[doc = "A/D Conversion Data Operation Control C Register %s"]
pub type Addopcrc = crate::RegValueT<Addopcrc_SPEC>;
impl Addopcrc {
#[doc = "Limiter Clip Table Selection"]
#[inline(always)]
pub fn limtbls(
self,
) -> crate::common::RegisterField<0, 0xf, 1, 0, u8, u8, Addopcrc_SPEC, crate::common::RW> {
crate::common::RegisterField::<0,0xf,1,0,u8,u8,Addopcrc_SPEC,crate::common::RW>::from_register(self,0)
}
#[doc = "A/D Conversion Data Format Selection"]
#[inline(always)]
pub fn adprc(
self,
) -> crate::common::RegisterField<
16,
0x3,
1,
0,
addopcrc::Adprc,
addopcrc::Adprc,
Addopcrc_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
16,
0x3,
1,
0,
addopcrc::Adprc,
addopcrc::Adprc,
Addopcrc_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[doc = "A/D Conversion Data Signed/Un-signed Selection"]
#[inline(always)]
pub fn signsel(
self,
) -> crate::common::RegisterField<
20,
0x1,
1,
0,
addopcrc::Signsel,
addopcrc::Signsel,
Addopcrc_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
20,
0x1,
1,
0,
addopcrc::Signsel,
addopcrc::Signsel,
Addopcrc_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
}
impl ::core::default::Default for Addopcrc {
#[inline(always)]
fn default() -> Addopcrc {
<crate::RegValueT<Addopcrc_SPEC> as RegisterValue<_>>::new(0)
}
}
pub mod addopcrc {
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Adprc_SPEC;
pub type Adprc = crate::EnumBitfieldStruct<u8, Adprc_SPEC>;
impl Adprc {
#[doc = "Store the A/D conversion result as 16-bit data format"]
pub const _00: Self = Self::new(0);
#[doc = "Store the A/D conversion result as 14-bit data format"]
pub const _01: Self = Self::new(1);
#[doc = "Store the A/D conversion result as 12-bit data format"]
pub const _10: Self = Self::new(2);
#[doc = "Store the A/D conversion result as 10-bit data format"]
pub const _11: Self = Self::new(3);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Signsel_SPEC;
pub type Signsel = crate::EnumBitfieldStruct<u8, Signsel_SPEC>;
impl Signsel {
#[doc = "Signed data format"]
pub const _0: Self = Self::new(0);
#[doc = "Un-signed data format"]
pub const _1: Self = Self::new(1);
}
}
#[doc(hidden)]
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct Adcalstr_SPEC;
impl crate::sealed::RegSpec for Adcalstr_SPEC {
type DataType = u32;
}
#[doc = "A/D Converter Self-calibration Start Register"]
pub type Adcalstr = crate::RegValueT<Adcalstr_SPEC>;
impl Adcalstr {
#[doc = "A/D Converter Unit 0 (ADC0) Self-calibration Start Control"]
#[inline(always)]
pub fn adcalst0(
self,
) -> crate::common::RegisterField<0, 0x7, 1, 0, u8, u8, Adcalstr_SPEC, crate::common::W> {
crate::common::RegisterField::<0,0x7,1,0,u8,u8,Adcalstr_SPEC,crate::common::W>::from_register(self,0)
}
#[doc = "A/D Converter Unit 1 (ADC1) Self-calibration Start Control"]
#[inline(always)]
pub fn adcalst1(
self,
) -> crate::common::RegisterField<8, 0x7, 1, 0, u8, u8, Adcalstr_SPEC, crate::common::W> {
crate::common::RegisterField::<8,0x7,1,0,u8,u8,Adcalstr_SPEC,crate::common::W>::from_register(self,0)
}
}
impl ::core::default::Default for Adcalstr {
#[inline(always)]
fn default() -> Adcalstr {
<crate::RegValueT<Adcalstr_SPEC> as RegisterValue<_>>::new(0)
}
}
#[doc(hidden)]
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct Adshcscr_SPEC;
impl crate::sealed::RegSpec for Adshcscr_SPEC {
type DataType = u32;
}
#[doc = "Channel-Dedicated Sample & Hold Circuit Constant Sampling Control Register"]
pub type Adshcscr = crate::RegValueT<Adshcscr_SPEC>;
impl Adshcscr {
#[doc = "Channel-dedicated sample-and-hold circuit constant sampling control bit for A/D converter unit 0 (ADC0)"]
#[inline(always)]
pub fn shcsst0(
self,
) -> crate::common::RegisterField<
0,
0x1,
1,
0,
adshcscr::Shcsst0,
adshcscr::Shcsst0,
Adshcscr_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
0,
0x1,
1,
0,
adshcscr::Shcsst0,
adshcscr::Shcsst0,
Adshcscr_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[doc = "Channel-dedicated sample-and-hold circuit constant sampling control bit for A/D converter unit 1 (ADC1)"]
#[inline(always)]
pub fn shcsst1(
self,
) -> crate::common::RegisterField<
8,
0x1,
1,
0,
adshcscr::Shcsst1,
adshcscr::Shcsst1,
Adshcscr_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
8,
0x1,
1,
0,
adshcscr::Shcsst1,
adshcscr::Shcsst1,
Adshcscr_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
}
impl ::core::default::Default for Adshcscr {
#[inline(always)]
fn default() -> Adshcscr {
<crate::RegValueT<Adshcscr_SPEC> as RegisterValue<_>>::new(0)
}
}
pub mod adshcscr {
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Shcsst0_SPEC;
pub type Shcsst0 = crate::EnumBitfieldStruct<u8, Shcsst0_SPEC>;
impl Shcsst0 {
#[doc = "Disable channel-dedicated sample-and-hold circuit constant sampling"]
pub const _0: Self = Self::new(0);
#[doc = "Enable channel-dedicated sample-and-hold circuit constant sampling"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Shcsst1_SPEC;
pub type Shcsst1 = crate::EnumBitfieldStruct<u8, Shcsst1_SPEC>;
impl Shcsst1 {
#[doc = "Disable channel-dedicated sample-and-hold circuit constant sampling"]
pub const _0: Self = Self::new(0);
#[doc = "Enable channel-dedicated sample-and-hold circuit constant sampling"]
pub const _1: Self = Self::new(1);
}
}
#[doc(hidden)]
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct Adtrgenr_SPEC;
impl crate::sealed::RegSpec for Adtrgenr_SPEC {
type DataType = u32;
}
#[doc = "A/D Conversion Start Trigger Enable Register"]
pub type Adtrgenr = crate::RegValueT<Adtrgenr_SPEC>;
impl Adtrgenr {
#[doc = "Scan Group n A/D Conversion Start Trigger Enable"]
#[inline(always)]
pub fn sttrgen0(
self,
) -> crate::common::RegisterField<
0,
0x1,
1,
0,
adtrgenr::Sttrgen0,
adtrgenr::Sttrgen0,
Adtrgenr_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
0,
0x1,
1,
0,
adtrgenr::Sttrgen0,
adtrgenr::Sttrgen0,
Adtrgenr_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[doc = "Scan Group n A/D Conversion Start Trigger Enable"]
#[inline(always)]
pub fn sttrgen1(
self,
) -> crate::common::RegisterField<
1,
0x1,
1,
0,
adtrgenr::Sttrgen1,
adtrgenr::Sttrgen1,
Adtrgenr_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
1,
0x1,
1,
0,
adtrgenr::Sttrgen1,
adtrgenr::Sttrgen1,
Adtrgenr_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[doc = "Scan Group n A/D Conversion Start Trigger Enable"]
#[inline(always)]
pub fn sttrgen2(
self,
) -> crate::common::RegisterField<
2,
0x1,
1,
0,
adtrgenr::Sttrgen2,
adtrgenr::Sttrgen2,
Adtrgenr_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
2,
0x1,
1,
0,
adtrgenr::Sttrgen2,
adtrgenr::Sttrgen2,
Adtrgenr_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[doc = "Scan Group n A/D Conversion Start Trigger Enable"]
#[inline(always)]
pub fn sttrgen3(
self,
) -> crate::common::RegisterField<
3,
0x1,
1,
0,
adtrgenr::Sttrgen3,
adtrgenr::Sttrgen3,
Adtrgenr_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
3,
0x1,
1,
0,
adtrgenr::Sttrgen3,
adtrgenr::Sttrgen3,
Adtrgenr_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[doc = "Scan Group n A/D Conversion Start Trigger Enable"]
#[inline(always)]
pub fn sttrgen4(
self,
) -> crate::common::RegisterField<
4,
0x1,
1,
0,
adtrgenr::Sttrgen4,
adtrgenr::Sttrgen4,
Adtrgenr_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
4,
0x1,
1,
0,
adtrgenr::Sttrgen4,
adtrgenr::Sttrgen4,
Adtrgenr_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[doc = "Scan Group n A/D Conversion Start Trigger Enable"]
#[inline(always)]
pub fn sttrgen5(
self,
) -> crate::common::RegisterField<
5,
0x1,
1,
0,
adtrgenr::Sttrgen5,
adtrgenr::Sttrgen5,
Adtrgenr_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
5,
0x1,
1,
0,
adtrgenr::Sttrgen5,
adtrgenr::Sttrgen5,
Adtrgenr_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[doc = "Scan Group n A/D Conversion Start Trigger Enable"]
#[inline(always)]
pub fn sttrgen6(
self,
) -> crate::common::RegisterField<
6,
0x1,
1,
0,
adtrgenr::Sttrgen6,
adtrgenr::Sttrgen6,
Adtrgenr_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
6,
0x1,
1,
0,
adtrgenr::Sttrgen6,
adtrgenr::Sttrgen6,
Adtrgenr_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[doc = "Scan Group n A/D Conversion Start Trigger Enable"]
#[inline(always)]
pub fn sttrgen7(
self,
) -> crate::common::RegisterField<
7,
0x1,
1,
0,
adtrgenr::Sttrgen7,
adtrgenr::Sttrgen7,
Adtrgenr_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
7,
0x1,
1,
0,
adtrgenr::Sttrgen7,
adtrgenr::Sttrgen7,
Adtrgenr_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
#[doc = "Scan Group n A/D Conversion Start Trigger Enable"]
#[inline(always)]
pub fn sttrgen8(
self,
) -> crate::common::RegisterField<
8,
0x1,
1,
0,
adtrgenr::Sttrgen8,
adtrgenr::Sttrgen8,
Adtrgenr_SPEC,
crate::common::RW,
> {
crate::common::RegisterField::<
8,
0x1,
1,
0,
adtrgenr::Sttrgen8,
adtrgenr::Sttrgen8,
Adtrgenr_SPEC,
crate::common::RW,
>::from_register(self, 0)
}
}
impl ::core::default::Default for Adtrgenr {
#[inline(always)]
fn default() -> Adtrgenr {
<crate::RegValueT<Adtrgenr_SPEC> as RegisterValue<_>>::new(0)
}
}
pub mod adtrgenr {
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Sttrgen0_SPEC;
pub type Sttrgen0 = crate::EnumBitfieldStruct<u8, Sttrgen0_SPEC>;
impl Sttrgen0 {
#[doc = "Disable the A/D conversion start trigger"]
pub const _0: Self = Self::new(0);
#[doc = "Enable the A/D conversion start trigger"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Sttrgen1_SPEC;
pub type Sttrgen1 = crate::EnumBitfieldStruct<u8, Sttrgen1_SPEC>;
impl Sttrgen1 {
#[doc = "Disable the A/D conversion start trigger"]
pub const _0: Self = Self::new(0);
#[doc = "Enable the A/D conversion start trigger"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Sttrgen2_SPEC;
pub type Sttrgen2 = crate::EnumBitfieldStruct<u8, Sttrgen2_SPEC>;
impl Sttrgen2 {
#[doc = "Disable the A/D conversion start trigger"]
pub const _0: Self = Self::new(0);
#[doc = "Enable the A/D conversion start trigger"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Sttrgen3_SPEC;
pub type Sttrgen3 = crate::EnumBitfieldStruct<u8, Sttrgen3_SPEC>;
impl Sttrgen3 {
#[doc = "Disable the A/D conversion start trigger"]
pub const _0: Self = Self::new(0);
#[doc = "Enable the A/D conversion start trigger"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Sttrgen4_SPEC;
pub type Sttrgen4 = crate::EnumBitfieldStruct<u8, Sttrgen4_SPEC>;
impl Sttrgen4 {
#[doc = "Disable the A/D conversion start trigger"]
pub const _0: Self = Self::new(0);
#[doc = "Enable the A/D conversion start trigger"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Sttrgen5_SPEC;
pub type Sttrgen5 = crate::EnumBitfieldStruct<u8, Sttrgen5_SPEC>;
impl Sttrgen5 {
#[doc = "Disable the A/D conversion start trigger"]
pub const _0: Self = Self::new(0);
#[doc = "Enable the A/D conversion start trigger"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Sttrgen6_SPEC;
pub type Sttrgen6 = crate::EnumBitfieldStruct<u8, Sttrgen6_SPEC>;
impl Sttrgen6 {
#[doc = "Disable the A/D conversion start trigger"]
pub const _0: Self = Self::new(0);
#[doc = "Enable the A/D conversion start trigger"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Sttrgen7_SPEC;
pub type Sttrgen7 = crate::EnumBitfieldStruct<u8, Sttrgen7_SPEC>;
impl Sttrgen7 {
#[doc = "Disable the A/D conversion start trigger"]
pub const _0: Self = Self::new(0);
#[doc = "Enable the A/D conversion start trigger"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Sttrgen8_SPEC;
pub type Sttrgen8 = crate::EnumBitfieldStruct<u8, Sttrgen8_SPEC>;
impl Sttrgen8 {
#[doc = "Disable the A/D conversion start trigger"]
pub const _0: Self = Self::new(0);
#[doc = "Enable the A/D conversion start trigger"]
pub const _1: Self = Self::new(1);
}
}
#[doc(hidden)]
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct Adsystr_SPEC;
impl crate::sealed::RegSpec for Adsystr_SPEC {
type DataType = u32;
}
#[doc = "A/D Conversion Synchronous Software Start Register"]
pub type Adsystr = crate::RegValueT<Adsystr_SPEC>;
impl Adsystr {
#[doc = "Scan Group n: A/D Conversion start"]
#[inline(always)]
pub fn adsyst0(
self,
) -> crate::common::RegisterField<
0,
0x1,
1,
0,
adsystr::Adsyst0,
adsystr::Adsyst0,
Adsystr_SPEC,
crate::common::W,
> {
crate::common::RegisterField::<
0,
0x1,
1,
0,
adsystr::Adsyst0,
adsystr::Adsyst0,
Adsystr_SPEC,
crate::common::W,
>::from_register(self, 0)
}
#[doc = "Scan Group n: A/D Conversion start"]
#[inline(always)]
pub fn adsyst1(
self,
) -> crate::common::RegisterField<
1,
0x1,
1,
0,
adsystr::Adsyst1,
adsystr::Adsyst1,
Adsystr_SPEC,
crate::common::W,
> {
crate::common::RegisterField::<
1,
0x1,
1,
0,
adsystr::Adsyst1,
adsystr::Adsyst1,
Adsystr_SPEC,
crate::common::W,
>::from_register(self, 0)
}
#[doc = "Scan Group n: A/D Conversion start"]
#[inline(always)]
pub fn adsyst2(
self,
) -> crate::common::RegisterField<
2,
0x1,
1,
0,
adsystr::Adsyst2,
adsystr::Adsyst2,
Adsystr_SPEC,
crate::common::W,
> {
crate::common::RegisterField::<
2,
0x1,
1,
0,
adsystr::Adsyst2,
adsystr::Adsyst2,
Adsystr_SPEC,
crate::common::W,
>::from_register(self, 0)
}
#[doc = "Scan Group n: A/D Conversion start"]
#[inline(always)]
pub fn adsyst3(
self,
) -> crate::common::RegisterField<
3,
0x1,
1,
0,
adsystr::Adsyst3,
adsystr::Adsyst3,
Adsystr_SPEC,
crate::common::W,
> {
crate::common::RegisterField::<
3,
0x1,
1,
0,
adsystr::Adsyst3,
adsystr::Adsyst3,
Adsystr_SPEC,
crate::common::W,
>::from_register(self, 0)
}
#[doc = "Scan Group n: A/D Conversion start"]
#[inline(always)]
pub fn adsyst4(
self,
) -> crate::common::RegisterField<
4,
0x1,
1,
0,
adsystr::Adsyst4,
adsystr::Adsyst4,
Adsystr_SPEC,
crate::common::W,
> {
crate::common::RegisterField::<
4,
0x1,
1,
0,
adsystr::Adsyst4,
adsystr::Adsyst4,
Adsystr_SPEC,
crate::common::W,
>::from_register(self, 0)
}
#[doc = "Scan Group n: A/D Conversion start"]
#[inline(always)]
pub fn adsyst5(
self,
) -> crate::common::RegisterField<
5,
0x1,
1,
0,
adsystr::Adsyst5,
adsystr::Adsyst5,
Adsystr_SPEC,
crate::common::W,
> {
crate::common::RegisterField::<
5,
0x1,
1,
0,
adsystr::Adsyst5,
adsystr::Adsyst5,
Adsystr_SPEC,
crate::common::W,
>::from_register(self, 0)
}
#[doc = "Scan Group n: A/D Conversion start"]
#[inline(always)]
pub fn adsyst6(
self,
) -> crate::common::RegisterField<
6,
0x1,
1,
0,
adsystr::Adsyst6,
adsystr::Adsyst6,
Adsystr_SPEC,
crate::common::W,
> {
crate::common::RegisterField::<
6,
0x1,
1,
0,
adsystr::Adsyst6,
adsystr::Adsyst6,
Adsystr_SPEC,
crate::common::W,
>::from_register(self, 0)
}
#[doc = "Scan Group n: A/D Conversion start"]
#[inline(always)]
pub fn adsyst7(
self,
) -> crate::common::RegisterField<
7,
0x1,
1,
0,
adsystr::Adsyst7,
adsystr::Adsyst7,
Adsystr_SPEC,
crate::common::W,
> {
crate::common::RegisterField::<
7,
0x1,
1,
0,
adsystr::Adsyst7,
adsystr::Adsyst7,
Adsystr_SPEC,
crate::common::W,
>::from_register(self, 0)
}
#[doc = "Scan Group n: A/D Conversion start"]
#[inline(always)]
pub fn adsyst8(
self,
) -> crate::common::RegisterField<
8,
0x1,
1,
0,
adsystr::Adsyst8,
adsystr::Adsyst8,
Adsystr_SPEC,
crate::common::W,
> {
crate::common::RegisterField::<
8,
0x1,
1,
0,
adsystr::Adsyst8,
adsystr::Adsyst8,
Adsystr_SPEC,
crate::common::W,
>::from_register(self, 0)
}
}
impl ::core::default::Default for Adsystr {
#[inline(always)]
fn default() -> Adsystr {
<crate::RegValueT<Adsystr_SPEC> as RegisterValue<_>>::new(0)
}
}
pub mod adsystr {
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Adsyst0_SPEC;
pub type Adsyst0 = crate::EnumBitfieldStruct<u8, Adsyst0_SPEC>;
impl Adsyst0 {
#[doc = "No effect"]
pub const _0: Self = Self::new(0);
#[doc = "Start the A/D conversion of scan group n"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Adsyst1_SPEC;
pub type Adsyst1 = crate::EnumBitfieldStruct<u8, Adsyst1_SPEC>;
impl Adsyst1 {
#[doc = "No effect"]
pub const _0: Self = Self::new(0);
#[doc = "Start the A/D conversion of scan group n"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Adsyst2_SPEC;
pub type Adsyst2 = crate::EnumBitfieldStruct<u8, Adsyst2_SPEC>;
impl Adsyst2 {
#[doc = "No effect"]
pub const _0: Self = Self::new(0);
#[doc = "Start the A/D conversion of scan group n"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Adsyst3_SPEC;
pub type Adsyst3 = crate::EnumBitfieldStruct<u8, Adsyst3_SPEC>;
impl Adsyst3 {
#[doc = "No effect"]
pub const _0: Self = Self::new(0);
#[doc = "Start the A/D conversion of scan group n"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Adsyst4_SPEC;
pub type Adsyst4 = crate::EnumBitfieldStruct<u8, Adsyst4_SPEC>;
impl Adsyst4 {
#[doc = "No effect"]
pub const _0: Self = Self::new(0);
#[doc = "Start the A/D conversion of scan group n"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Adsyst5_SPEC;
pub type Adsyst5 = crate::EnumBitfieldStruct<u8, Adsyst5_SPEC>;
impl Adsyst5 {
#[doc = "No effect"]
pub const _0: Self = Self::new(0);
#[doc = "Start the A/D conversion of scan group n"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Adsyst6_SPEC;
pub type Adsyst6 = crate::EnumBitfieldStruct<u8, Adsyst6_SPEC>;
impl Adsyst6 {
#[doc = "No effect"]
pub const _0: Self = Self::new(0);
#[doc = "Start the A/D conversion of scan group n"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Adsyst7_SPEC;
pub type Adsyst7 = crate::EnumBitfieldStruct<u8, Adsyst7_SPEC>;
impl Adsyst7 {
#[doc = "No effect"]
pub const _0: Self = Self::new(0);
#[doc = "Start the A/D conversion of scan group n"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Adsyst8_SPEC;
pub type Adsyst8 = crate::EnumBitfieldStruct<u8, Adsyst8_SPEC>;
impl Adsyst8 {
#[doc = "No effect"]
pub const _0: Self = Self::new(0);
#[doc = "Start the A/D conversion of scan group n"]
pub const _1: Self = Self::new(1);
}
}
#[doc(hidden)]
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct Adstr_SPEC;
impl crate::sealed::RegSpec for Adstr_SPEC {
type DataType = u32;
}
#[doc = "A/D Conversion Software Start Register %s"]
pub type Adstr = crate::RegValueT<Adstr_SPEC>;
impl Adstr {
#[doc = "Scan Group n A/D Conversion Start"]
#[inline(always)]
pub fn adst(
self,
) -> crate::common::RegisterField<
0,
0x1,
1,
0,
adstr::Adst,
adstr::Adst,
Adstr_SPEC,
crate::common::W,
> {
crate::common::RegisterField::<
0,
0x1,
1,
0,
adstr::Adst,
adstr::Adst,
Adstr_SPEC,
crate::common::W,
>::from_register(self, 0)
}
}
impl ::core::default::Default for Adstr {
#[inline(always)]
fn default() -> Adstr {
<crate::RegValueT<Adstr_SPEC> as RegisterValue<_>>::new(0)
}
}
pub mod adstr {
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Adst_SPEC;
pub type Adst = crate::EnumBitfieldStruct<u8, Adst_SPEC>;
impl Adst {
#[doc = "No effect"]
pub const _0: Self = Self::new(0);
#[doc = "Start the A/D conversion of scan group n"]
pub const _1: Self = Self::new(1);
}
}
#[doc(hidden)]
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct Adstopr_SPEC;
impl crate::sealed::RegSpec for Adstopr_SPEC {
type DataType = u32;
}
#[doc = "A/D Conversion Stop Register"]
pub type Adstopr = crate::RegValueT<Adstopr_SPEC>;
impl Adstopr {
#[doc = "A/D Converter Unit 0 Force Stop"]
#[inline(always)]
pub fn adstop0(
self,
) -> crate::common::RegisterField<
0,
0x1,
1,
0,
adstopr::Adstop0,
adstopr::Adstop0,
Adstopr_SPEC,
crate::common::W,
> {
crate::common::RegisterField::<
0,
0x1,
1,
0,
adstopr::Adstop0,
adstopr::Adstop0,
Adstopr_SPEC,
crate::common::W,
>::from_register(self, 0)
}
#[doc = "A/D Converter Unit 1 Force Stop"]
#[inline(always)]
pub fn adstop1(
self,
) -> crate::common::RegisterField<
8,
0x1,
1,
0,
adstopr::Adstop1,
adstopr::Adstop1,
Adstopr_SPEC,
crate::common::W,
> {
crate::common::RegisterField::<
8,
0x1,
1,
0,
adstopr::Adstop1,
adstopr::Adstop1,
Adstopr_SPEC,
crate::common::W,
>::from_register(self, 0)
}
}
impl ::core::default::Default for Adstopr {
#[inline(always)]
fn default() -> Adstopr {
<crate::RegValueT<Adstopr_SPEC> as RegisterValue<_>>::new(0)
}
}
pub mod adstopr {
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Adstop0_SPEC;
pub type Adstop0 = crate::EnumBitfieldStruct<u8, Adstop0_SPEC>;
impl Adstop0 {
#[doc = "No effect"]
pub const _0: Self = Self::new(0);
#[doc = "Force stop the operation of A/D converter unit 0"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Adstop1_SPEC;
pub type Adstop1 = crate::EnumBitfieldStruct<u8, Adstop1_SPEC>;
impl Adstop1 {
#[doc = "No effect"]
pub const _0: Self = Self::new(0);
#[doc = "Force stop the operation of A/D converter unit 1"]
pub const _1: Self = Self::new(1);
}
}
#[doc(hidden)]
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct Adsr_SPEC;
impl crate::sealed::RegSpec for Adsr_SPEC {
type DataType = u32;
}
#[doc = "A/D Conversion Status Register"]
pub type Adsr = crate::RegValueT<Adsr_SPEC>;
impl Adsr {
#[doc = "A/D Converter Unit 0 (ADC0) A/D Conversion Status"]
#[inline(always)]
pub fn adact0(
self,
) -> crate::common::RegisterField<
0,
0x1,
1,
0,
adsr::Adact0,
adsr::Adact0,
Adsr_SPEC,
crate::common::R,
> {
crate::common::RegisterField::<
0,
0x1,
1,
0,
adsr::Adact0,
adsr::Adact0,
Adsr_SPEC,
crate::common::R,
>::from_register(self, 0)
}
#[doc = "A/D Converter Unit 1 (ADC1) A/D Conversion Status"]
#[inline(always)]
pub fn adact1(
self,
) -> crate::common::RegisterField<
1,
0x1,
1,
0,
adsr::Adact1,
adsr::Adact1,
Adsr_SPEC,
crate::common::R,
> {
crate::common::RegisterField::<
1,
0x1,
1,
0,
adsr::Adact1,
adsr::Adact1,
Adsr_SPEC,
crate::common::R,
>::from_register(self, 0)
}
#[doc = "A/D Converter Unit 0 (ADC0) : Calibration Status"]
#[inline(always)]
pub fn calact0(
self,
) -> crate::common::RegisterField<
16,
0x1,
1,
0,
adsr::Calact0,
adsr::Calact0,
Adsr_SPEC,
crate::common::R,
> {
crate::common::RegisterField::<
16,
0x1,
1,
0,
adsr::Calact0,
adsr::Calact0,
Adsr_SPEC,
crate::common::R,
>::from_register(self, 0)
}
#[doc = "A/D Converter Unit 1 (ADC1) : Calibration Status"]
#[inline(always)]
pub fn calact1(
self,
) -> crate::common::RegisterField<
17,
0x1,
1,
0,
adsr::Calact1,
adsr::Calact1,
Adsr_SPEC,
crate::common::R,
> {
crate::common::RegisterField::<
17,
0x1,
1,
0,
adsr::Calact1,
adsr::Calact1,
Adsr_SPEC,
crate::common::R,
>::from_register(self, 0)
}
}
impl ::core::default::Default for Adsr {
#[inline(always)]
fn default() -> Adsr {
<crate::RegValueT<Adsr_SPEC> as RegisterValue<_>>::new(0)
}
}
pub mod adsr {
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Adact0_SPEC;
pub type Adact0 = crate::EnumBitfieldStruct<u8, Adact0_SPEC>;
impl Adact0 {
#[doc = "ADC0 is not in A/D conversion"]
pub const _0: Self = Self::new(0);
#[doc = "ADC0 is in A/D conversion"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Adact1_SPEC;
pub type Adact1 = crate::EnumBitfieldStruct<u8, Adact1_SPEC>;
impl Adact1 {
#[doc = "ADC1 is not in A/D conversion"]
pub const _0: Self = Self::new(0);
#[doc = "ADC1 is in A/D conversion"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Calact0_SPEC;
pub type Calact0 = crate::EnumBitfieldStruct<u8, Calact0_SPEC>;
impl Calact0 {
#[doc = "ADC0 is not in the calibration operation"]
pub const _0: Self = Self::new(0);
#[doc = "ADC0 is in the calibration operation"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Calact1_SPEC;
pub type Calact1 = crate::EnumBitfieldStruct<u8, Calact1_SPEC>;
impl Calact1 {
#[doc = "ADC1 is not in the calibration operation"]
pub const _0: Self = Self::new(0);
#[doc = "ADC1 is in the calibration operation"]
pub const _1: Self = Self::new(1);
}
}
#[doc(hidden)]
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct Adgrsr_SPEC;
impl crate::sealed::RegSpec for Adgrsr_SPEC {
type DataType = u32;
}
#[doc = "Scan Group Status Register"]
pub type Adgrsr = crate::RegValueT<Adgrsr_SPEC>;
impl Adgrsr {
#[doc = "Scan Group n Status"]
#[inline(always)]
pub fn actgr0(
self,
) -> crate::common::RegisterField<
0,
0x1,
1,
0,
adgrsr::Actgr0,
adgrsr::Actgr0,
Adgrsr_SPEC,
crate::common::R,
> {
crate::common::RegisterField::<
0,
0x1,
1,
0,
adgrsr::Actgr0,
adgrsr::Actgr0,
Adgrsr_SPEC,
crate::common::R,
>::from_register(self, 0)
}
#[doc = "Scan Group n Status"]
#[inline(always)]
pub fn actgr1(
self,
) -> crate::common::RegisterField<
1,
0x1,
1,
0,
adgrsr::Actgr1,
adgrsr::Actgr1,
Adgrsr_SPEC,
crate::common::R,
> {
crate::common::RegisterField::<
1,
0x1,
1,
0,
adgrsr::Actgr1,
adgrsr::Actgr1,
Adgrsr_SPEC,
crate::common::R,
>::from_register(self, 0)
}
#[doc = "Scan Group n Status"]
#[inline(always)]
pub fn actgr2(
self,
) -> crate::common::RegisterField<
2,
0x1,
1,
0,
adgrsr::Actgr2,
adgrsr::Actgr2,
Adgrsr_SPEC,
crate::common::R,
> {
crate::common::RegisterField::<
2,
0x1,
1,
0,
adgrsr::Actgr2,
adgrsr::Actgr2,
Adgrsr_SPEC,
crate::common::R,
>::from_register(self, 0)
}
#[doc = "Scan Group n Status"]
#[inline(always)]
pub fn actgr3(
self,
) -> crate::common::RegisterField<
3,
0x1,
1,
0,
adgrsr::Actgr3,
adgrsr::Actgr3,
Adgrsr_SPEC,
crate::common::R,
> {
crate::common::RegisterField::<
3,
0x1,
1,
0,
adgrsr::Actgr3,
adgrsr::Actgr3,
Adgrsr_SPEC,
crate::common::R,
>::from_register(self, 0)
}
#[doc = "Scan Group n Status"]
#[inline(always)]
pub fn actgr4(
self,
) -> crate::common::RegisterField<
4,
0x1,
1,
0,
adgrsr::Actgr4,
adgrsr::Actgr4,
Adgrsr_SPEC,
crate::common::R,
> {
crate::common::RegisterField::<
4,
0x1,
1,
0,
adgrsr::Actgr4,
adgrsr::Actgr4,
Adgrsr_SPEC,
crate::common::R,
>::from_register(self, 0)
}
#[doc = "Scan Group n Status"]
#[inline(always)]
pub fn actgr5(
self,
) -> crate::common::RegisterField<
5,
0x1,
1,
0,
adgrsr::Actgr5,
adgrsr::Actgr5,
Adgrsr_SPEC,
crate::common::R,
> {
crate::common::RegisterField::<
5,
0x1,
1,
0,
adgrsr::Actgr5,
adgrsr::Actgr5,
Adgrsr_SPEC,
crate::common::R,
>::from_register(self, 0)
}
#[doc = "Scan Group n Status"]
#[inline(always)]
pub fn actgr6(
self,
) -> crate::common::RegisterField<
6,
0x1,
1,
0,
adgrsr::Actgr6,
adgrsr::Actgr6,
Adgrsr_SPEC,
crate::common::R,
> {
crate::common::RegisterField::<
6,
0x1,
1,
0,
adgrsr::Actgr6,
adgrsr::Actgr6,
Adgrsr_SPEC,
crate::common::R,
>::from_register(self, 0)
}
#[doc = "Scan Group n Status"]
#[inline(always)]
pub fn actgr7(
self,
) -> crate::common::RegisterField<
7,
0x1,
1,
0,
adgrsr::Actgr7,
adgrsr::Actgr7,
Adgrsr_SPEC,
crate::common::R,
> {
crate::common::RegisterField::<
7,
0x1,
1,
0,
adgrsr::Actgr7,
adgrsr::Actgr7,
Adgrsr_SPEC,
crate::common::R,
>::from_register(self, 0)
}
#[doc = "Scan Group n Status"]
#[inline(always)]
pub fn actgr8(
self,
) -> crate::common::RegisterField<
8,
0x1,
1,
0,
adgrsr::Actgr8,
adgrsr::Actgr8,
Adgrsr_SPEC,
crate::common::R,
> {
crate::common::RegisterField::<
8,
0x1,
1,
0,
adgrsr::Actgr8,
adgrsr::Actgr8,
Adgrsr_SPEC,
crate::common::R,
>::from_register(self, 0)
}
}
impl ::core::default::Default for Adgrsr {
#[inline(always)]
fn default() -> Adgrsr {
<crate::RegValueT<Adgrsr_SPEC> as RegisterValue<_>>::new(0)
}
}
pub mod adgrsr {
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Actgr0_SPEC;
pub type Actgr0 = crate::EnumBitfieldStruct<u8, Actgr0_SPEC>;
impl Actgr0 {
#[doc = "Scan group n is idle"]
pub const _0: Self = Self::new(0);
#[doc = "Scan group n is in the scanning operation"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Actgr1_SPEC;
pub type Actgr1 = crate::EnumBitfieldStruct<u8, Actgr1_SPEC>;
impl Actgr1 {
#[doc = "Scan group n is idle"]
pub const _0: Self = Self::new(0);
#[doc = "Scan group n is in the scanning operation"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Actgr2_SPEC;
pub type Actgr2 = crate::EnumBitfieldStruct<u8, Actgr2_SPEC>;
impl Actgr2 {
#[doc = "Scan group n is idle"]
pub const _0: Self = Self::new(0);
#[doc = "Scan group n is in the scanning operation"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Actgr3_SPEC;
pub type Actgr3 = crate::EnumBitfieldStruct<u8, Actgr3_SPEC>;
impl Actgr3 {
#[doc = "Scan group n is idle"]
pub const _0: Self = Self::new(0);
#[doc = "Scan group n is in the scanning operation"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Actgr4_SPEC;
pub type Actgr4 = crate::EnumBitfieldStruct<u8, Actgr4_SPEC>;
impl Actgr4 {
#[doc = "Scan group n is idle"]
pub const _0: Self = Self::new(0);
#[doc = "Scan group n is in the scanning operation"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Actgr5_SPEC;
pub type Actgr5 = crate::EnumBitfieldStruct<u8, Actgr5_SPEC>;
impl Actgr5 {
#[doc = "Scan group n is idle"]
pub const _0: Self = Self::new(0);
#[doc = "Scan group n is in the scanning operation"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Actgr6_SPEC;
pub type Actgr6 = crate::EnumBitfieldStruct<u8, Actgr6_SPEC>;
impl Actgr6 {
#[doc = "Scan group n is idle"]
pub const _0: Self = Self::new(0);
#[doc = "Scan group n is in the scanning operation"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Actgr7_SPEC;
pub type Actgr7 = crate::EnumBitfieldStruct<u8, Actgr7_SPEC>;
impl Actgr7 {
#[doc = "Scan group n is idle"]
pub const _0: Self = Self::new(0);
#[doc = "Scan group n is in the scanning operation"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Actgr8_SPEC;
pub type Actgr8 = crate::EnumBitfieldStruct<u8, Actgr8_SPEC>;
impl Actgr8 {
#[doc = "Scan group n is idle"]
pub const _0: Self = Self::new(0);
#[doc = "Scan group n is in the scanning operation"]
pub const _1: Self = Self::new(1);
}
}
#[doc(hidden)]
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct Adersr_SPEC;
impl crate::sealed::RegSpec for Adersr_SPEC {
type DataType = u32;
}
#[doc = "A/D Conversion Error Status Register"]
pub type Adersr = crate::RegValueT<Adersr_SPEC>;
impl Adersr {
#[doc = "A/D Converter Unit 0 (ADC0) Error Flag"]
#[inline(always)]
pub fn aderf0(
self,
) -> crate::common::RegisterField<
0,
0x1,
1,
0,
adersr::Aderf0,
adersr::Aderf0,
Adersr_SPEC,
crate::common::R,
> {
crate::common::RegisterField::<
0,
0x1,
1,
0,
adersr::Aderf0,
adersr::Aderf0,
Adersr_SPEC,
crate::common::R,
>::from_register(self, 0)
}
#[doc = "A/D Converter Unit 1 (ADC1) Error Flag"]
#[inline(always)]
pub fn aderf1(
self,
) -> crate::common::RegisterField<
1,
0x1,
1,
0,
adersr::Aderf1,
adersr::Aderf1,
Adersr_SPEC,
crate::common::R,
> {
crate::common::RegisterField::<
1,
0x1,
1,
0,
adersr::Aderf1,
adersr::Aderf1,
Adersr_SPEC,
crate::common::R,
>::from_register(self, 0)
}
}
impl ::core::default::Default for Adersr {
#[inline(always)]
fn default() -> Adersr {
<crate::RegValueT<Adersr_SPEC> as RegisterValue<_>>::new(0)
}
}
pub mod adersr {
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Aderf0_SPEC;
pub type Aderf0 = crate::EnumBitfieldStruct<u8, Aderf0_SPEC>;
impl Aderf0 {
#[doc = "Error is not detected"]
pub const _0: Self = Self::new(0);
#[doc = "Error is detected"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Aderf1_SPEC;
pub type Aderf1 = crate::EnumBitfieldStruct<u8, Aderf1_SPEC>;
impl Aderf1 {
#[doc = "Error is not detected"]
pub const _0: Self = Self::new(0);
#[doc = "Error is detected"]
pub const _1: Self = Self::new(1);
}
}
#[doc(hidden)]
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct Aderscr_SPEC;
impl crate::sealed::RegSpec for Aderscr_SPEC {
type DataType = u32;
}
#[doc = "A/D Conversion Error Status Clear Register"]
pub type Aderscr = crate::RegValueT<Aderscr_SPEC>;
impl Aderscr {
#[doc = "A/D Converter Unit 0 Error Flag Clear"]
#[inline(always)]
pub fn aderclr0(
self,
) -> crate::common::RegisterField<
0,
0x1,
1,
0,
aderscr::Aderclr0,
aderscr::Aderclr0,
Aderscr_SPEC,
crate::common::W,
> {
crate::common::RegisterField::<
0,
0x1,
1,
0,
aderscr::Aderclr0,
aderscr::Aderclr0,
Aderscr_SPEC,
crate::common::W,
>::from_register(self, 0)
}
#[doc = "A/D Converter Unit 1 Error Flag Clear"]
#[inline(always)]
pub fn aderclr1(
self,
) -> crate::common::RegisterField<
1,
0x1,
1,
0,
aderscr::Aderclr1,
aderscr::Aderclr1,
Aderscr_SPEC,
crate::common::W,
> {
crate::common::RegisterField::<
1,
0x1,
1,
0,
aderscr::Aderclr1,
aderscr::Aderclr1,
Aderscr_SPEC,
crate::common::W,
>::from_register(self, 0)
}
}
impl ::core::default::Default for Aderscr {
#[inline(always)]
fn default() -> Aderscr {
<crate::RegValueT<Aderscr_SPEC> as RegisterValue<_>>::new(0)
}
}
pub mod aderscr {
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Aderclr0_SPEC;
pub type Aderclr0 = crate::EnumBitfieldStruct<u8, Aderclr0_SPEC>;
impl Aderclr0 {
#[doc = "No effect"]
pub const _0: Self = Self::new(0);
#[doc = "ADERSR.ADERF0 is cleared"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Aderclr1_SPEC;
pub type Aderclr1 = crate::EnumBitfieldStruct<u8, Aderclr1_SPEC>;
impl Aderclr1 {
#[doc = "No effect"]
pub const _0: Self = Self::new(0);
#[doc = "ADERSR.ADERF1 is cleared"]
pub const _1: Self = Self::new(1);
}
}
#[doc(hidden)]
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct Adcalendsr_SPEC;
impl crate::sealed::RegSpec for Adcalendsr_SPEC {
type DataType = u32;
}
#[doc = "A/D Converter Self-calibration End Status Register"]
pub type Adcalendsr = crate::RegValueT<Adcalendsr_SPEC>;
impl Adcalendsr {
#[doc = "A/D Converter Unit 0 Calibration End flag"]
#[inline(always)]
pub fn calendf0(
self,
) -> crate::common::RegisterField<
0,
0x1,
1,
0,
adcalendsr::Calendf0,
adcalendsr::Calendf0,
Adcalendsr_SPEC,
crate::common::R,
> {
crate::common::RegisterField::<
0,
0x1,
1,
0,
adcalendsr::Calendf0,
adcalendsr::Calendf0,
Adcalendsr_SPEC,
crate::common::R,
>::from_register(self, 0)
}
#[doc = "A/D Converter Unit 1 Calibration End flag"]
#[inline(always)]
pub fn calendf1(
self,
) -> crate::common::RegisterField<
1,
0x1,
1,
0,
adcalendsr::Calendf1,
adcalendsr::Calendf1,
Adcalendsr_SPEC,
crate::common::R,
> {
crate::common::RegisterField::<
1,
0x1,
1,
0,
adcalendsr::Calendf1,
adcalendsr::Calendf1,
Adcalendsr_SPEC,
crate::common::R,
>::from_register(self, 0)
}
}
impl ::core::default::Default for Adcalendsr {
#[inline(always)]
fn default() -> Adcalendsr {
<crate::RegValueT<Adcalendsr_SPEC> as RegisterValue<_>>::new(0)
}
}
pub mod adcalendsr {
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Calendf0_SPEC;
pub type Calendf0 = crate::EnumBitfieldStruct<u8, Calendf0_SPEC>;
impl Calendf0 {
#[doc = "End of the calibration is not detected"]
pub const _0: Self = Self::new(0);
#[doc = "End of the calibration is detected"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Calendf1_SPEC;
pub type Calendf1 = crate::EnumBitfieldStruct<u8, Calendf1_SPEC>;
impl Calendf1 {
#[doc = "End of the calibration is not detected"]
pub const _0: Self = Self::new(0);
#[doc = "End of the calibration is detected"]
pub const _1: Self = Self::new(1);
}
}
#[doc(hidden)]
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct Adcalendscr_SPEC;
impl crate::sealed::RegSpec for Adcalendscr_SPEC {
type DataType = u32;
}
#[doc = "A/D Converter Self-calibration End Status Clear Register"]
pub type Adcalendscr = crate::RegValueT<Adcalendscr_SPEC>;
impl Adcalendscr {
#[doc = "A/D Converter Unit 0 Calibration End Flag Clear"]
#[inline(always)]
pub fn calendc0(
self,
) -> crate::common::RegisterField<
0,
0x1,
1,
0,
adcalendscr::Calendc0,
adcalendscr::Calendc0,
Adcalendscr_SPEC,
crate::common::W,
> {
crate::common::RegisterField::<
0,
0x1,
1,
0,
adcalendscr::Calendc0,
adcalendscr::Calendc0,
Adcalendscr_SPEC,
crate::common::W,
>::from_register(self, 0)
}
#[doc = "A/D Converter Unit 1 Calibration End Flag Clear"]
#[inline(always)]
pub fn calendc1(
self,
) -> crate::common::RegisterField<
1,
0x1,
1,
0,
adcalendscr::Calendc1,
adcalendscr::Calendc1,
Adcalendscr_SPEC,
crate::common::W,
> {
crate::common::RegisterField::<
1,
0x1,
1,
0,
adcalendscr::Calendc1,
adcalendscr::Calendc1,
Adcalendscr_SPEC,
crate::common::W,
>::from_register(self, 0)
}
}
impl ::core::default::Default for Adcalendscr {
#[inline(always)]
fn default() -> Adcalendscr {
<crate::RegValueT<Adcalendscr_SPEC> as RegisterValue<_>>::new(0)
}
}
pub mod adcalendscr {
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Calendc0_SPEC;
pub type Calendc0 = crate::EnumBitfieldStruct<u8, Calendc0_SPEC>;
impl Calendc0 {
#[doc = "No effect"]
pub const _0: Self = Self::new(0);
#[doc = "ADCALENDSR.CALENDF0 is cleared"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Calendc1_SPEC;
pub type Calendc1 = crate::EnumBitfieldStruct<u8, Calendc1_SPEC>;
impl Calendc1 {
#[doc = "No effect"]
pub const _0: Self = Self::new(0);
#[doc = "ADCALENDSR.CALENDF1 is cleared"]
pub const _1: Self = Self::new(1);
}
}
#[doc(hidden)]
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct Adovfersr_SPEC;
impl crate::sealed::RegSpec for Adovfersr_SPEC {
type DataType = u32;
}
#[doc = "A/D Conversion Overflow Error Status Register"]
pub type Adovfersr = crate::RegValueT<Adovfersr_SPEC>;
impl Adovfersr {
#[doc = "A/D Converter Unit 0 (ADC0) Overflow Error Flag"]
#[inline(always)]
pub fn adovfef0(
self,
) -> crate::common::RegisterField<
0,
0x1,
1,
0,
adovfersr::Adovfef0,
adovfersr::Adovfef0,
Adovfersr_SPEC,
crate::common::R,
> {
crate::common::RegisterField::<
0,
0x1,
1,
0,
adovfersr::Adovfef0,
adovfersr::Adovfef0,
Adovfersr_SPEC,
crate::common::R,
>::from_register(self, 0)
}
#[doc = "A/D Converter Unit 1 (ADC1) Overflow Error Flag"]
#[inline(always)]
pub fn adovfef1(
self,
) -> crate::common::RegisterField<
1,
0x1,
1,
0,
adovfersr::Adovfef1,
adovfersr::Adovfef1,
Adovfersr_SPEC,
crate::common::R,
> {
crate::common::RegisterField::<
1,
0x1,
1,
0,
adovfersr::Adovfef1,
adovfersr::Adovfef1,
Adovfersr_SPEC,
crate::common::R,
>::from_register(self, 0)
}
}
impl ::core::default::Default for Adovfersr {
#[inline(always)]
fn default() -> Adovfersr {
<crate::RegValueT<Adovfersr_SPEC> as RegisterValue<_>>::new(0)
}
}
pub mod adovfersr {
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Adovfef0_SPEC;
pub type Adovfef0 = crate::EnumBitfieldStruct<u8, Adovfef0_SPEC>;
impl Adovfef0 {
#[doc = "ADC0 overflow error is not detected"]
pub const _0: Self = Self::new(0);
#[doc = "ADC0 overflow error is detected"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Adovfef1_SPEC;
pub type Adovfef1 = crate::EnumBitfieldStruct<u8, Adovfef1_SPEC>;
impl Adovfef1 {
#[doc = "ADC1 overflow error is not detected"]
pub const _0: Self = Self::new(0);
#[doc = "ADC1 overflow error is detected"]
pub const _1: Self = Self::new(1);
}
}
#[doc(hidden)]
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct Adovfchsr0_SPEC;
impl crate::sealed::RegSpec for Adovfchsr0_SPEC {
type DataType = u32;
}
#[doc = "A/D Conversion Overflow Channel Status Register 0"]
pub type Adovfchsr0 = crate::RegValueT<Adovfchsr0_SPEC>;
impl Adovfchsr0 {
#[doc = "Analog Channel n: Overflow Flag"]
#[inline(always)]
pub fn ovfchf0(
self,
) -> crate::common::RegisterField<
0,
0x1,
1,
0,
adovfchsr0::Ovfchf0,
adovfchsr0::Ovfchf0,
Adovfchsr0_SPEC,
crate::common::R,
> {
crate::common::RegisterField::<
0,
0x1,
1,
0,
adovfchsr0::Ovfchf0,
adovfchsr0::Ovfchf0,
Adovfchsr0_SPEC,
crate::common::R,
>::from_register(self, 0)
}
#[doc = "Analog Channel n: Overflow Flag"]
#[inline(always)]
pub fn ovfchf1(
self,
) -> crate::common::RegisterField<
1,
0x1,
1,
0,
adovfchsr0::Ovfchf1,
adovfchsr0::Ovfchf1,
Adovfchsr0_SPEC,
crate::common::R,
> {
crate::common::RegisterField::<
1,
0x1,
1,
0,
adovfchsr0::Ovfchf1,
adovfchsr0::Ovfchf1,
Adovfchsr0_SPEC,
crate::common::R,
>::from_register(self, 0)
}
#[doc = "Analog Channel n: Overflow Flag"]
#[inline(always)]
pub fn ovfchf2(
self,
) -> crate::common::RegisterField<
2,
0x1,
1,
0,
adovfchsr0::Ovfchf2,
adovfchsr0::Ovfchf2,
Adovfchsr0_SPEC,
crate::common::R,
> {
crate::common::RegisterField::<
2,
0x1,
1,
0,
adovfchsr0::Ovfchf2,
adovfchsr0::Ovfchf2,
Adovfchsr0_SPEC,
crate::common::R,
>::from_register(self, 0)
}
#[doc = "Analog Channel n: Overflow Flag"]
#[inline(always)]
pub fn ovfchf3(
self,
) -> crate::common::RegisterField<
3,
0x1,
1,
0,
adovfchsr0::Ovfchf3,
adovfchsr0::Ovfchf3,
Adovfchsr0_SPEC,
crate::common::R,
> {
crate::common::RegisterField::<
3,
0x1,
1,
0,
adovfchsr0::Ovfchf3,
adovfchsr0::Ovfchf3,
Adovfchsr0_SPEC,
crate::common::R,
>::from_register(self, 0)
}
#[doc = "Analog Channel n: Overflow Flag"]
#[inline(always)]
pub fn ovfchf4(
self,
) -> crate::common::RegisterField<
4,
0x1,
1,
0,
adovfchsr0::Ovfchf4,
adovfchsr0::Ovfchf4,
Adovfchsr0_SPEC,
crate::common::R,
> {
crate::common::RegisterField::<
4,
0x1,
1,
0,
adovfchsr0::Ovfchf4,
adovfchsr0::Ovfchf4,
Adovfchsr0_SPEC,
crate::common::R,
>::from_register(self, 0)
}
#[doc = "Analog Channel n: Overflow Flag"]
#[inline(always)]
pub fn ovfchf5(
self,
) -> crate::common::RegisterField<
5,
0x1,
1,
0,
adovfchsr0::Ovfchf5,
adovfchsr0::Ovfchf5,
Adovfchsr0_SPEC,
crate::common::R,
> {
crate::common::RegisterField::<
5,
0x1,
1,
0,
adovfchsr0::Ovfchf5,
adovfchsr0::Ovfchf5,
Adovfchsr0_SPEC,
crate::common::R,
>::from_register(self, 0)
}
#[doc = "Analog Channel n: Overflow Flag"]
#[inline(always)]
pub fn ovfchf6(
self,
) -> crate::common::RegisterField<
6,
0x1,
1,
0,
adovfchsr0::Ovfchf6,
adovfchsr0::Ovfchf6,
Adovfchsr0_SPEC,
crate::common::R,
> {
crate::common::RegisterField::<
6,
0x1,
1,
0,
adovfchsr0::Ovfchf6,
adovfchsr0::Ovfchf6,
Adovfchsr0_SPEC,
crate::common::R,
>::from_register(self, 0)
}
#[doc = "Analog Channel n: Overflow Flag"]
#[inline(always)]
pub fn ovfchf7(
self,
) -> crate::common::RegisterField<
7,
0x1,
1,
0,
adovfchsr0::Ovfchf7,
adovfchsr0::Ovfchf7,
Adovfchsr0_SPEC,
crate::common::R,
> {
crate::common::RegisterField::<
7,
0x1,
1,
0,
adovfchsr0::Ovfchf7,
adovfchsr0::Ovfchf7,
Adovfchsr0_SPEC,
crate::common::R,
>::from_register(self, 0)
}
#[doc = "Analog Channel n: Overflow Flag"]
#[inline(always)]
pub fn ovfchf8(
self,
) -> crate::common::RegisterField<
8,
0x1,
1,
0,
adovfchsr0::Ovfchf8,
adovfchsr0::Ovfchf8,
Adovfchsr0_SPEC,
crate::common::R,
> {
crate::common::RegisterField::<
8,
0x1,
1,
0,
adovfchsr0::Ovfchf8,
adovfchsr0::Ovfchf8,
Adovfchsr0_SPEC,
crate::common::R,
>::from_register(self, 0)
}
#[doc = "Analog Channel n: Overflow Flag"]
#[inline(always)]
pub fn ovfchf9(
self,
) -> crate::common::RegisterField<
9,
0x1,
1,
0,
adovfchsr0::Ovfchf9,
adovfchsr0::Ovfchf9,
Adovfchsr0_SPEC,
crate::common::R,
> {
crate::common::RegisterField::<
9,
0x1,
1,
0,
adovfchsr0::Ovfchf9,
adovfchsr0::Ovfchf9,
Adovfchsr0_SPEC,
crate::common::R,
>::from_register(self, 0)
}
#[doc = "Analog Channel n: Overflow Flag"]
#[inline(always)]
pub fn ovfchf10(
self,
) -> crate::common::RegisterField<
10,
0x1,
1,
0,
adovfchsr0::Ovfchf10,
adovfchsr0::Ovfchf10,
Adovfchsr0_SPEC,
crate::common::R,
> {
crate::common::RegisterField::<
10,
0x1,
1,
0,
adovfchsr0::Ovfchf10,
adovfchsr0::Ovfchf10,
Adovfchsr0_SPEC,
crate::common::R,
>::from_register(self, 0)
}
#[doc = "Analog Channel n: Overflow Flag"]
#[inline(always)]
pub fn ovfchf11(
self,
) -> crate::common::RegisterField<
11,
0x1,
1,
0,
adovfchsr0::Ovfchf11,
adovfchsr0::Ovfchf11,
Adovfchsr0_SPEC,
crate::common::R,
> {
crate::common::RegisterField::<
11,
0x1,
1,
0,
adovfchsr0::Ovfchf11,
adovfchsr0::Ovfchf11,
Adovfchsr0_SPEC,
crate::common::R,
>::from_register(self, 0)
}
#[doc = "Analog Channel n: Overflow Flag"]
#[inline(always)]
pub fn ovfchf12(
self,
) -> crate::common::RegisterField<
12,
0x1,
1,
0,
adovfchsr0::Ovfchf12,
adovfchsr0::Ovfchf12,
Adovfchsr0_SPEC,
crate::common::R,
> {
crate::common::RegisterField::<
12,
0x1,
1,
0,
adovfchsr0::Ovfchf12,
adovfchsr0::Ovfchf12,
Adovfchsr0_SPEC,
crate::common::R,
>::from_register(self, 0)
}
#[doc = "Analog Channel n: Overflow Flag"]
#[inline(always)]
pub fn ovfchf13(
self,
) -> crate::common::RegisterField<
13,
0x1,
1,
0,
adovfchsr0::Ovfchf13,
adovfchsr0::Ovfchf13,
Adovfchsr0_SPEC,
crate::common::R,
> {
crate::common::RegisterField::<
13,
0x1,
1,
0,
adovfchsr0::Ovfchf13,
adovfchsr0::Ovfchf13,
Adovfchsr0_SPEC,
crate::common::R,
>::from_register(self, 0)
}
#[doc = "Analog Channel n: Overflow Flag"]
#[inline(always)]
pub fn ovfchf14(
self,
) -> crate::common::RegisterField<
14,
0x1,
1,
0,
adovfchsr0::Ovfchf14,
adovfchsr0::Ovfchf14,
Adovfchsr0_SPEC,
crate::common::R,
> {
crate::common::RegisterField::<
14,
0x1,
1,
0,
adovfchsr0::Ovfchf14,
adovfchsr0::Ovfchf14,
Adovfchsr0_SPEC,
crate::common::R,
>::from_register(self, 0)
}
#[doc = "Analog Channel n: Overflow Flag"]
#[inline(always)]
pub fn ovfchf15(
self,
) -> crate::common::RegisterField<
15,
0x1,
1,
0,
adovfchsr0::Ovfchf15,
adovfchsr0::Ovfchf15,
Adovfchsr0_SPEC,
crate::common::R,
> {
crate::common::RegisterField::<
15,
0x1,
1,
0,
adovfchsr0::Ovfchf15,
adovfchsr0::Ovfchf15,
Adovfchsr0_SPEC,
crate::common::R,
>::from_register(self, 0)
}
#[doc = "Analog Channel n: Overflow Flag"]
#[inline(always)]
pub fn ovfchf16(
self,
) -> crate::common::RegisterField<
16,
0x1,
1,
0,
adovfchsr0::Ovfchf16,
adovfchsr0::Ovfchf16,
Adovfchsr0_SPEC,
crate::common::R,
> {
crate::common::RegisterField::<
16,
0x1,
1,
0,
adovfchsr0::Ovfchf16,
adovfchsr0::Ovfchf16,
Adovfchsr0_SPEC,
crate::common::R,
>::from_register(self, 0)
}
#[doc = "Analog Channel n: Overflow Flag"]
#[inline(always)]
pub fn ovfchf17(
self,
) -> crate::common::RegisterField<
17,
0x1,
1,
0,
adovfchsr0::Ovfchf17,
adovfchsr0::Ovfchf17,
Adovfchsr0_SPEC,
crate::common::R,
> {
crate::common::RegisterField::<
17,
0x1,
1,
0,
adovfchsr0::Ovfchf17,
adovfchsr0::Ovfchf17,
Adovfchsr0_SPEC,
crate::common::R,
>::from_register(self, 0)
}
#[doc = "Analog Channel n: Overflow Flag"]
#[inline(always)]
pub fn ovfchf18(
self,
) -> crate::common::RegisterField<
18,
0x1,
1,
0,
adovfchsr0::Ovfchf18,
adovfchsr0::Ovfchf18,
Adovfchsr0_SPEC,
crate::common::R,
> {
crate::common::RegisterField::<
18,
0x1,
1,
0,
adovfchsr0::Ovfchf18,
adovfchsr0::Ovfchf18,
Adovfchsr0_SPEC,
crate::common::R,
>::from_register(self, 0)
}
#[doc = "Analog Channel n: Overflow Flag"]
#[inline(always)]
pub fn ovfchf19(
self,
) -> crate::common::RegisterField<
19,
0x1,
1,
0,
adovfchsr0::Ovfchf19,
adovfchsr0::Ovfchf19,
Adovfchsr0_SPEC,
crate::common::R,
> {
crate::common::RegisterField::<
19,
0x1,
1,
0,
adovfchsr0::Ovfchf19,
adovfchsr0::Ovfchf19,
Adovfchsr0_SPEC,
crate::common::R,
>::from_register(self, 0)
}
#[doc = "Analog Channel n: Overflow Flag"]
#[inline(always)]
pub fn ovfchf20(
self,
) -> crate::common::RegisterField<
20,
0x1,
1,
0,
adovfchsr0::Ovfchf20,
adovfchsr0::Ovfchf20,
Adovfchsr0_SPEC,
crate::common::R,
> {
crate::common::RegisterField::<
20,
0x1,
1,
0,
adovfchsr0::Ovfchf20,
adovfchsr0::Ovfchf20,
Adovfchsr0_SPEC,
crate::common::R,
>::from_register(self, 0)
}
#[doc = "Analog Channel n: Overflow Flag"]
#[inline(always)]
pub fn ovfchf21(
self,
) -> crate::common::RegisterField<
21,
0x1,
1,
0,
adovfchsr0::Ovfchf21,
adovfchsr0::Ovfchf21,
Adovfchsr0_SPEC,
crate::common::R,
> {
crate::common::RegisterField::<
21,
0x1,
1,
0,
adovfchsr0::Ovfchf21,
adovfchsr0::Ovfchf21,
Adovfchsr0_SPEC,
crate::common::R,
>::from_register(self, 0)
}
#[doc = "Analog Channel n: Overflow Flag"]
#[inline(always)]
pub fn ovfchf22(
self,
) -> crate::common::RegisterField<
22,
0x1,
1,
0,
adovfchsr0::Ovfchf22,
adovfchsr0::Ovfchf22,
Adovfchsr0_SPEC,
crate::common::R,
> {
crate::common::RegisterField::<
22,
0x1,
1,
0,
adovfchsr0::Ovfchf22,
adovfchsr0::Ovfchf22,
Adovfchsr0_SPEC,
crate::common::R,
>::from_register(self, 0)
}
}
impl ::core::default::Default for Adovfchsr0 {
#[inline(always)]
fn default() -> Adovfchsr0 {
<crate::RegValueT<Adovfchsr0_SPEC> as RegisterValue<_>>::new(0)
}
}
pub mod adovfchsr0 {
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Ovfchf0_SPEC;
pub type Ovfchf0 = crate::EnumBitfieldStruct<u8, Ovfchf0_SPEC>;
impl Ovfchf0 {
#[doc = "Overflow is not detected"]
pub const _0: Self = Self::new(0);
#[doc = "Overflow is detected"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Ovfchf1_SPEC;
pub type Ovfchf1 = crate::EnumBitfieldStruct<u8, Ovfchf1_SPEC>;
impl Ovfchf1 {
#[doc = "Overflow is not detected"]
pub const _0: Self = Self::new(0);
#[doc = "Overflow is detected"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Ovfchf2_SPEC;
pub type Ovfchf2 = crate::EnumBitfieldStruct<u8, Ovfchf2_SPEC>;
impl Ovfchf2 {
#[doc = "Overflow is not detected"]
pub const _0: Self = Self::new(0);
#[doc = "Overflow is detected"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Ovfchf3_SPEC;
pub type Ovfchf3 = crate::EnumBitfieldStruct<u8, Ovfchf3_SPEC>;
impl Ovfchf3 {
#[doc = "Overflow is not detected"]
pub const _0: Self = Self::new(0);
#[doc = "Overflow is detected"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Ovfchf4_SPEC;
pub type Ovfchf4 = crate::EnumBitfieldStruct<u8, Ovfchf4_SPEC>;
impl Ovfchf4 {
#[doc = "Overflow is not detected"]
pub const _0: Self = Self::new(0);
#[doc = "Overflow is detected"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Ovfchf5_SPEC;
pub type Ovfchf5 = crate::EnumBitfieldStruct<u8, Ovfchf5_SPEC>;
impl Ovfchf5 {
#[doc = "Overflow is not detected"]
pub const _0: Self = Self::new(0);
#[doc = "Overflow is detected"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Ovfchf6_SPEC;
pub type Ovfchf6 = crate::EnumBitfieldStruct<u8, Ovfchf6_SPEC>;
impl Ovfchf6 {
#[doc = "Overflow is not detected"]
pub const _0: Self = Self::new(0);
#[doc = "Overflow is detected"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Ovfchf7_SPEC;
pub type Ovfchf7 = crate::EnumBitfieldStruct<u8, Ovfchf7_SPEC>;
impl Ovfchf7 {
#[doc = "Overflow is not detected"]
pub const _0: Self = Self::new(0);
#[doc = "Overflow is detected"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Ovfchf8_SPEC;
pub type Ovfchf8 = crate::EnumBitfieldStruct<u8, Ovfchf8_SPEC>;
impl Ovfchf8 {
#[doc = "Overflow is not detected"]
pub const _0: Self = Self::new(0);
#[doc = "Overflow is detected"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Ovfchf9_SPEC;
pub type Ovfchf9 = crate::EnumBitfieldStruct<u8, Ovfchf9_SPEC>;
impl Ovfchf9 {
#[doc = "Overflow is not detected"]
pub const _0: Self = Self::new(0);
#[doc = "Overflow is detected"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Ovfchf10_SPEC;
pub type Ovfchf10 = crate::EnumBitfieldStruct<u8, Ovfchf10_SPEC>;
impl Ovfchf10 {
#[doc = "Overflow is not detected"]
pub const _0: Self = Self::new(0);
#[doc = "Overflow is detected"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Ovfchf11_SPEC;
pub type Ovfchf11 = crate::EnumBitfieldStruct<u8, Ovfchf11_SPEC>;
impl Ovfchf11 {
#[doc = "Overflow is not detected"]
pub const _0: Self = Self::new(0);
#[doc = "Overflow is detected"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Ovfchf12_SPEC;
pub type Ovfchf12 = crate::EnumBitfieldStruct<u8, Ovfchf12_SPEC>;
impl Ovfchf12 {
#[doc = "Overflow is not detected"]
pub const _0: Self = Self::new(0);
#[doc = "Overflow is detected"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Ovfchf13_SPEC;
pub type Ovfchf13 = crate::EnumBitfieldStruct<u8, Ovfchf13_SPEC>;
impl Ovfchf13 {
#[doc = "Overflow is not detected"]
pub const _0: Self = Self::new(0);
#[doc = "Overflow is detected"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Ovfchf14_SPEC;
pub type Ovfchf14 = crate::EnumBitfieldStruct<u8, Ovfchf14_SPEC>;
impl Ovfchf14 {
#[doc = "Overflow is not detected"]
pub const _0: Self = Self::new(0);
#[doc = "Overflow is detected"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Ovfchf15_SPEC;
pub type Ovfchf15 = crate::EnumBitfieldStruct<u8, Ovfchf15_SPEC>;
impl Ovfchf15 {
#[doc = "Overflow is not detected"]
pub const _0: Self = Self::new(0);
#[doc = "Overflow is detected"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Ovfchf16_SPEC;
pub type Ovfchf16 = crate::EnumBitfieldStruct<u8, Ovfchf16_SPEC>;
impl Ovfchf16 {
#[doc = "Overflow is not detected"]
pub const _0: Self = Self::new(0);
#[doc = "Overflow is detected"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Ovfchf17_SPEC;
pub type Ovfchf17 = crate::EnumBitfieldStruct<u8, Ovfchf17_SPEC>;
impl Ovfchf17 {
#[doc = "Overflow is not detected"]
pub const _0: Self = Self::new(0);
#[doc = "Overflow is detected"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Ovfchf18_SPEC;
pub type Ovfchf18 = crate::EnumBitfieldStruct<u8, Ovfchf18_SPEC>;
impl Ovfchf18 {
#[doc = "Overflow is not detected"]
pub const _0: Self = Self::new(0);
#[doc = "Overflow is detected"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Ovfchf19_SPEC;
pub type Ovfchf19 = crate::EnumBitfieldStruct<u8, Ovfchf19_SPEC>;
impl Ovfchf19 {
#[doc = "Overflow is not detected"]
pub const _0: Self = Self::new(0);
#[doc = "Overflow is detected"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Ovfchf20_SPEC;
pub type Ovfchf20 = crate::EnumBitfieldStruct<u8, Ovfchf20_SPEC>;
impl Ovfchf20 {
#[doc = "Overflow is not detected"]
pub const _0: Self = Self::new(0);
#[doc = "Overflow is detected"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Ovfchf21_SPEC;
pub type Ovfchf21 = crate::EnumBitfieldStruct<u8, Ovfchf21_SPEC>;
impl Ovfchf21 {
#[doc = "Overflow is not detected"]
pub const _0: Self = Self::new(0);
#[doc = "Overflow is detected"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Ovfchf22_SPEC;
pub type Ovfchf22 = crate::EnumBitfieldStruct<u8, Ovfchf22_SPEC>;
impl Ovfchf22 {
#[doc = "Overflow is not detected"]
pub const _0: Self = Self::new(0);
#[doc = "Overflow is detected"]
pub const _1: Self = Self::new(1);
}
}
#[doc(hidden)]
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct Adovfexsr_SPEC;
impl crate::sealed::RegSpec for Adovfexsr_SPEC {
type DataType = u32;
}
#[doc = "Extended Analog A/D Conversion Overflow Status Register"]
pub type Adovfexsr = crate::RegValueT<Adovfexsr_SPEC>;
impl Adovfexsr {
#[doc = "Self-diagnosis channel for A/D unit 0: Overflow Flag"]
#[inline(always)]
pub fn ovfexf0(
self,
) -> crate::common::RegisterField<
0,
0x1,
1,
0,
adovfexsr::Ovfexf0,
adovfexsr::Ovfexf0,
Adovfexsr_SPEC,
crate::common::R,
> {
crate::common::RegisterField::<
0,
0x1,
1,
0,
adovfexsr::Ovfexf0,
adovfexsr::Ovfexf0,
Adovfexsr_SPEC,
crate::common::R,
>::from_register(self, 0)
}
#[doc = "Self-diagnosis channel for A/D unit 1: Overflow Flag"]
#[inline(always)]
pub fn ovfexf1(
self,
) -> crate::common::RegisterField<
1,
0x1,
1,
0,
adovfexsr::Ovfexf1,
adovfexsr::Ovfexf1,
Adovfexsr_SPEC,
crate::common::R,
> {
crate::common::RegisterField::<
1,
0x1,
1,
0,
adovfexsr::Ovfexf1,
adovfexsr::Ovfexf1,
Adovfexsr_SPEC,
crate::common::R,
>::from_register(self, 0)
}
#[doc = "Temperature sensor channel: Overflow Flag"]
#[inline(always)]
pub fn ovfexf4(
self,
) -> crate::common::RegisterField<
4,
0x1,
1,
0,
adovfexsr::Ovfexf4,
adovfexsr::Ovfexf4,
Adovfexsr_SPEC,
crate::common::R,
> {
crate::common::RegisterField::<
4,
0x1,
1,
0,
adovfexsr::Ovfexf4,
adovfexsr::Ovfexf4,
Adovfexsr_SPEC,
crate::common::R,
>::from_register(self, 0)
}
#[doc = "Internal reference voltage channel: Overflow Flag"]
#[inline(always)]
pub fn ovfexf5(
self,
) -> crate::common::RegisterField<
5,
0x1,
1,
0,
adovfexsr::Ovfexf5,
adovfexsr::Ovfexf5,
Adovfexsr_SPEC,
crate::common::R,
> {
crate::common::RegisterField::<
5,
0x1,
1,
0,
adovfexsr::Ovfexf5,
adovfexsr::Ovfexf5,
Adovfexsr_SPEC,
crate::common::R,
>::from_register(self, 0)
}
#[doc = "VBATT 1/6 voltage monitor output channel: Overflow Flag"]
#[inline(always)]
pub fn ovfexf6(
self,
) -> crate::common::RegisterField<
6,
0x1,
1,
0,
adovfexsr::Ovfexf6,
adovfexsr::Ovfexf6,
Adovfexsr_SPEC,
crate::common::R,
> {
crate::common::RegisterField::<
6,
0x1,
1,
0,
adovfexsr::Ovfexf6,
adovfexsr::Ovfexf6,
Adovfexsr_SPEC,
crate::common::R,
>::from_register(self, 0)
}
#[doc = "D/A converter 0 channel: Overflow Flag"]
#[inline(always)]
pub fn ovfexf8(
self,
) -> crate::common::RegisterField<
8,
0x1,
1,
0,
adovfexsr::Ovfexf8,
adovfexsr::Ovfexf8,
Adovfexsr_SPEC,
crate::common::R,
> {
crate::common::RegisterField::<
8,
0x1,
1,
0,
adovfexsr::Ovfexf8,
adovfexsr::Ovfexf8,
Adovfexsr_SPEC,
crate::common::R,
>::from_register(self, 0)
}
#[doc = "D/A converter 1 channel: Overflow Flag"]
#[inline(always)]
pub fn ovfexf9(
self,
) -> crate::common::RegisterField<
9,
0x1,
1,
0,
adovfexsr::Ovfexf9,
adovfexsr::Ovfexf9,
Adovfexsr_SPEC,
crate::common::R,
> {
crate::common::RegisterField::<
9,
0x1,
1,
0,
adovfexsr::Ovfexf9,
adovfexsr::Ovfexf9,
Adovfexsr_SPEC,
crate::common::R,
>::from_register(self, 0)
}
#[doc = "Self-diagnosis channel for sample-and-hold circuit unit 0: Overflow Flag"]
#[inline(always)]
pub fn ovfexf16(
self,
) -> crate::common::RegisterField<
16,
0x1,
1,
0,
adovfexsr::Ovfexf16,
adovfexsr::Ovfexf16,
Adovfexsr_SPEC,
crate::common::R,
> {
crate::common::RegisterField::<
16,
0x1,
1,
0,
adovfexsr::Ovfexf16,
adovfexsr::Ovfexf16,
Adovfexsr_SPEC,
crate::common::R,
>::from_register(self, 0)
}
#[doc = "Self-diagnosis channel for sample-and-hold circuit unit 1: Overflow Flag"]
#[inline(always)]
pub fn ovfexf17(
self,
) -> crate::common::RegisterField<
17,
0x1,
1,
0,
adovfexsr::Ovfexf17,
adovfexsr::Ovfexf17,
Adovfexsr_SPEC,
crate::common::R,
> {
crate::common::RegisterField::<
17,
0x1,
1,
0,
adovfexsr::Ovfexf17,
adovfexsr::Ovfexf17,
Adovfexsr_SPEC,
crate::common::R,
>::from_register(self, 0)
}
#[doc = "Self-diagnosis channel for sample-and-hold circuit unit 2: Overflow Flag"]
#[inline(always)]
pub fn ovfexf18(
self,
) -> crate::common::RegisterField<
18,
0x1,
1,
0,
adovfexsr::Ovfexf18,
adovfexsr::Ovfexf18,
Adovfexsr_SPEC,
crate::common::R,
> {
crate::common::RegisterField::<
18,
0x1,
1,
0,
adovfexsr::Ovfexf18,
adovfexsr::Ovfexf18,
Adovfexsr_SPEC,
crate::common::R,
>::from_register(self, 0)
}
#[doc = "Self-diagnosis channel for sample-and-hold circuit unit 4: Overflow Flag"]
#[inline(always)]
pub fn ovfexf20(
self,
) -> crate::common::RegisterField<
20,
0x1,
1,
0,
adovfexsr::Ovfexf20,
adovfexsr::Ovfexf20,
Adovfexsr_SPEC,
crate::common::R,
> {
crate::common::RegisterField::<
20,
0x1,
1,
0,
adovfexsr::Ovfexf20,
adovfexsr::Ovfexf20,
Adovfexsr_SPEC,
crate::common::R,
>::from_register(self, 0)
}
#[doc = "Self-diagnosis channel for sample-and-hold circuit unit 5: Overflow Flag"]
#[inline(always)]
pub fn ovfexf21(
self,
) -> crate::common::RegisterField<
21,
0x1,
1,
0,
adovfexsr::Ovfexf21,
adovfexsr::Ovfexf21,
Adovfexsr_SPEC,
crate::common::R,
> {
crate::common::RegisterField::<
21,
0x1,
1,
0,
adovfexsr::Ovfexf21,
adovfexsr::Ovfexf21,
Adovfexsr_SPEC,
crate::common::R,
>::from_register(self, 0)
}
#[doc = "Self-diagnosis channel for sample-and-hold circuit unit 6: Overflow Flag"]
#[inline(always)]
pub fn ovfexf22(
self,
) -> crate::common::RegisterField<
22,
0x1,
1,
0,
adovfexsr::Ovfexf22,
adovfexsr::Ovfexf22,
Adovfexsr_SPEC,
crate::common::R,
> {
crate::common::RegisterField::<
22,
0x1,
1,
0,
adovfexsr::Ovfexf22,
adovfexsr::Ovfexf22,
Adovfexsr_SPEC,
crate::common::R,
>::from_register(self, 0)
}
}
impl ::core::default::Default for Adovfexsr {
#[inline(always)]
fn default() -> Adovfexsr {
<crate::RegValueT<Adovfexsr_SPEC> as RegisterValue<_>>::new(0)
}
}
pub mod adovfexsr {
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Ovfexf0_SPEC;
pub type Ovfexf0 = crate::EnumBitfieldStruct<u8, Ovfexf0_SPEC>;
impl Ovfexf0 {
#[doc = "Overflow is not detected"]
pub const _0: Self = Self::new(0);
#[doc = "Overflow is detected"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Ovfexf1_SPEC;
pub type Ovfexf1 = crate::EnumBitfieldStruct<u8, Ovfexf1_SPEC>;
impl Ovfexf1 {
#[doc = "Overflow is not detected"]
pub const _0: Self = Self::new(0);
#[doc = "Overflow is detected"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Ovfexf4_SPEC;
pub type Ovfexf4 = crate::EnumBitfieldStruct<u8, Ovfexf4_SPEC>;
impl Ovfexf4 {
#[doc = "Overflow is not detected"]
pub const _0: Self = Self::new(0);
#[doc = "Overflow is detected"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Ovfexf5_SPEC;
pub type Ovfexf5 = crate::EnumBitfieldStruct<u8, Ovfexf5_SPEC>;
impl Ovfexf5 {
#[doc = "Overflow is not detected"]
pub const _0: Self = Self::new(0);
#[doc = "Overflow is detected"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Ovfexf6_SPEC;
pub type Ovfexf6 = crate::EnumBitfieldStruct<u8, Ovfexf6_SPEC>;
impl Ovfexf6 {
#[doc = "Overflow is not detected"]
pub const _0: Self = Self::new(0);
#[doc = "Overflow is detected"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Ovfexf8_SPEC;
pub type Ovfexf8 = crate::EnumBitfieldStruct<u8, Ovfexf8_SPEC>;
impl Ovfexf8 {
#[doc = "Overflow is not detected"]
pub const _0: Self = Self::new(0);
#[doc = "Overflow is detected"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Ovfexf9_SPEC;
pub type Ovfexf9 = crate::EnumBitfieldStruct<u8, Ovfexf9_SPEC>;
impl Ovfexf9 {
#[doc = "Overflow is not detected"]
pub const _0: Self = Self::new(0);
#[doc = "Overflow is detected"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Ovfexf16_SPEC;
pub type Ovfexf16 = crate::EnumBitfieldStruct<u8, Ovfexf16_SPEC>;
impl Ovfexf16 {
#[doc = "Overflow is not detected"]
pub const _0: Self = Self::new(0);
#[doc = "Overflow is detected"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Ovfexf17_SPEC;
pub type Ovfexf17 = crate::EnumBitfieldStruct<u8, Ovfexf17_SPEC>;
impl Ovfexf17 {
#[doc = "Overflow is not detected"]
pub const _0: Self = Self::new(0);
#[doc = "Overflow is detected"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Ovfexf18_SPEC;
pub type Ovfexf18 = crate::EnumBitfieldStruct<u8, Ovfexf18_SPEC>;
impl Ovfexf18 {
#[doc = "Overflow is not detected"]
pub const _0: Self = Self::new(0);
#[doc = "Overflow is detected"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Ovfexf20_SPEC;
pub type Ovfexf20 = crate::EnumBitfieldStruct<u8, Ovfexf20_SPEC>;
impl Ovfexf20 {
#[doc = "Overflow is not detected"]
pub const _0: Self = Self::new(0);
#[doc = "Overflow is detected"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Ovfexf21_SPEC;
pub type Ovfexf21 = crate::EnumBitfieldStruct<u8, Ovfexf21_SPEC>;
impl Ovfexf21 {
#[doc = "Overflow is not detected"]
pub const _0: Self = Self::new(0);
#[doc = "Overflow is detected"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Ovfexf22_SPEC;
pub type Ovfexf22 = crate::EnumBitfieldStruct<u8, Ovfexf22_SPEC>;
impl Ovfexf22 {
#[doc = "Overflow is not detected"]
pub const _0: Self = Self::new(0);
#[doc = "Overflow is detected"]
pub const _1: Self = Self::new(1);
}
}
#[doc(hidden)]
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct Adovferscr_SPEC;
impl crate::sealed::RegSpec for Adovferscr_SPEC {
type DataType = u32;
}
#[doc = "A/D Conversion Overflow Error Status Clear Register"]
pub type Adovferscr = crate::RegValueT<Adovferscr_SPEC>;
impl Adovferscr {
#[doc = "A/D Converter Unit 0 (ADC0) Overflow Error Flag Clear"]
#[inline(always)]
pub fn adovfec0(
self,
) -> crate::common::RegisterField<
0,
0x1,
1,
0,
adovferscr::Adovfec0,
adovferscr::Adovfec0,
Adovferscr_SPEC,
crate::common::W,
> {
crate::common::RegisterField::<
0,
0x1,
1,
0,
adovferscr::Adovfec0,
adovferscr::Adovfec0,
Adovferscr_SPEC,
crate::common::W,
>::from_register(self, 0)
}
#[doc = "A/D Converter Unit 1 (ADC1) Overflow Error Flag Clear"]
#[inline(always)]
pub fn adovfec1(
self,
) -> crate::common::RegisterField<
1,
0x1,
1,
0,
adovferscr::Adovfec1,
adovferscr::Adovfec1,
Adovferscr_SPEC,
crate::common::W,
> {
crate::common::RegisterField::<
1,
0x1,
1,
0,
adovferscr::Adovfec1,
adovferscr::Adovfec1,
Adovferscr_SPEC,
crate::common::W,
>::from_register(self, 0)
}
}
impl ::core::default::Default for Adovferscr {
#[inline(always)]
fn default() -> Adovferscr {
<crate::RegValueT<Adovferscr_SPEC> as RegisterValue<_>>::new(0)
}
}
pub mod adovferscr {
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Adovfec0_SPEC;
pub type Adovfec0 = crate::EnumBitfieldStruct<u8, Adovfec0_SPEC>;
impl Adovfec0 {
#[doc = "No effect"]
pub const _0: Self = Self::new(0);
#[doc = "ADOVFERSR.ADOVFEF0 is cleared"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Adovfec1_SPEC;
pub type Adovfec1 = crate::EnumBitfieldStruct<u8, Adovfec1_SPEC>;
impl Adovfec1 {
#[doc = "No effect"]
pub const _0: Self = Self::new(0);
#[doc = "ADOVFERSR.ADOVFEF1 is cleared"]
pub const _1: Self = Self::new(1);
}
}
#[doc(hidden)]
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct Adovfchscr0_SPEC;
impl crate::sealed::RegSpec for Adovfchscr0_SPEC {
type DataType = u32;
}
#[doc = "A/D Conversion Overflow Channel Status Clear Register 0"]
pub type Adovfchscr0 = crate::RegValueT<Adovfchscr0_SPEC>;
impl Adovfchscr0 {
#[doc = "Analog Channel n: Overflow Flag Clear"]
#[inline(always)]
pub fn ovfchc0(
self,
) -> crate::common::RegisterField<
0,
0x1,
1,
0,
adovfchscr0::Ovfchc0,
adovfchscr0::Ovfchc0,
Adovfchscr0_SPEC,
crate::common::W,
> {
crate::common::RegisterField::<
0,
0x1,
1,
0,
adovfchscr0::Ovfchc0,
adovfchscr0::Ovfchc0,
Adovfchscr0_SPEC,
crate::common::W,
>::from_register(self, 0)
}
#[doc = "Analog Channel n: Overflow Flag Clear"]
#[inline(always)]
pub fn ovfchc1(
self,
) -> crate::common::RegisterField<
1,
0x1,
1,
0,
adovfchscr0::Ovfchc1,
adovfchscr0::Ovfchc1,
Adovfchscr0_SPEC,
crate::common::W,
> {
crate::common::RegisterField::<
1,
0x1,
1,
0,
adovfchscr0::Ovfchc1,
adovfchscr0::Ovfchc1,
Adovfchscr0_SPEC,
crate::common::W,
>::from_register(self, 0)
}
#[doc = "Analog Channel n: Overflow Flag Clear"]
#[inline(always)]
pub fn ovfchc2(
self,
) -> crate::common::RegisterField<
2,
0x1,
1,
0,
adovfchscr0::Ovfchc2,
adovfchscr0::Ovfchc2,
Adovfchscr0_SPEC,
crate::common::W,
> {
crate::common::RegisterField::<
2,
0x1,
1,
0,
adovfchscr0::Ovfchc2,
adovfchscr0::Ovfchc2,
Adovfchscr0_SPEC,
crate::common::W,
>::from_register(self, 0)
}
#[doc = "Analog Channel n: Overflow Flag Clear"]
#[inline(always)]
pub fn ovfchc3(
self,
) -> crate::common::RegisterField<
3,
0x1,
1,
0,
adovfchscr0::Ovfchc3,
adovfchscr0::Ovfchc3,
Adovfchscr0_SPEC,
crate::common::W,
> {
crate::common::RegisterField::<
3,
0x1,
1,
0,
adovfchscr0::Ovfchc3,
adovfchscr0::Ovfchc3,
Adovfchscr0_SPEC,
crate::common::W,
>::from_register(self, 0)
}
#[doc = "Analog Channel n: Overflow Flag Clear"]
#[inline(always)]
pub fn ovfchc4(
self,
) -> crate::common::RegisterField<
4,
0x1,
1,
0,
adovfchscr0::Ovfchc4,
adovfchscr0::Ovfchc4,
Adovfchscr0_SPEC,
crate::common::W,
> {
crate::common::RegisterField::<
4,
0x1,
1,
0,
adovfchscr0::Ovfchc4,
adovfchscr0::Ovfchc4,
Adovfchscr0_SPEC,
crate::common::W,
>::from_register(self, 0)
}
#[doc = "Analog Channel n: Overflow Flag Clear"]
#[inline(always)]
pub fn ovfchc5(
self,
) -> crate::common::RegisterField<
5,
0x1,
1,
0,
adovfchscr0::Ovfchc5,
adovfchscr0::Ovfchc5,
Adovfchscr0_SPEC,
crate::common::W,
> {
crate::common::RegisterField::<
5,
0x1,
1,
0,
adovfchscr0::Ovfchc5,
adovfchscr0::Ovfchc5,
Adovfchscr0_SPEC,
crate::common::W,
>::from_register(self, 0)
}
#[doc = "Analog Channel n: Overflow Flag Clear"]
#[inline(always)]
pub fn ovfchc6(
self,
) -> crate::common::RegisterField<
6,
0x1,
1,
0,
adovfchscr0::Ovfchc6,
adovfchscr0::Ovfchc6,
Adovfchscr0_SPEC,
crate::common::W,
> {
crate::common::RegisterField::<
6,
0x1,
1,
0,
adovfchscr0::Ovfchc6,
adovfchscr0::Ovfchc6,
Adovfchscr0_SPEC,
crate::common::W,
>::from_register(self, 0)
}
#[doc = "Analog Channel n: Overflow Flag Clear"]
#[inline(always)]
pub fn ovfchc7(
self,
) -> crate::common::RegisterField<
7,
0x1,
1,
0,
adovfchscr0::Ovfchc7,
adovfchscr0::Ovfchc7,
Adovfchscr0_SPEC,
crate::common::W,
> {
crate::common::RegisterField::<
7,
0x1,
1,
0,
adovfchscr0::Ovfchc7,
adovfchscr0::Ovfchc7,
Adovfchscr0_SPEC,
crate::common::W,
>::from_register(self, 0)
}
#[doc = "Analog Channel n: Overflow Flag Clear"]
#[inline(always)]
pub fn ovfchc8(
self,
) -> crate::common::RegisterField<
8,
0x1,
1,
0,
adovfchscr0::Ovfchc8,
adovfchscr0::Ovfchc8,
Adovfchscr0_SPEC,
crate::common::W,
> {
crate::common::RegisterField::<
8,
0x1,
1,
0,
adovfchscr0::Ovfchc8,
adovfchscr0::Ovfchc8,
Adovfchscr0_SPEC,
crate::common::W,
>::from_register(self, 0)
}
#[doc = "Analog Channel n: Overflow Flag Clear"]
#[inline(always)]
pub fn ovfchc9(
self,
) -> crate::common::RegisterField<
9,
0x1,
1,
0,
adovfchscr0::Ovfchc9,
adovfchscr0::Ovfchc9,
Adovfchscr0_SPEC,
crate::common::W,
> {
crate::common::RegisterField::<
9,
0x1,
1,
0,
adovfchscr0::Ovfchc9,
adovfchscr0::Ovfchc9,
Adovfchscr0_SPEC,
crate::common::W,
>::from_register(self, 0)
}
#[doc = "Analog Channel n: Overflow Flag Clear"]
#[inline(always)]
pub fn ovfchc10(
self,
) -> crate::common::RegisterField<
10,
0x1,
1,
0,
adovfchscr0::Ovfchc10,
adovfchscr0::Ovfchc10,
Adovfchscr0_SPEC,
crate::common::W,
> {
crate::common::RegisterField::<
10,
0x1,
1,
0,
adovfchscr0::Ovfchc10,
adovfchscr0::Ovfchc10,
Adovfchscr0_SPEC,
crate::common::W,
>::from_register(self, 0)
}
#[doc = "Analog Channel n: Overflow Flag Clear"]
#[inline(always)]
pub fn ovfchc11(
self,
) -> crate::common::RegisterField<
11,
0x1,
1,
0,
adovfchscr0::Ovfchc11,
adovfchscr0::Ovfchc11,
Adovfchscr0_SPEC,
crate::common::W,
> {
crate::common::RegisterField::<
11,
0x1,
1,
0,
adovfchscr0::Ovfchc11,
adovfchscr0::Ovfchc11,
Adovfchscr0_SPEC,
crate::common::W,
>::from_register(self, 0)
}
#[doc = "Analog Channel n: Overflow Flag Clear"]
#[inline(always)]
pub fn ovfchc12(
self,
) -> crate::common::RegisterField<
12,
0x1,
1,
0,
adovfchscr0::Ovfchc12,
adovfchscr0::Ovfchc12,
Adovfchscr0_SPEC,
crate::common::W,
> {
crate::common::RegisterField::<
12,
0x1,
1,
0,
adovfchscr0::Ovfchc12,
adovfchscr0::Ovfchc12,
Adovfchscr0_SPEC,
crate::common::W,
>::from_register(self, 0)
}
#[doc = "Analog Channel n: Overflow Flag Clear"]
#[inline(always)]
pub fn ovfchc13(
self,
) -> crate::common::RegisterField<
13,
0x1,
1,
0,
adovfchscr0::Ovfchc13,
adovfchscr0::Ovfchc13,
Adovfchscr0_SPEC,
crate::common::W,
> {
crate::common::RegisterField::<
13,
0x1,
1,
0,
adovfchscr0::Ovfchc13,
adovfchscr0::Ovfchc13,
Adovfchscr0_SPEC,
crate::common::W,
>::from_register(self, 0)
}
#[doc = "Analog Channel n: Overflow Flag Clear"]
#[inline(always)]
pub fn ovfchc14(
self,
) -> crate::common::RegisterField<
14,
0x1,
1,
0,
adovfchscr0::Ovfchc14,
adovfchscr0::Ovfchc14,
Adovfchscr0_SPEC,
crate::common::W,
> {
crate::common::RegisterField::<
14,
0x1,
1,
0,
adovfchscr0::Ovfchc14,
adovfchscr0::Ovfchc14,
Adovfchscr0_SPEC,
crate::common::W,
>::from_register(self, 0)
}
#[doc = "Analog Channel n: Overflow Flag Clear"]
#[inline(always)]
pub fn ovfchc15(
self,
) -> crate::common::RegisterField<
15,
0x1,
1,
0,
adovfchscr0::Ovfchc15,
adovfchscr0::Ovfchc15,
Adovfchscr0_SPEC,
crate::common::W,
> {
crate::common::RegisterField::<
15,
0x1,
1,
0,
adovfchscr0::Ovfchc15,
adovfchscr0::Ovfchc15,
Adovfchscr0_SPEC,
crate::common::W,
>::from_register(self, 0)
}
#[doc = "Analog Channel n: Overflow Flag Clear"]
#[inline(always)]
pub fn ovfchc16(
self,
) -> crate::common::RegisterField<
16,
0x1,
1,
0,
adovfchscr0::Ovfchc16,
adovfchscr0::Ovfchc16,
Adovfchscr0_SPEC,
crate::common::W,
> {
crate::common::RegisterField::<
16,
0x1,
1,
0,
adovfchscr0::Ovfchc16,
adovfchscr0::Ovfchc16,
Adovfchscr0_SPEC,
crate::common::W,
>::from_register(self, 0)
}
#[doc = "Analog Channel n: Overflow Flag Clear"]
#[inline(always)]
pub fn ovfchc17(
self,
) -> crate::common::RegisterField<
17,
0x1,
1,
0,
adovfchscr0::Ovfchc17,
adovfchscr0::Ovfchc17,
Adovfchscr0_SPEC,
crate::common::W,
> {
crate::common::RegisterField::<
17,
0x1,
1,
0,
adovfchscr0::Ovfchc17,
adovfchscr0::Ovfchc17,
Adovfchscr0_SPEC,
crate::common::W,
>::from_register(self, 0)
}
#[doc = "Analog Channel n: Overflow Flag Clear"]
#[inline(always)]
pub fn ovfchc18(
self,
) -> crate::common::RegisterField<
18,
0x1,
1,
0,
adovfchscr0::Ovfchc18,
adovfchscr0::Ovfchc18,
Adovfchscr0_SPEC,
crate::common::W,
> {
crate::common::RegisterField::<
18,
0x1,
1,
0,
adovfchscr0::Ovfchc18,
adovfchscr0::Ovfchc18,
Adovfchscr0_SPEC,
crate::common::W,
>::from_register(self, 0)
}
#[doc = "Analog Channel n: Overflow Flag Clear"]
#[inline(always)]
pub fn ovfchc19(
self,
) -> crate::common::RegisterField<
19,
0x1,
1,
0,
adovfchscr0::Ovfchc19,
adovfchscr0::Ovfchc19,
Adovfchscr0_SPEC,
crate::common::W,
> {
crate::common::RegisterField::<
19,
0x1,
1,
0,
adovfchscr0::Ovfchc19,
adovfchscr0::Ovfchc19,
Adovfchscr0_SPEC,
crate::common::W,
>::from_register(self, 0)
}
#[doc = "Analog Channel n: Overflow Flag Clear"]
#[inline(always)]
pub fn ovfchc20(
self,
) -> crate::common::RegisterField<
20,
0x1,
1,
0,
adovfchscr0::Ovfchc20,
adovfchscr0::Ovfchc20,
Adovfchscr0_SPEC,
crate::common::W,
> {
crate::common::RegisterField::<
20,
0x1,
1,
0,
adovfchscr0::Ovfchc20,
adovfchscr0::Ovfchc20,
Adovfchscr0_SPEC,
crate::common::W,
>::from_register(self, 0)
}
#[doc = "Analog Channel n: Overflow Flag Clear"]
#[inline(always)]
pub fn ovfchc21(
self,
) -> crate::common::RegisterField<
21,
0x1,
1,
0,
adovfchscr0::Ovfchc21,
adovfchscr0::Ovfchc21,
Adovfchscr0_SPEC,
crate::common::W,
> {
crate::common::RegisterField::<
21,
0x1,
1,
0,
adovfchscr0::Ovfchc21,
adovfchscr0::Ovfchc21,
Adovfchscr0_SPEC,
crate::common::W,
>::from_register(self, 0)
}
#[doc = "Analog Channel n: Overflow Flag Clear"]
#[inline(always)]
pub fn ovfchc22(
self,
) -> crate::common::RegisterField<
22,
0x1,
1,
0,
adovfchscr0::Ovfchc22,
adovfchscr0::Ovfchc22,
Adovfchscr0_SPEC,
crate::common::W,
> {
crate::common::RegisterField::<
22,
0x1,
1,
0,
adovfchscr0::Ovfchc22,
adovfchscr0::Ovfchc22,
Adovfchscr0_SPEC,
crate::common::W,
>::from_register(self, 0)
}
}
impl ::core::default::Default for Adovfchscr0 {
#[inline(always)]
fn default() -> Adovfchscr0 {
<crate::RegValueT<Adovfchscr0_SPEC> as RegisterValue<_>>::new(0)
}
}
pub mod adovfchscr0 {
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Ovfchc0_SPEC;
pub type Ovfchc0 = crate::EnumBitfieldStruct<u8, Ovfchc0_SPEC>;
impl Ovfchc0 {
#[doc = "No effect"]
pub const _0: Self = Self::new(0);
#[doc = "ADOVFCHSR0.OVFCHFn is cleared"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Ovfchc1_SPEC;
pub type Ovfchc1 = crate::EnumBitfieldStruct<u8, Ovfchc1_SPEC>;
impl Ovfchc1 {
#[doc = "No effect"]
pub const _0: Self = Self::new(0);
#[doc = "ADOVFCHSR0.OVFCHFn is cleared"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Ovfchc2_SPEC;
pub type Ovfchc2 = crate::EnumBitfieldStruct<u8, Ovfchc2_SPEC>;
impl Ovfchc2 {
#[doc = "No effect"]
pub const _0: Self = Self::new(0);
#[doc = "ADOVFCHSR0.OVFCHFn is cleared"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Ovfchc3_SPEC;
pub type Ovfchc3 = crate::EnumBitfieldStruct<u8, Ovfchc3_SPEC>;
impl Ovfchc3 {
#[doc = "No effect"]
pub const _0: Self = Self::new(0);
#[doc = "ADOVFCHSR0.OVFCHFn is cleared"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Ovfchc4_SPEC;
pub type Ovfchc4 = crate::EnumBitfieldStruct<u8, Ovfchc4_SPEC>;
impl Ovfchc4 {
#[doc = "No effect"]
pub const _0: Self = Self::new(0);
#[doc = "ADOVFCHSR0.OVFCHFn is cleared"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Ovfchc5_SPEC;
pub type Ovfchc5 = crate::EnumBitfieldStruct<u8, Ovfchc5_SPEC>;
impl Ovfchc5 {
#[doc = "No effect"]
pub const _0: Self = Self::new(0);
#[doc = "ADOVFCHSR0.OVFCHFn is cleared"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Ovfchc6_SPEC;
pub type Ovfchc6 = crate::EnumBitfieldStruct<u8, Ovfchc6_SPEC>;
impl Ovfchc6 {
#[doc = "No effect"]
pub const _0: Self = Self::new(0);
#[doc = "ADOVFCHSR0.OVFCHFn is cleared"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Ovfchc7_SPEC;
pub type Ovfchc7 = crate::EnumBitfieldStruct<u8, Ovfchc7_SPEC>;
impl Ovfchc7 {
#[doc = "No effect"]
pub const _0: Self = Self::new(0);
#[doc = "ADOVFCHSR0.OVFCHFn is cleared"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Ovfchc8_SPEC;
pub type Ovfchc8 = crate::EnumBitfieldStruct<u8, Ovfchc8_SPEC>;
impl Ovfchc8 {
#[doc = "No effect"]
pub const _0: Self = Self::new(0);
#[doc = "ADOVFCHSR0.OVFCHFn is cleared"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Ovfchc9_SPEC;
pub type Ovfchc9 = crate::EnumBitfieldStruct<u8, Ovfchc9_SPEC>;
impl Ovfchc9 {
#[doc = "No effect"]
pub const _0: Self = Self::new(0);
#[doc = "ADOVFCHSR0.OVFCHFn is cleared"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Ovfchc10_SPEC;
pub type Ovfchc10 = crate::EnumBitfieldStruct<u8, Ovfchc10_SPEC>;
impl Ovfchc10 {
#[doc = "No effect"]
pub const _0: Self = Self::new(0);
#[doc = "ADOVFCHSR0.OVFCHFn is cleared"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Ovfchc11_SPEC;
pub type Ovfchc11 = crate::EnumBitfieldStruct<u8, Ovfchc11_SPEC>;
impl Ovfchc11 {
#[doc = "No effect"]
pub const _0: Self = Self::new(0);
#[doc = "ADOVFCHSR0.OVFCHFn is cleared"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Ovfchc12_SPEC;
pub type Ovfchc12 = crate::EnumBitfieldStruct<u8, Ovfchc12_SPEC>;
impl Ovfchc12 {
#[doc = "No effect"]
pub const _0: Self = Self::new(0);
#[doc = "ADOVFCHSR0.OVFCHFn is cleared"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Ovfchc13_SPEC;
pub type Ovfchc13 = crate::EnumBitfieldStruct<u8, Ovfchc13_SPEC>;
impl Ovfchc13 {
#[doc = "No effect"]
pub const _0: Self = Self::new(0);
#[doc = "ADOVFCHSR0.OVFCHFn is cleared"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Ovfchc14_SPEC;
pub type Ovfchc14 = crate::EnumBitfieldStruct<u8, Ovfchc14_SPEC>;
impl Ovfchc14 {
#[doc = "No effect"]
pub const _0: Self = Self::new(0);
#[doc = "ADOVFCHSR0.OVFCHFn is cleared"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Ovfchc15_SPEC;
pub type Ovfchc15 = crate::EnumBitfieldStruct<u8, Ovfchc15_SPEC>;
impl Ovfchc15 {
#[doc = "No effect"]
pub const _0: Self = Self::new(0);
#[doc = "ADOVFCHSR0.OVFCHFn is cleared"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Ovfchc16_SPEC;
pub type Ovfchc16 = crate::EnumBitfieldStruct<u8, Ovfchc16_SPEC>;
impl Ovfchc16 {
#[doc = "No effect"]
pub const _0: Self = Self::new(0);
#[doc = "ADOVFCHSR0.OVFCHFn is cleared"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Ovfchc17_SPEC;
pub type Ovfchc17 = crate::EnumBitfieldStruct<u8, Ovfchc17_SPEC>;
impl Ovfchc17 {
#[doc = "No effect"]
pub const _0: Self = Self::new(0);
#[doc = "ADOVFCHSR0.OVFCHFn is cleared"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Ovfchc18_SPEC;
pub type Ovfchc18 = crate::EnumBitfieldStruct<u8, Ovfchc18_SPEC>;
impl Ovfchc18 {
#[doc = "No effect"]
pub const _0: Self = Self::new(0);
#[doc = "ADOVFCHSR0.OVFCHFn is cleared"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Ovfchc19_SPEC;
pub type Ovfchc19 = crate::EnumBitfieldStruct<u8, Ovfchc19_SPEC>;
impl Ovfchc19 {
#[doc = "No effect"]
pub const _0: Self = Self::new(0);
#[doc = "ADOVFCHSR0.OVFCHFn is cleared"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Ovfchc20_SPEC;
pub type Ovfchc20 = crate::EnumBitfieldStruct<u8, Ovfchc20_SPEC>;
impl Ovfchc20 {
#[doc = "No effect"]
pub const _0: Self = Self::new(0);
#[doc = "ADOVFCHSR0.OVFCHFn is cleared"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Ovfchc21_SPEC;
pub type Ovfchc21 = crate::EnumBitfieldStruct<u8, Ovfchc21_SPEC>;
impl Ovfchc21 {
#[doc = "No effect"]
pub const _0: Self = Self::new(0);
#[doc = "ADOVFCHSR0.OVFCHFn is cleared"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Ovfchc22_SPEC;
pub type Ovfchc22 = crate::EnumBitfieldStruct<u8, Ovfchc22_SPEC>;
impl Ovfchc22 {
#[doc = "No effect"]
pub const _0: Self = Self::new(0);
#[doc = "ADOVFCHSR0.OVFCHFn is cleared"]
pub const _1: Self = Self::new(1);
}
}
#[doc(hidden)]
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct Adovfexscr_SPEC;
impl crate::sealed::RegSpec for Adovfexscr_SPEC {
type DataType = u32;
}
#[doc = "Extended Analog A/D Conversion Overflow Status Clear Register"]
pub type Adovfexscr = crate::RegValueT<Adovfexscr_SPEC>;
impl Adovfexscr {
#[doc = "Self-diagnosis Channel for A/D unit 0: Compare Match Flag Clear"]
#[inline(always)]
pub fn ovfexc0(
self,
) -> crate::common::RegisterField<
0,
0x1,
1,
0,
adovfexscr::Ovfexc0,
adovfexscr::Ovfexc0,
Adovfexscr_SPEC,
crate::common::W,
> {
crate::common::RegisterField::<
0,
0x1,
1,
0,
adovfexscr::Ovfexc0,
adovfexscr::Ovfexc0,
Adovfexscr_SPEC,
crate::common::W,
>::from_register(self, 0)
}
#[doc = "Self-diagnosis Channel for A/D unit 1: Compare Match Flag Clear"]
#[inline(always)]
pub fn ovfexc1(
self,
) -> crate::common::RegisterField<
1,
0x1,
1,
0,
adovfexscr::Ovfexc1,
adovfexscr::Ovfexc1,
Adovfexscr_SPEC,
crate::common::W,
> {
crate::common::RegisterField::<
1,
0x1,
1,
0,
adovfexscr::Ovfexc1,
adovfexscr::Ovfexc1,
Adovfexscr_SPEC,
crate::common::W,
>::from_register(self, 0)
}
#[doc = "Temperature Sensor Channel: Compare Match Flag Clear"]
#[inline(always)]
pub fn ovfexc4(
self,
) -> crate::common::RegisterField<
4,
0x1,
1,
0,
adovfexscr::Ovfexc4,
adovfexscr::Ovfexc4,
Adovfexscr_SPEC,
crate::common::W,
> {
crate::common::RegisterField::<
4,
0x1,
1,
0,
adovfexscr::Ovfexc4,
adovfexscr::Ovfexc4,
Adovfexscr_SPEC,
crate::common::W,
>::from_register(self, 0)
}
#[doc = "Internal Reference Voltage Channel: Compare Match Flag Clear"]
#[inline(always)]
pub fn ovfexc5(
self,
) -> crate::common::RegisterField<
5,
0x1,
1,
0,
adovfexscr::Ovfexc5,
adovfexscr::Ovfexc5,
Adovfexscr_SPEC,
crate::common::W,
> {
crate::common::RegisterField::<
5,
0x1,
1,
0,
adovfexscr::Ovfexc5,
adovfexscr::Ovfexc5,
Adovfexscr_SPEC,
crate::common::W,
>::from_register(self, 0)
}
#[doc = "VBATT 1/6 voltage monitor output Channel: Compare Match Flag Clear"]
#[inline(always)]
pub fn ovfexc6(
self,
) -> crate::common::RegisterField<
6,
0x1,
1,
0,
adovfexscr::Ovfexc6,
adovfexscr::Ovfexc6,
Adovfexscr_SPEC,
crate::common::W,
> {
crate::common::RegisterField::<
6,
0x1,
1,
0,
adovfexscr::Ovfexc6,
adovfexscr::Ovfexc6,
Adovfexscr_SPEC,
crate::common::W,
>::from_register(self, 0)
}
#[doc = "D/A Converter 0 Channel: Compare Match Flag Clear"]
#[inline(always)]
pub fn ovfexf8(
self,
) -> crate::common::RegisterField<
8,
0x1,
1,
0,
adovfexscr::Ovfexf8,
adovfexscr::Ovfexf8,
Adovfexscr_SPEC,
crate::common::W,
> {
crate::common::RegisterField::<
8,
0x1,
1,
0,
adovfexscr::Ovfexf8,
adovfexscr::Ovfexf8,
Adovfexscr_SPEC,
crate::common::W,
>::from_register(self, 0)
}
#[doc = "D/A Converter 1 Channel: Compare Match Flag Clear"]
#[inline(always)]
pub fn ovfexf9(
self,
) -> crate::common::RegisterField<
9,
0x1,
1,
0,
adovfexscr::Ovfexf9,
adovfexscr::Ovfexf9,
Adovfexscr_SPEC,
crate::common::W,
> {
crate::common::RegisterField::<
9,
0x1,
1,
0,
adovfexscr::Ovfexf9,
adovfexscr::Ovfexf9,
Adovfexscr_SPEC,
crate::common::W,
>::from_register(self, 0)
}
#[doc = "Self-diagnosis Channel for Sample-and-hold curcuit unit0: Compare Match Flag Clear"]
#[inline(always)]
pub fn ovfexf16(
self,
) -> crate::common::RegisterField<
16,
0x1,
1,
0,
adovfexscr::Ovfexf16,
adovfexscr::Ovfexf16,
Adovfexscr_SPEC,
crate::common::W,
> {
crate::common::RegisterField::<
16,
0x1,
1,
0,
adovfexscr::Ovfexf16,
adovfexscr::Ovfexf16,
Adovfexscr_SPEC,
crate::common::W,
>::from_register(self, 0)
}
#[doc = "Self-diagnosis Channel for Sample-and-hold curcuit unit1: Compare Match Flag Clear"]
#[inline(always)]
pub fn ovfexf17(
self,
) -> crate::common::RegisterField<
17,
0x1,
1,
0,
adovfexscr::Ovfexf17,
adovfexscr::Ovfexf17,
Adovfexscr_SPEC,
crate::common::W,
> {
crate::common::RegisterField::<
17,
0x1,
1,
0,
adovfexscr::Ovfexf17,
adovfexscr::Ovfexf17,
Adovfexscr_SPEC,
crate::common::W,
>::from_register(self, 0)
}
#[doc = "Self-diagnosis Channel for Sample-and-hold curcuit unit2: Compare Match Flag Clear"]
#[inline(always)]
pub fn ovfexc18(
self,
) -> crate::common::RegisterField<
18,
0x1,
1,
0,
adovfexscr::Ovfexc18,
adovfexscr::Ovfexc18,
Adovfexscr_SPEC,
crate::common::W,
> {
crate::common::RegisterField::<
18,
0x1,
1,
0,
adovfexscr::Ovfexc18,
adovfexscr::Ovfexc18,
Adovfexscr_SPEC,
crate::common::W,
>::from_register(self, 0)
}
#[doc = "Self-diagnosis Channel for Sample-and-hold curcuit unit4: Compare Match Flag Clear"]
#[inline(always)]
pub fn ovfexc20(
self,
) -> crate::common::RegisterField<
20,
0x1,
1,
0,
adovfexscr::Ovfexc20,
adovfexscr::Ovfexc20,
Adovfexscr_SPEC,
crate::common::W,
> {
crate::common::RegisterField::<
20,
0x1,
1,
0,
adovfexscr::Ovfexc20,
adovfexscr::Ovfexc20,
Adovfexscr_SPEC,
crate::common::W,
>::from_register(self, 0)
}
#[doc = "Self-diagnosis Channel for Sample-and-hold curcuit unit5: Compare Match Flag Clear"]
#[inline(always)]
pub fn ovfexc21(
self,
) -> crate::common::RegisterField<
21,
0x1,
1,
0,
adovfexscr::Ovfexc21,
adovfexscr::Ovfexc21,
Adovfexscr_SPEC,
crate::common::W,
> {
crate::common::RegisterField::<
21,
0x1,
1,
0,
adovfexscr::Ovfexc21,
adovfexscr::Ovfexc21,
Adovfexscr_SPEC,
crate::common::W,
>::from_register(self, 0)
}
#[doc = "Self-diagnosis Channel for Sample-and-hold curcuit unit6: Compare Match Flag Clear"]
#[inline(always)]
pub fn ovfexc22(
self,
) -> crate::common::RegisterField<
22,
0x1,
1,
0,
adovfexscr::Ovfexc22,
adovfexscr::Ovfexc22,
Adovfexscr_SPEC,
crate::common::W,
> {
crate::common::RegisterField::<
22,
0x1,
1,
0,
adovfexscr::Ovfexc22,
adovfexscr::Ovfexc22,
Adovfexscr_SPEC,
crate::common::W,
>::from_register(self, 0)
}
}
impl ::core::default::Default for Adovfexscr {
#[inline(always)]
fn default() -> Adovfexscr {
<crate::RegValueT<Adovfexscr_SPEC> as RegisterValue<_>>::new(0)
}
}
pub mod adovfexscr {
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Ovfexc0_SPEC;
pub type Ovfexc0 = crate::EnumBitfieldStruct<u8, Ovfexc0_SPEC>;
impl Ovfexc0 {
#[doc = "No effect"]
pub const _0: Self = Self::new(0);
#[doc = "ADOVFEXSR.OVFEXF0 is cleared"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Ovfexc1_SPEC;
pub type Ovfexc1 = crate::EnumBitfieldStruct<u8, Ovfexc1_SPEC>;
impl Ovfexc1 {
#[doc = "No effect"]
pub const _0: Self = Self::new(0);
#[doc = "ADOVFEXSR.OVFEXF1 is cleared"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Ovfexc4_SPEC;
pub type Ovfexc4 = crate::EnumBitfieldStruct<u8, Ovfexc4_SPEC>;
impl Ovfexc4 {
#[doc = "No effect"]
pub const _0: Self = Self::new(0);
#[doc = "ADOVFEXSR.OVFEXF4 is cleared"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Ovfexc5_SPEC;
pub type Ovfexc5 = crate::EnumBitfieldStruct<u8, Ovfexc5_SPEC>;
impl Ovfexc5 {
#[doc = "No effect"]
pub const _0: Self = Self::new(0);
#[doc = "ADOVFEXSR.OVFEXF5 is cleared"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Ovfexc6_SPEC;
pub type Ovfexc6 = crate::EnumBitfieldStruct<u8, Ovfexc6_SPEC>;
impl Ovfexc6 {
#[doc = "No effect"]
pub const _0: Self = Self::new(0);
#[doc = "ADOVFEXSR.OVFEXF6 is cleared"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Ovfexf8_SPEC;
pub type Ovfexf8 = crate::EnumBitfieldStruct<u8, Ovfexf8_SPEC>;
impl Ovfexf8 {
#[doc = "No effect"]
pub const _0: Self = Self::new(0);
#[doc = "ADOVFEXSR.OVFEXF8 is cleared"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Ovfexf9_SPEC;
pub type Ovfexf9 = crate::EnumBitfieldStruct<u8, Ovfexf9_SPEC>;
impl Ovfexf9 {
#[doc = "No effect"]
pub const _0: Self = Self::new(0);
#[doc = "ADOVFEXSR.OVFEXF9 is cleared"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Ovfexf16_SPEC;
pub type Ovfexf16 = crate::EnumBitfieldStruct<u8, Ovfexf16_SPEC>;
impl Ovfexf16 {
#[doc = "No effect"]
pub const _0: Self = Self::new(0);
#[doc = "ADOVFEXSR.OVFEXF16 is cleared"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Ovfexf17_SPEC;
pub type Ovfexf17 = crate::EnumBitfieldStruct<u8, Ovfexf17_SPEC>;
impl Ovfexf17 {
#[doc = "No effect"]
pub const _0: Self = Self::new(0);
#[doc = "ADOVFEXSR.OVFEXF17 is cleared"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Ovfexc18_SPEC;
pub type Ovfexc18 = crate::EnumBitfieldStruct<u8, Ovfexc18_SPEC>;
impl Ovfexc18 {
#[doc = "No effect"]
pub const _0: Self = Self::new(0);
#[doc = "ADOVFEXSR.OVFEXF18 is cleared"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Ovfexc20_SPEC;
pub type Ovfexc20 = crate::EnumBitfieldStruct<u8, Ovfexc20_SPEC>;
impl Ovfexc20 {
#[doc = "No effect"]
pub const _0: Self = Self::new(0);
#[doc = "ADOVFEXSR.OVFEXF20 is cleared"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Ovfexc21_SPEC;
pub type Ovfexc21 = crate::EnumBitfieldStruct<u8, Ovfexc21_SPEC>;
impl Ovfexc21 {
#[doc = "No effect"]
pub const _0: Self = Self::new(0);
#[doc = "ADOVFEXSR.OVFEXF21 is cleared"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Ovfexc22_SPEC;
pub type Ovfexc22 = crate::EnumBitfieldStruct<u8, Ovfexc22_SPEC>;
impl Ovfexc22 {
#[doc = "No effect"]
pub const _0: Self = Self::new(0);
#[doc = "ADOVFEXSR.OVFEXF22 is cleared"]
pub const _1: Self = Self::new(1);
}
}
#[doc(hidden)]
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct Adfifosr0_SPEC;
impl crate::sealed::RegSpec for Adfifosr0_SPEC {
type DataType = u32;
}
#[doc = "FIFO Status Register 0"]
pub type Adfifosr0 = crate::RegValueT<Adfifosr0_SPEC>;
impl Adfifosr0 {
#[doc = "Number of vacant stages in FIFO for Scan Group 0"]
#[inline(always)]
pub fn fifost0(
self,
) -> crate::common::RegisterField<0, 0xf, 1, 0, u8, u8, Adfifosr0_SPEC, crate::common::R> {
crate::common::RegisterField::<0,0xf,1,0,u8,u8,Adfifosr0_SPEC,crate::common::R>::from_register(self,0)
}
#[doc = "Number of vacant stages in FIFO for Scan Group 1"]
#[inline(always)]
pub fn fifost1(
self,
) -> crate::common::RegisterField<16, 0xf, 1, 0, u8, u8, Adfifosr0_SPEC, crate::common::R> {
crate::common::RegisterField::<16,0xf,1,0,u8,u8,Adfifosr0_SPEC,crate::common::R>::from_register(self,0)
}
}
impl ::core::default::Default for Adfifosr0 {
#[inline(always)]
fn default() -> Adfifosr0 {
<crate::RegValueT<Adfifosr0_SPEC> as RegisterValue<_>>::new(524296)
}
}
#[doc(hidden)]
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct Adfifosr1_SPEC;
impl crate::sealed::RegSpec for Adfifosr1_SPEC {
type DataType = u32;
}
#[doc = "FIFO Status Register 1"]
pub type Adfifosr1 = crate::RegValueT<Adfifosr1_SPEC>;
impl Adfifosr1 {
#[doc = "Number of vacant stages in FIFO for Scan Group 2"]
#[inline(always)]
pub fn fifost2(
self,
) -> crate::common::RegisterField<0, 0xf, 1, 0, u8, u8, Adfifosr1_SPEC, crate::common::R> {
crate::common::RegisterField::<0,0xf,1,0,u8,u8,Adfifosr1_SPEC,crate::common::R>::from_register(self,0)
}
#[doc = "Number of vacant stages in FIFO for Scan Group 3"]
#[inline(always)]
pub fn fifost3(
self,
) -> crate::common::RegisterField<16, 0xf, 1, 0, u8, u8, Adfifosr1_SPEC, crate::common::R> {
crate::common::RegisterField::<16,0xf,1,0,u8,u8,Adfifosr1_SPEC,crate::common::R>::from_register(self,0)
}
}
impl ::core::default::Default for Adfifosr1 {
#[inline(always)]
fn default() -> Adfifosr1 {
<crate::RegValueT<Adfifosr1_SPEC> as RegisterValue<_>>::new(524296)
}
}
#[doc(hidden)]
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct Adfifosr2_SPEC;
impl crate::sealed::RegSpec for Adfifosr2_SPEC {
type DataType = u32;
}
#[doc = "FIFO Status Register 2"]
pub type Adfifosr2 = crate::RegValueT<Adfifosr2_SPEC>;
impl Adfifosr2 {
#[doc = "Number of vacant stages in FIFO for Scan Group 4"]
#[inline(always)]
pub fn fifost4(
self,
) -> crate::common::RegisterField<0, 0xf, 1, 0, u8, u8, Adfifosr2_SPEC, crate::common::R> {
crate::common::RegisterField::<0,0xf,1,0,u8,u8,Adfifosr2_SPEC,crate::common::R>::from_register(self,0)
}
#[doc = "Number of vacant stages in FIFO for Scan Group 5"]
#[inline(always)]
pub fn fifost5(
self,
) -> crate::common::RegisterField<16, 0xf, 1, 0, u8, u8, Adfifosr2_SPEC, crate::common::R> {
crate::common::RegisterField::<16,0xf,1,0,u8,u8,Adfifosr2_SPEC,crate::common::R>::from_register(self,0)
}
}
impl ::core::default::Default for Adfifosr2 {
#[inline(always)]
fn default() -> Adfifosr2 {
<crate::RegValueT<Adfifosr2_SPEC> as RegisterValue<_>>::new(524296)
}
}
#[doc(hidden)]
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct Adfifosr3_SPEC;
impl crate::sealed::RegSpec for Adfifosr3_SPEC {
type DataType = u32;
}
#[doc = "FIFO Status Register 3"]
pub type Adfifosr3 = crate::RegValueT<Adfifosr3_SPEC>;
impl Adfifosr3 {
#[doc = "Number of vacant stages in FIFO for Scan Group 6"]
#[inline(always)]
pub fn fifost6(
self,
) -> crate::common::RegisterField<0, 0xf, 1, 0, u8, u8, Adfifosr3_SPEC, crate::common::R> {
crate::common::RegisterField::<0,0xf,1,0,u8,u8,Adfifosr3_SPEC,crate::common::R>::from_register(self,0)
}
#[doc = "Number of vacant stages in FIFO for Scan Group 7"]
#[inline(always)]
pub fn fifost7(
self,
) -> crate::common::RegisterField<16, 0xf, 1, 0, u8, u8, Adfifosr3_SPEC, crate::common::R> {
crate::common::RegisterField::<16,0xf,1,0,u8,u8,Adfifosr3_SPEC,crate::common::R>::from_register(self,0)
}
}
impl ::core::default::Default for Adfifosr3 {
#[inline(always)]
fn default() -> Adfifosr3 {
<crate::RegValueT<Adfifosr3_SPEC> as RegisterValue<_>>::new(524296)
}
}
#[doc(hidden)]
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct Adfifosr4_SPEC;
impl crate::sealed::RegSpec for Adfifosr4_SPEC {
type DataType = u32;
}
#[doc = "FIFO Status Register 4"]
pub type Adfifosr4 = crate::RegValueT<Adfifosr4_SPEC>;
impl Adfifosr4 {
#[doc = "Number of vacant stages in FIFO for Scan Group 8"]
#[inline(always)]
pub fn fifost8(
self,
) -> crate::common::RegisterField<0, 0xf, 1, 0, u8, u8, Adfifosr4_SPEC, crate::common::R> {
crate::common::RegisterField::<0,0xf,1,0,u8,u8,Adfifosr4_SPEC,crate::common::R>::from_register(self,0)
}
}
impl ::core::default::Default for Adfifosr4 {
#[inline(always)]
fn default() -> Adfifosr4 {
<crate::RegValueT<Adfifosr4_SPEC> as RegisterValue<_>>::new(8)
}
}
#[doc(hidden)]
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct Adfifodcr_SPEC;
impl crate::sealed::RegSpec for Adfifodcr_SPEC {
type DataType = u32;
}
#[doc = "FIFO Data Clear Register"]
pub type Adfifodcr = crate::RegValueT<Adfifodcr_SPEC>;
impl Adfifodcr {
#[doc = "Scan Group n FIFO Data Clear"]
#[inline(always)]
pub fn fifodc0(
self,
) -> crate::common::RegisterField<
0,
0x1,
1,
0,
adfifodcr::Fifodc0,
adfifodcr::Fifodc0,
Adfifodcr_SPEC,
crate::common::W,
> {
crate::common::RegisterField::<
0,
0x1,
1,
0,
adfifodcr::Fifodc0,
adfifodcr::Fifodc0,
Adfifodcr_SPEC,
crate::common::W,
>::from_register(self, 0)
}
#[doc = "Scan Group n FIFO Data Clear"]
#[inline(always)]
pub fn fifodc1(
self,
) -> crate::common::RegisterField<
1,
0x1,
1,
0,
adfifodcr::Fifodc1,
adfifodcr::Fifodc1,
Adfifodcr_SPEC,
crate::common::W,
> {
crate::common::RegisterField::<
1,
0x1,
1,
0,
adfifodcr::Fifodc1,
adfifodcr::Fifodc1,
Adfifodcr_SPEC,
crate::common::W,
>::from_register(self, 0)
}
#[doc = "Scan Group n FIFO Data Clear"]
#[inline(always)]
pub fn fifodc2(
self,
) -> crate::common::RegisterField<
2,
0x1,
1,
0,
adfifodcr::Fifodc2,
adfifodcr::Fifodc2,
Adfifodcr_SPEC,
crate::common::W,
> {
crate::common::RegisterField::<
2,
0x1,
1,
0,
adfifodcr::Fifodc2,
adfifodcr::Fifodc2,
Adfifodcr_SPEC,
crate::common::W,
>::from_register(self, 0)
}
#[doc = "Scan Group n FIFO Data Clear"]
#[inline(always)]
pub fn fifodc3(
self,
) -> crate::common::RegisterField<
3,
0x1,
1,
0,
adfifodcr::Fifodc3,
adfifodcr::Fifodc3,
Adfifodcr_SPEC,
crate::common::W,
> {
crate::common::RegisterField::<
3,
0x1,
1,
0,
adfifodcr::Fifodc3,
adfifodcr::Fifodc3,
Adfifodcr_SPEC,
crate::common::W,
>::from_register(self, 0)
}
#[doc = "Scan Group n FIFO Data Clear"]
#[inline(always)]
pub fn fifodc4(
self,
) -> crate::common::RegisterField<
4,
0x1,
1,
0,
adfifodcr::Fifodc4,
adfifodcr::Fifodc4,
Adfifodcr_SPEC,
crate::common::W,
> {
crate::common::RegisterField::<
4,
0x1,
1,
0,
adfifodcr::Fifodc4,
adfifodcr::Fifodc4,
Adfifodcr_SPEC,
crate::common::W,
>::from_register(self, 0)
}
#[doc = "Scan Group n FIFO Data Clear"]
#[inline(always)]
pub fn fifodc5(
self,
) -> crate::common::RegisterField<
5,
0x1,
1,
0,
adfifodcr::Fifodc5,
adfifodcr::Fifodc5,
Adfifodcr_SPEC,
crate::common::W,
> {
crate::common::RegisterField::<
5,
0x1,
1,
0,
adfifodcr::Fifodc5,
adfifodcr::Fifodc5,
Adfifodcr_SPEC,
crate::common::W,
>::from_register(self, 0)
}
#[doc = "Scan Group n FIFO Data Clear"]
#[inline(always)]
pub fn fifodc6(
self,
) -> crate::common::RegisterField<
6,
0x1,
1,
0,
adfifodcr::Fifodc6,
adfifodcr::Fifodc6,
Adfifodcr_SPEC,
crate::common::W,
> {
crate::common::RegisterField::<
6,
0x1,
1,
0,
adfifodcr::Fifodc6,
adfifodcr::Fifodc6,
Adfifodcr_SPEC,
crate::common::W,
>::from_register(self, 0)
}
#[doc = "Scan Group n FIFO Data Clear"]
#[inline(always)]
pub fn fifodc7(
self,
) -> crate::common::RegisterField<
7,
0x1,
1,
0,
adfifodcr::Fifodc7,
adfifodcr::Fifodc7,
Adfifodcr_SPEC,
crate::common::W,
> {
crate::common::RegisterField::<
7,
0x1,
1,
0,
adfifodcr::Fifodc7,
adfifodcr::Fifodc7,
Adfifodcr_SPEC,
crate::common::W,
>::from_register(self, 0)
}
#[doc = "Scan Group n FIFO Data Clear"]
#[inline(always)]
pub fn fifodc8(
self,
) -> crate::common::RegisterField<
8,
0x1,
1,
0,
adfifodcr::Fifodc8,
adfifodcr::Fifodc8,
Adfifodcr_SPEC,
crate::common::W,
> {
crate::common::RegisterField::<
8,
0x1,
1,
0,
adfifodcr::Fifodc8,
adfifodcr::Fifodc8,
Adfifodcr_SPEC,
crate::common::W,
>::from_register(self, 0)
}
}
impl ::core::default::Default for Adfifodcr {
#[inline(always)]
fn default() -> Adfifodcr {
<crate::RegValueT<Adfifodcr_SPEC> as RegisterValue<_>>::new(0)
}
}
pub mod adfifodcr {
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Fifodc0_SPEC;
pub type Fifodc0 = crate::EnumBitfieldStruct<u8, Fifodc0_SPEC>;
impl Fifodc0 {
#[doc = "No effect"]
pub const _0: Self = Self::new(0);
#[doc = "Clear the data of scan group n FIFO"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Fifodc1_SPEC;
pub type Fifodc1 = crate::EnumBitfieldStruct<u8, Fifodc1_SPEC>;
impl Fifodc1 {
#[doc = "No effect"]
pub const _0: Self = Self::new(0);
#[doc = "Clear the data of scan group n FIFO"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Fifodc2_SPEC;
pub type Fifodc2 = crate::EnumBitfieldStruct<u8, Fifodc2_SPEC>;
impl Fifodc2 {
#[doc = "No effect"]
pub const _0: Self = Self::new(0);
#[doc = "Clear the data of scan group n FIFO"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Fifodc3_SPEC;
pub type Fifodc3 = crate::EnumBitfieldStruct<u8, Fifodc3_SPEC>;
impl Fifodc3 {
#[doc = "No effect"]
pub const _0: Self = Self::new(0);
#[doc = "Clear the data of scan group n FIFO"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Fifodc4_SPEC;
pub type Fifodc4 = crate::EnumBitfieldStruct<u8, Fifodc4_SPEC>;
impl Fifodc4 {
#[doc = "No effect"]
pub const _0: Self = Self::new(0);
#[doc = "Clear the data of scan group n FIFO"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Fifodc5_SPEC;
pub type Fifodc5 = crate::EnumBitfieldStruct<u8, Fifodc5_SPEC>;
impl Fifodc5 {
#[doc = "No effect"]
pub const _0: Self = Self::new(0);
#[doc = "Clear the data of scan group n FIFO"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Fifodc6_SPEC;
pub type Fifodc6 = crate::EnumBitfieldStruct<u8, Fifodc6_SPEC>;
impl Fifodc6 {
#[doc = "No effect"]
pub const _0: Self = Self::new(0);
#[doc = "Clear the data of scan group n FIFO"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Fifodc7_SPEC;
pub type Fifodc7 = crate::EnumBitfieldStruct<u8, Fifodc7_SPEC>;
impl Fifodc7 {
#[doc = "No effect"]
pub const _0: Self = Self::new(0);
#[doc = "Clear the data of scan group n FIFO"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Fifodc8_SPEC;
pub type Fifodc8 = crate::EnumBitfieldStruct<u8, Fifodc8_SPEC>;
impl Fifodc8 {
#[doc = "No effect"]
pub const _0: Self = Self::new(0);
#[doc = "Clear the data of scan group n FIFO"]
pub const _1: Self = Self::new(1);
}
}
#[doc(hidden)]
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct Adfifoersr_SPEC;
impl crate::sealed::RegSpec for Adfifoersr_SPEC {
type DataType = u32;
}
#[doc = "FIFO Error Status Register"]
pub type Adfifoersr = crate::RegValueT<Adfifoersr_SPEC>;
impl Adfifoersr {
#[doc = "Scan Group n FIFO Overflow Flag"]
#[inline(always)]
pub fn fifoovf0(
self,
) -> crate::common::RegisterField<
0,
0x1,
1,
0,
adfifoersr::Fifoovf0,
adfifoersr::Fifoovf0,
Adfifoersr_SPEC,
crate::common::R,
> {
crate::common::RegisterField::<
0,
0x1,
1,
0,
adfifoersr::Fifoovf0,
adfifoersr::Fifoovf0,
Adfifoersr_SPEC,
crate::common::R,
>::from_register(self, 0)
}
#[doc = "Scan Group n FIFO Overflow Flag"]
#[inline(always)]
pub fn fifoovf1(
self,
) -> crate::common::RegisterField<
1,
0x1,
1,
0,
adfifoersr::Fifoovf1,
adfifoersr::Fifoovf1,
Adfifoersr_SPEC,
crate::common::R,
> {
crate::common::RegisterField::<
1,
0x1,
1,
0,
adfifoersr::Fifoovf1,
adfifoersr::Fifoovf1,
Adfifoersr_SPEC,
crate::common::R,
>::from_register(self, 0)
}
#[doc = "Scan Group n FIFO Overflow Flag"]
#[inline(always)]
pub fn fifoovf2(
self,
) -> crate::common::RegisterField<
2,
0x1,
1,
0,
adfifoersr::Fifoovf2,
adfifoersr::Fifoovf2,
Adfifoersr_SPEC,
crate::common::R,
> {
crate::common::RegisterField::<
2,
0x1,
1,
0,
adfifoersr::Fifoovf2,
adfifoersr::Fifoovf2,
Adfifoersr_SPEC,
crate::common::R,
>::from_register(self, 0)
}
#[doc = "Scan Group n FIFO Overflow Flag"]
#[inline(always)]
pub fn fifoovf3(
self,
) -> crate::common::RegisterField<
3,
0x1,
1,
0,
adfifoersr::Fifoovf3,
adfifoersr::Fifoovf3,
Adfifoersr_SPEC,
crate::common::R,
> {
crate::common::RegisterField::<
3,
0x1,
1,
0,
adfifoersr::Fifoovf3,
adfifoersr::Fifoovf3,
Adfifoersr_SPEC,
crate::common::R,
>::from_register(self, 0)
}
#[doc = "Scan Group n FIFO Overflow Flag"]
#[inline(always)]
pub fn fifoovf4(
self,
) -> crate::common::RegisterField<
4,
0x1,
1,
0,
adfifoersr::Fifoovf4,
adfifoersr::Fifoovf4,
Adfifoersr_SPEC,
crate::common::R,
> {
crate::common::RegisterField::<
4,
0x1,
1,
0,
adfifoersr::Fifoovf4,
adfifoersr::Fifoovf4,
Adfifoersr_SPEC,
crate::common::R,
>::from_register(self, 0)
}
#[doc = "Scan Group n FIFO Overflow Flag"]
#[inline(always)]
pub fn fifoovf5(
self,
) -> crate::common::RegisterField<
5,
0x1,
1,
0,
adfifoersr::Fifoovf5,
adfifoersr::Fifoovf5,
Adfifoersr_SPEC,
crate::common::R,
> {
crate::common::RegisterField::<
5,
0x1,
1,
0,
adfifoersr::Fifoovf5,
adfifoersr::Fifoovf5,
Adfifoersr_SPEC,
crate::common::R,
>::from_register(self, 0)
}
#[doc = "Scan Group n FIFO Overflow Flag"]
#[inline(always)]
pub fn fifoovf6(
self,
) -> crate::common::RegisterField<
6,
0x1,
1,
0,
adfifoersr::Fifoovf6,
adfifoersr::Fifoovf6,
Adfifoersr_SPEC,
crate::common::R,
> {
crate::common::RegisterField::<
6,
0x1,
1,
0,
adfifoersr::Fifoovf6,
adfifoersr::Fifoovf6,
Adfifoersr_SPEC,
crate::common::R,
>::from_register(self, 0)
}
#[doc = "Scan Group n FIFO Overflow Flag"]
#[inline(always)]
pub fn fifoovf7(
self,
) -> crate::common::RegisterField<
7,
0x1,
1,
0,
adfifoersr::Fifoovf7,
adfifoersr::Fifoovf7,
Adfifoersr_SPEC,
crate::common::R,
> {
crate::common::RegisterField::<
7,
0x1,
1,
0,
adfifoersr::Fifoovf7,
adfifoersr::Fifoovf7,
Adfifoersr_SPEC,
crate::common::R,
>::from_register(self, 0)
}
#[doc = "Scan Group n FIFO Overflow Flag"]
#[inline(always)]
pub fn fifoovf8(
self,
) -> crate::common::RegisterField<
8,
0x1,
1,
0,
adfifoersr::Fifoovf8,
adfifoersr::Fifoovf8,
Adfifoersr_SPEC,
crate::common::R,
> {
crate::common::RegisterField::<
8,
0x1,
1,
0,
adfifoersr::Fifoovf8,
adfifoersr::Fifoovf8,
Adfifoersr_SPEC,
crate::common::R,
>::from_register(self, 0)
}
#[doc = "Scan Group n FIFO Data Read Request Flag"]
#[inline(always)]
pub fn fifoflf0(
self,
) -> crate::common::RegisterField<
16,
0x1,
1,
0,
adfifoersr::Fifoflf0,
adfifoersr::Fifoflf0,
Adfifoersr_SPEC,
crate::common::R,
> {
crate::common::RegisterField::<
16,
0x1,
1,
0,
adfifoersr::Fifoflf0,
adfifoersr::Fifoflf0,
Adfifoersr_SPEC,
crate::common::R,
>::from_register(self, 0)
}
#[doc = "Scan Group n FIFO Data Read Request Flag"]
#[inline(always)]
pub fn fifoflf1(
self,
) -> crate::common::RegisterField<
17,
0x1,
1,
0,
adfifoersr::Fifoflf1,
adfifoersr::Fifoflf1,
Adfifoersr_SPEC,
crate::common::R,
> {
crate::common::RegisterField::<
17,
0x1,
1,
0,
adfifoersr::Fifoflf1,
adfifoersr::Fifoflf1,
Adfifoersr_SPEC,
crate::common::R,
>::from_register(self, 0)
}
#[doc = "Scan Group n FIFO Data Read Request Flag"]
#[inline(always)]
pub fn fifoflf2(
self,
) -> crate::common::RegisterField<
18,
0x1,
1,
0,
adfifoersr::Fifoflf2,
adfifoersr::Fifoflf2,
Adfifoersr_SPEC,
crate::common::R,
> {
crate::common::RegisterField::<
18,
0x1,
1,
0,
adfifoersr::Fifoflf2,
adfifoersr::Fifoflf2,
Adfifoersr_SPEC,
crate::common::R,
>::from_register(self, 0)
}
#[doc = "Scan Group n FIFO Data Read Request Flag"]
#[inline(always)]
pub fn fifoflf3(
self,
) -> crate::common::RegisterField<
19,
0x1,
1,
0,
adfifoersr::Fifoflf3,
adfifoersr::Fifoflf3,
Adfifoersr_SPEC,
crate::common::R,
> {
crate::common::RegisterField::<
19,
0x1,
1,
0,
adfifoersr::Fifoflf3,
adfifoersr::Fifoflf3,
Adfifoersr_SPEC,
crate::common::R,
>::from_register(self, 0)
}
#[doc = "Scan Group n FIFO Data Read Request Flag"]
#[inline(always)]
pub fn fifoflf4(
self,
) -> crate::common::RegisterField<
20,
0x1,
1,
0,
adfifoersr::Fifoflf4,
adfifoersr::Fifoflf4,
Adfifoersr_SPEC,
crate::common::R,
> {
crate::common::RegisterField::<
20,
0x1,
1,
0,
adfifoersr::Fifoflf4,
adfifoersr::Fifoflf4,
Adfifoersr_SPEC,
crate::common::R,
>::from_register(self, 0)
}
#[doc = "Scan Group n FIFO Data Read Request Flag"]
#[inline(always)]
pub fn fifoflf5(
self,
) -> crate::common::RegisterField<
21,
0x1,
1,
0,
adfifoersr::Fifoflf5,
adfifoersr::Fifoflf5,
Adfifoersr_SPEC,
crate::common::R,
> {
crate::common::RegisterField::<
21,
0x1,
1,
0,
adfifoersr::Fifoflf5,
adfifoersr::Fifoflf5,
Adfifoersr_SPEC,
crate::common::R,
>::from_register(self, 0)
}
#[doc = "Scan Group n FIFO Data Read Request Flag"]
#[inline(always)]
pub fn fifoflf6(
self,
) -> crate::common::RegisterField<
22,
0x1,
1,
0,
adfifoersr::Fifoflf6,
adfifoersr::Fifoflf6,
Adfifoersr_SPEC,
crate::common::R,
> {
crate::common::RegisterField::<
22,
0x1,
1,
0,
adfifoersr::Fifoflf6,
adfifoersr::Fifoflf6,
Adfifoersr_SPEC,
crate::common::R,
>::from_register(self, 0)
}
#[doc = "Scan Group n FIFO Data Read Request Flag"]
#[inline(always)]
pub fn fifoflf7(
self,
) -> crate::common::RegisterField<
23,
0x1,
1,
0,
adfifoersr::Fifoflf7,
adfifoersr::Fifoflf7,
Adfifoersr_SPEC,
crate::common::R,
> {
crate::common::RegisterField::<
23,
0x1,
1,
0,
adfifoersr::Fifoflf7,
adfifoersr::Fifoflf7,
Adfifoersr_SPEC,
crate::common::R,
>::from_register(self, 0)
}
#[doc = "Scan Group n FIFO Data Read Request Flag"]
#[inline(always)]
pub fn fifoflf8(
self,
) -> crate::common::RegisterField<
24,
0x1,
1,
0,
adfifoersr::Fifoflf8,
adfifoersr::Fifoflf8,
Adfifoersr_SPEC,
crate::common::R,
> {
crate::common::RegisterField::<
24,
0x1,
1,
0,
adfifoersr::Fifoflf8,
adfifoersr::Fifoflf8,
Adfifoersr_SPEC,
crate::common::R,
>::from_register(self, 0)
}
}
impl ::core::default::Default for Adfifoersr {
#[inline(always)]
fn default() -> Adfifoersr {
<crate::RegValueT<Adfifoersr_SPEC> as RegisterValue<_>>::new(0)
}
}
pub mod adfifoersr {
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Fifoovf0_SPEC;
pub type Fifoovf0 = crate::EnumBitfieldStruct<u8, Fifoovf0_SPEC>;
impl Fifoovf0 {
#[doc = "No overflow"]
pub const _0: Self = Self::new(0);
#[doc = "FIFO overflow is detected"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Fifoovf1_SPEC;
pub type Fifoovf1 = crate::EnumBitfieldStruct<u8, Fifoovf1_SPEC>;
impl Fifoovf1 {
#[doc = "No overflow"]
pub const _0: Self = Self::new(0);
#[doc = "FIFO overflow is detected"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Fifoovf2_SPEC;
pub type Fifoovf2 = crate::EnumBitfieldStruct<u8, Fifoovf2_SPEC>;
impl Fifoovf2 {
#[doc = "No overflow"]
pub const _0: Self = Self::new(0);
#[doc = "FIFO overflow is detected"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Fifoovf3_SPEC;
pub type Fifoovf3 = crate::EnumBitfieldStruct<u8, Fifoovf3_SPEC>;
impl Fifoovf3 {
#[doc = "No overflow"]
pub const _0: Self = Self::new(0);
#[doc = "FIFO overflow is detected"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Fifoovf4_SPEC;
pub type Fifoovf4 = crate::EnumBitfieldStruct<u8, Fifoovf4_SPEC>;
impl Fifoovf4 {
#[doc = "No overflow"]
pub const _0: Self = Self::new(0);
#[doc = "FIFO overflow is detected"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Fifoovf5_SPEC;
pub type Fifoovf5 = crate::EnumBitfieldStruct<u8, Fifoovf5_SPEC>;
impl Fifoovf5 {
#[doc = "No overflow"]
pub const _0: Self = Self::new(0);
#[doc = "FIFO overflow is detected"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Fifoovf6_SPEC;
pub type Fifoovf6 = crate::EnumBitfieldStruct<u8, Fifoovf6_SPEC>;
impl Fifoovf6 {
#[doc = "No overflow"]
pub const _0: Self = Self::new(0);
#[doc = "FIFO overflow is detected"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Fifoovf7_SPEC;
pub type Fifoovf7 = crate::EnumBitfieldStruct<u8, Fifoovf7_SPEC>;
impl Fifoovf7 {
#[doc = "No overflow"]
pub const _0: Self = Self::new(0);
#[doc = "FIFO overflow is detected"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Fifoovf8_SPEC;
pub type Fifoovf8 = crate::EnumBitfieldStruct<u8, Fifoovf8_SPEC>;
impl Fifoovf8 {
#[doc = "No overflow"]
pub const _0: Self = Self::new(0);
#[doc = "FIFO overflow is detected"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Fifoflf0_SPEC;
pub type Fifoflf0 = crate::EnumBitfieldStruct<u8, Fifoflf0_SPEC>;
impl Fifoflf0 {
#[doc = "FIFO Data Read Request is not detected."]
pub const _0: Self = Self::new(0);
#[doc = "FIFO Data Read Request is detected."]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Fifoflf1_SPEC;
pub type Fifoflf1 = crate::EnumBitfieldStruct<u8, Fifoflf1_SPEC>;
impl Fifoflf1 {
#[doc = "FIFO Data Read Request is not detected."]
pub const _0: Self = Self::new(0);
#[doc = "FIFO Data Read Request is detected."]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Fifoflf2_SPEC;
pub type Fifoflf2 = crate::EnumBitfieldStruct<u8, Fifoflf2_SPEC>;
impl Fifoflf2 {
#[doc = "FIFO Data Read Request is not detected."]
pub const _0: Self = Self::new(0);
#[doc = "FIFO Data Read Request is detected."]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Fifoflf3_SPEC;
pub type Fifoflf3 = crate::EnumBitfieldStruct<u8, Fifoflf3_SPEC>;
impl Fifoflf3 {
#[doc = "FIFO Data Read Request is not detected."]
pub const _0: Self = Self::new(0);
#[doc = "FIFO Data Read Request is detected."]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Fifoflf4_SPEC;
pub type Fifoflf4 = crate::EnumBitfieldStruct<u8, Fifoflf4_SPEC>;
impl Fifoflf4 {
#[doc = "FIFO Data Read Request is not detected."]
pub const _0: Self = Self::new(0);
#[doc = "FIFO Data Read Request is detected."]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Fifoflf5_SPEC;
pub type Fifoflf5 = crate::EnumBitfieldStruct<u8, Fifoflf5_SPEC>;
impl Fifoflf5 {
#[doc = "FIFO Data Read Request is not detected."]
pub const _0: Self = Self::new(0);
#[doc = "FIFO Data Read Request is detected."]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Fifoflf6_SPEC;
pub type Fifoflf6 = crate::EnumBitfieldStruct<u8, Fifoflf6_SPEC>;
impl Fifoflf6 {
#[doc = "FIFO Data Read Request is not detected."]
pub const _0: Self = Self::new(0);
#[doc = "FIFO Data Read Request is detected."]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Fifoflf7_SPEC;
pub type Fifoflf7 = crate::EnumBitfieldStruct<u8, Fifoflf7_SPEC>;
impl Fifoflf7 {
#[doc = "FIFO Data Read Request is not detected."]
pub const _0: Self = Self::new(0);
#[doc = "FIFO Data Read Request is detected."]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Fifoflf8_SPEC;
pub type Fifoflf8 = crate::EnumBitfieldStruct<u8, Fifoflf8_SPEC>;
impl Fifoflf8 {
#[doc = "FIFO Data Read Request is not detected."]
pub const _0: Self = Self::new(0);
#[doc = "FIFO Data Read Request is detected."]
pub const _1: Self = Self::new(1);
}
}
#[doc(hidden)]
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct Adfifoerscr_SPEC;
impl crate::sealed::RegSpec for Adfifoerscr_SPEC {
type DataType = u32;
}
#[doc = "FIFO Error Status Clear Register"]
pub type Adfifoerscr = crate::RegValueT<Adfifoerscr_SPEC>;
impl Adfifoerscr {
#[doc = "Scan Group n FIFO Overflow Flag Clear"]
#[inline(always)]
pub fn fifoovfc0(
self,
) -> crate::common::RegisterField<
0,
0x1,
1,
0,
adfifoerscr::Fifoovfc0,
adfifoerscr::Fifoovfc0,
Adfifoerscr_SPEC,
crate::common::W,
> {
crate::common::RegisterField::<
0,
0x1,
1,
0,
adfifoerscr::Fifoovfc0,
adfifoerscr::Fifoovfc0,
Adfifoerscr_SPEC,
crate::common::W,
>::from_register(self, 0)
}
#[doc = "Scan Group n FIFO Overflow Flag Clear"]
#[inline(always)]
pub fn fifoovfc1(
self,
) -> crate::common::RegisterField<
1,
0x1,
1,
0,
adfifoerscr::Fifoovfc1,
adfifoerscr::Fifoovfc1,
Adfifoerscr_SPEC,
crate::common::W,
> {
crate::common::RegisterField::<
1,
0x1,
1,
0,
adfifoerscr::Fifoovfc1,
adfifoerscr::Fifoovfc1,
Adfifoerscr_SPEC,
crate::common::W,
>::from_register(self, 0)
}
#[doc = "Scan Group n FIFO Overflow Flag Clear"]
#[inline(always)]
pub fn fifoovfc2(
self,
) -> crate::common::RegisterField<
2,
0x1,
1,
0,
adfifoerscr::Fifoovfc2,
adfifoerscr::Fifoovfc2,
Adfifoerscr_SPEC,
crate::common::W,
> {
crate::common::RegisterField::<
2,
0x1,
1,
0,
adfifoerscr::Fifoovfc2,
adfifoerscr::Fifoovfc2,
Adfifoerscr_SPEC,
crate::common::W,
>::from_register(self, 0)
}
#[doc = "Scan Group n FIFO Overflow Flag Clear"]
#[inline(always)]
pub fn fifoovfc3(
self,
) -> crate::common::RegisterField<
3,
0x1,
1,
0,
adfifoerscr::Fifoovfc3,
adfifoerscr::Fifoovfc3,
Adfifoerscr_SPEC,
crate::common::W,
> {
crate::common::RegisterField::<
3,
0x1,
1,
0,
adfifoerscr::Fifoovfc3,
adfifoerscr::Fifoovfc3,
Adfifoerscr_SPEC,
crate::common::W,
>::from_register(self, 0)
}
#[doc = "Scan Group n FIFO Overflow Flag Clear"]
#[inline(always)]
pub fn fifoovfc4(
self,
) -> crate::common::RegisterField<
4,
0x1,
1,
0,
adfifoerscr::Fifoovfc4,
adfifoerscr::Fifoovfc4,
Adfifoerscr_SPEC,
crate::common::W,
> {
crate::common::RegisterField::<
4,
0x1,
1,
0,
adfifoerscr::Fifoovfc4,
adfifoerscr::Fifoovfc4,
Adfifoerscr_SPEC,
crate::common::W,
>::from_register(self, 0)
}
#[doc = "Scan Group n FIFO Overflow Flag Clear"]
#[inline(always)]
pub fn fifoovfc5(
self,
) -> crate::common::RegisterField<
5,
0x1,
1,
0,
adfifoerscr::Fifoovfc5,
adfifoerscr::Fifoovfc5,
Adfifoerscr_SPEC,
crate::common::W,
> {
crate::common::RegisterField::<
5,
0x1,
1,
0,
adfifoerscr::Fifoovfc5,
adfifoerscr::Fifoovfc5,
Adfifoerscr_SPEC,
crate::common::W,
>::from_register(self, 0)
}
#[doc = "Scan Group n FIFO Overflow Flag Clear"]
#[inline(always)]
pub fn fifoovfc6(
self,
) -> crate::common::RegisterField<
6,
0x1,
1,
0,
adfifoerscr::Fifoovfc6,
adfifoerscr::Fifoovfc6,
Adfifoerscr_SPEC,
crate::common::W,
> {
crate::common::RegisterField::<
6,
0x1,
1,
0,
adfifoerscr::Fifoovfc6,
adfifoerscr::Fifoovfc6,
Adfifoerscr_SPEC,
crate::common::W,
>::from_register(self, 0)
}
#[doc = "Scan Group n FIFO Overflow Flag Clear"]
#[inline(always)]
pub fn fifoovfc7(
self,
) -> crate::common::RegisterField<
7,
0x1,
1,
0,
adfifoerscr::Fifoovfc7,
adfifoerscr::Fifoovfc7,
Adfifoerscr_SPEC,
crate::common::W,
> {
crate::common::RegisterField::<
7,
0x1,
1,
0,
adfifoerscr::Fifoovfc7,
adfifoerscr::Fifoovfc7,
Adfifoerscr_SPEC,
crate::common::W,
>::from_register(self, 0)
}
#[doc = "Scan Group n FIFO Overflow Flag Clear"]
#[inline(always)]
pub fn fifoovfc8(
self,
) -> crate::common::RegisterField<
8,
0x1,
1,
0,
adfifoerscr::Fifoovfc8,
adfifoerscr::Fifoovfc8,
Adfifoerscr_SPEC,
crate::common::W,
> {
crate::common::RegisterField::<
8,
0x1,
1,
0,
adfifoerscr::Fifoovfc8,
adfifoerscr::Fifoovfc8,
Adfifoerscr_SPEC,
crate::common::W,
>::from_register(self, 0)
}
#[doc = "Scan Group n FIFO Data Read Request Flag Clear"]
#[inline(always)]
pub fn fifoflc0(
self,
) -> crate::common::RegisterField<
16,
0x1,
1,
0,
adfifoerscr::Fifoflc0,
adfifoerscr::Fifoflc0,
Adfifoerscr_SPEC,
crate::common::W,
> {
crate::common::RegisterField::<
16,
0x1,
1,
0,
adfifoerscr::Fifoflc0,
adfifoerscr::Fifoflc0,
Adfifoerscr_SPEC,
crate::common::W,
>::from_register(self, 0)
}
#[doc = "Scan Group n FIFO Data Read Request Flag Clear"]
#[inline(always)]
pub fn fifoflc1(
self,
) -> crate::common::RegisterField<
17,
0x1,
1,
0,
adfifoerscr::Fifoflc1,
adfifoerscr::Fifoflc1,
Adfifoerscr_SPEC,
crate::common::W,
> {
crate::common::RegisterField::<
17,
0x1,
1,
0,
adfifoerscr::Fifoflc1,
adfifoerscr::Fifoflc1,
Adfifoerscr_SPEC,
crate::common::W,
>::from_register(self, 0)
}
#[doc = "Scan Group n FIFO Data Read Request Flag Clear"]
#[inline(always)]
pub fn fifoflc2(
self,
) -> crate::common::RegisterField<
18,
0x1,
1,
0,
adfifoerscr::Fifoflc2,
adfifoerscr::Fifoflc2,
Adfifoerscr_SPEC,
crate::common::W,
> {
crate::common::RegisterField::<
18,
0x1,
1,
0,
adfifoerscr::Fifoflc2,
adfifoerscr::Fifoflc2,
Adfifoerscr_SPEC,
crate::common::W,
>::from_register(self, 0)
}
#[doc = "Scan Group n FIFO Data Read Request Flag Clear"]
#[inline(always)]
pub fn fifoflc3(
self,
) -> crate::common::RegisterField<
19,
0x1,
1,
0,
adfifoerscr::Fifoflc3,
adfifoerscr::Fifoflc3,
Adfifoerscr_SPEC,
crate::common::W,
> {
crate::common::RegisterField::<
19,
0x1,
1,
0,
adfifoerscr::Fifoflc3,
adfifoerscr::Fifoflc3,
Adfifoerscr_SPEC,
crate::common::W,
>::from_register(self, 0)
}
#[doc = "Scan Group n FIFO Data Read Request Flag Clear"]
#[inline(always)]
pub fn fifoflc4(
self,
) -> crate::common::RegisterField<
20,
0x1,
1,
0,
adfifoerscr::Fifoflc4,
adfifoerscr::Fifoflc4,
Adfifoerscr_SPEC,
crate::common::W,
> {
crate::common::RegisterField::<
20,
0x1,
1,
0,
adfifoerscr::Fifoflc4,
adfifoerscr::Fifoflc4,
Adfifoerscr_SPEC,
crate::common::W,
>::from_register(self, 0)
}
#[doc = "Scan Group n FIFO Data Read Request Flag Clear"]
#[inline(always)]
pub fn fifoflc5(
self,
) -> crate::common::RegisterField<
21,
0x1,
1,
0,
adfifoerscr::Fifoflc5,
adfifoerscr::Fifoflc5,
Adfifoerscr_SPEC,
crate::common::W,
> {
crate::common::RegisterField::<
21,
0x1,
1,
0,
adfifoerscr::Fifoflc5,
adfifoerscr::Fifoflc5,
Adfifoerscr_SPEC,
crate::common::W,
>::from_register(self, 0)
}
#[doc = "Scan Group n FIFO Data Read Request Flag Clear"]
#[inline(always)]
pub fn fifoflc6(
self,
) -> crate::common::RegisterField<
22,
0x1,
1,
0,
adfifoerscr::Fifoflc6,
adfifoerscr::Fifoflc6,
Adfifoerscr_SPEC,
crate::common::W,
> {
crate::common::RegisterField::<
22,
0x1,
1,
0,
adfifoerscr::Fifoflc6,
adfifoerscr::Fifoflc6,
Adfifoerscr_SPEC,
crate::common::W,
>::from_register(self, 0)
}
#[doc = "Scan Group n FIFO Data Read Request Flag Clear"]
#[inline(always)]
pub fn fifoflc7(
self,
) -> crate::common::RegisterField<
23,
0x1,
1,
0,
adfifoerscr::Fifoflc7,
adfifoerscr::Fifoflc7,
Adfifoerscr_SPEC,
crate::common::W,
> {
crate::common::RegisterField::<
23,
0x1,
1,
0,
adfifoerscr::Fifoflc7,
adfifoerscr::Fifoflc7,
Adfifoerscr_SPEC,
crate::common::W,
>::from_register(self, 0)
}
#[doc = "Scan Group n FIFO Data Read Request Flag Clear"]
#[inline(always)]
pub fn fifoflc8(
self,
) -> crate::common::RegisterField<
24,
0x1,
1,
0,
adfifoerscr::Fifoflc8,
adfifoerscr::Fifoflc8,
Adfifoerscr_SPEC,
crate::common::W,
> {
crate::common::RegisterField::<
24,
0x1,
1,
0,
adfifoerscr::Fifoflc8,
adfifoerscr::Fifoflc8,
Adfifoerscr_SPEC,
crate::common::W,
>::from_register(self, 0)
}
}
impl ::core::default::Default for Adfifoerscr {
#[inline(always)]
fn default() -> Adfifoerscr {
<crate::RegValueT<Adfifoerscr_SPEC> as RegisterValue<_>>::new(0)
}
}
pub mod adfifoerscr {
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Fifoovfc0_SPEC;
pub type Fifoovfc0 = crate::EnumBitfieldStruct<u8, Fifoovfc0_SPEC>;
impl Fifoovfc0 {
#[doc = "No effect"]
pub const _0: Self = Self::new(0);
#[doc = "ADFIFOERSR.FIFOOVFn is cleared"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Fifoovfc1_SPEC;
pub type Fifoovfc1 = crate::EnumBitfieldStruct<u8, Fifoovfc1_SPEC>;
impl Fifoovfc1 {
#[doc = "No effect"]
pub const _0: Self = Self::new(0);
#[doc = "ADFIFOERSR.FIFOOVFn is cleared"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Fifoovfc2_SPEC;
pub type Fifoovfc2 = crate::EnumBitfieldStruct<u8, Fifoovfc2_SPEC>;
impl Fifoovfc2 {
#[doc = "No effect"]
pub const _0: Self = Self::new(0);
#[doc = "ADFIFOERSR.FIFOOVFn is cleared"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Fifoovfc3_SPEC;
pub type Fifoovfc3 = crate::EnumBitfieldStruct<u8, Fifoovfc3_SPEC>;
impl Fifoovfc3 {
#[doc = "No effect"]
pub const _0: Self = Self::new(0);
#[doc = "ADFIFOERSR.FIFOOVFn is cleared"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Fifoovfc4_SPEC;
pub type Fifoovfc4 = crate::EnumBitfieldStruct<u8, Fifoovfc4_SPEC>;
impl Fifoovfc4 {
#[doc = "No effect"]
pub const _0: Self = Self::new(0);
#[doc = "ADFIFOERSR.FIFOOVFn is cleared"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Fifoovfc5_SPEC;
pub type Fifoovfc5 = crate::EnumBitfieldStruct<u8, Fifoovfc5_SPEC>;
impl Fifoovfc5 {
#[doc = "No effect"]
pub const _0: Self = Self::new(0);
#[doc = "ADFIFOERSR.FIFOOVFn is cleared"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Fifoovfc6_SPEC;
pub type Fifoovfc6 = crate::EnumBitfieldStruct<u8, Fifoovfc6_SPEC>;
impl Fifoovfc6 {
#[doc = "No effect"]
pub const _0: Self = Self::new(0);
#[doc = "ADFIFOERSR.FIFOOVFn is cleared"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Fifoovfc7_SPEC;
pub type Fifoovfc7 = crate::EnumBitfieldStruct<u8, Fifoovfc7_SPEC>;
impl Fifoovfc7 {
#[doc = "No effect"]
pub const _0: Self = Self::new(0);
#[doc = "ADFIFOERSR.FIFOOVFn is cleared"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Fifoovfc8_SPEC;
pub type Fifoovfc8 = crate::EnumBitfieldStruct<u8, Fifoovfc8_SPEC>;
impl Fifoovfc8 {
#[doc = "No effect"]
pub const _0: Self = Self::new(0);
#[doc = "ADFIFOERSR.FIFOOVFn is cleared"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Fifoflc0_SPEC;
pub type Fifoflc0 = crate::EnumBitfieldStruct<u8, Fifoflc0_SPEC>;
impl Fifoflc0 {
#[doc = "No effect"]
pub const _0: Self = Self::new(0);
#[doc = "ADFIFOERSR.FIFOFLFn is cleared"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Fifoflc1_SPEC;
pub type Fifoflc1 = crate::EnumBitfieldStruct<u8, Fifoflc1_SPEC>;
impl Fifoflc1 {
#[doc = "No effect"]
pub const _0: Self = Self::new(0);
#[doc = "ADFIFOERSR.FIFOFLFn is cleared"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Fifoflc2_SPEC;
pub type Fifoflc2 = crate::EnumBitfieldStruct<u8, Fifoflc2_SPEC>;
impl Fifoflc2 {
#[doc = "No effect"]
pub const _0: Self = Self::new(0);
#[doc = "ADFIFOERSR.FIFOFLFn is cleared"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Fifoflc3_SPEC;
pub type Fifoflc3 = crate::EnumBitfieldStruct<u8, Fifoflc3_SPEC>;
impl Fifoflc3 {
#[doc = "No effect"]
pub const _0: Self = Self::new(0);
#[doc = "ADFIFOERSR.FIFOFLFn is cleared"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Fifoflc4_SPEC;
pub type Fifoflc4 = crate::EnumBitfieldStruct<u8, Fifoflc4_SPEC>;
impl Fifoflc4 {
#[doc = "No effect"]
pub const _0: Self = Self::new(0);
#[doc = "ADFIFOERSR.FIFOFLFn is cleared"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Fifoflc5_SPEC;
pub type Fifoflc5 = crate::EnumBitfieldStruct<u8, Fifoflc5_SPEC>;
impl Fifoflc5 {
#[doc = "No effect"]
pub const _0: Self = Self::new(0);
#[doc = "ADFIFOERSR.FIFOFLFn is cleared"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Fifoflc6_SPEC;
pub type Fifoflc6 = crate::EnumBitfieldStruct<u8, Fifoflc6_SPEC>;
impl Fifoflc6 {
#[doc = "No effect"]
pub const _0: Self = Self::new(0);
#[doc = "ADFIFOERSR.FIFOFLFn is cleared"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Fifoflc7_SPEC;
pub type Fifoflc7 = crate::EnumBitfieldStruct<u8, Fifoflc7_SPEC>;
impl Fifoflc7 {
#[doc = "No effect"]
pub const _0: Self = Self::new(0);
#[doc = "ADFIFOERSR.FIFOFLFn is cleared"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Fifoflc8_SPEC;
pub type Fifoflc8 = crate::EnumBitfieldStruct<u8, Fifoflc8_SPEC>;
impl Fifoflc8 {
#[doc = "No effect"]
pub const _0: Self = Self::new(0);
#[doc = "ADFIFOERSR.FIFOFLFn is cleared"]
pub const _1: Self = Self::new(1);
}
}
#[doc(hidden)]
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct Adcmptbsr_SPEC;
impl crate::sealed::RegSpec for Adcmptbsr_SPEC {
type DataType = u32;
}
#[doc = "Compare Match Table Status Register"]
pub type Adcmptbsr = crate::RegValueT<Adcmptbsr_SPEC>;
impl Adcmptbsr {
#[doc = "Compare Match Table n Match Flag"]
#[inline(always)]
pub fn cmptbf0(
self,
) -> crate::common::RegisterField<
0,
0x1,
1,
0,
adcmptbsr::Cmptbf0,
adcmptbsr::Cmptbf0,
Adcmptbsr_SPEC,
crate::common::R,
> {
crate::common::RegisterField::<
0,
0x1,
1,
0,
adcmptbsr::Cmptbf0,
adcmptbsr::Cmptbf0,
Adcmptbsr_SPEC,
crate::common::R,
>::from_register(self, 0)
}
#[doc = "Compare Match Table n Match Flag"]
#[inline(always)]
pub fn cmptbf1(
self,
) -> crate::common::RegisterField<
1,
0x1,
1,
0,
adcmptbsr::Cmptbf1,
adcmptbsr::Cmptbf1,
Adcmptbsr_SPEC,
crate::common::R,
> {
crate::common::RegisterField::<
1,
0x1,
1,
0,
adcmptbsr::Cmptbf1,
adcmptbsr::Cmptbf1,
Adcmptbsr_SPEC,
crate::common::R,
>::from_register(self, 0)
}
#[doc = "Compare Match Table n Match Flag"]
#[inline(always)]
pub fn cmptbf2(
self,
) -> crate::common::RegisterField<
2,
0x1,
1,
0,
adcmptbsr::Cmptbf2,
adcmptbsr::Cmptbf2,
Adcmptbsr_SPEC,
crate::common::R,
> {
crate::common::RegisterField::<
2,
0x1,
1,
0,
adcmptbsr::Cmptbf2,
adcmptbsr::Cmptbf2,
Adcmptbsr_SPEC,
crate::common::R,
>::from_register(self, 0)
}
#[doc = "Compare Match Table n Match Flag"]
#[inline(always)]
pub fn cmptbf3(
self,
) -> crate::common::RegisterField<
3,
0x1,
1,
0,
adcmptbsr::Cmptbf3,
adcmptbsr::Cmptbf3,
Adcmptbsr_SPEC,
crate::common::R,
> {
crate::common::RegisterField::<
3,
0x1,
1,
0,
adcmptbsr::Cmptbf3,
adcmptbsr::Cmptbf3,
Adcmptbsr_SPEC,
crate::common::R,
>::from_register(self, 0)
}
#[doc = "Compare Match Table n Match Flag"]
#[inline(always)]
pub fn cmptbf4(
self,
) -> crate::common::RegisterField<
4,
0x1,
1,
0,
adcmptbsr::Cmptbf4,
adcmptbsr::Cmptbf4,
Adcmptbsr_SPEC,
crate::common::R,
> {
crate::common::RegisterField::<
4,
0x1,
1,
0,
adcmptbsr::Cmptbf4,
adcmptbsr::Cmptbf4,
Adcmptbsr_SPEC,
crate::common::R,
>::from_register(self, 0)
}
#[doc = "Compare Match Table n Match Flag"]
#[inline(always)]
pub fn cmptbf5(
self,
) -> crate::common::RegisterField<
5,
0x1,
1,
0,
adcmptbsr::Cmptbf5,
adcmptbsr::Cmptbf5,
Adcmptbsr_SPEC,
crate::common::R,
> {
crate::common::RegisterField::<
5,
0x1,
1,
0,
adcmptbsr::Cmptbf5,
adcmptbsr::Cmptbf5,
Adcmptbsr_SPEC,
crate::common::R,
>::from_register(self, 0)
}
#[doc = "Compare Match Table n Match Flag"]
#[inline(always)]
pub fn cmptbf6(
self,
) -> crate::common::RegisterField<
6,
0x1,
1,
0,
adcmptbsr::Cmptbf6,
adcmptbsr::Cmptbf6,
Adcmptbsr_SPEC,
crate::common::R,
> {
crate::common::RegisterField::<
6,
0x1,
1,
0,
adcmptbsr::Cmptbf6,
adcmptbsr::Cmptbf6,
Adcmptbsr_SPEC,
crate::common::R,
>::from_register(self, 0)
}
#[doc = "Compare Match Table n Match Flag"]
#[inline(always)]
pub fn cmptbf7(
self,
) -> crate::common::RegisterField<
7,
0x1,
1,
0,
adcmptbsr::Cmptbf7,
adcmptbsr::Cmptbf7,
Adcmptbsr_SPEC,
crate::common::R,
> {
crate::common::RegisterField::<
7,
0x1,
1,
0,
adcmptbsr::Cmptbf7,
adcmptbsr::Cmptbf7,
Adcmptbsr_SPEC,
crate::common::R,
>::from_register(self, 0)
}
}
impl ::core::default::Default for Adcmptbsr {
#[inline(always)]
fn default() -> Adcmptbsr {
<crate::RegValueT<Adcmptbsr_SPEC> as RegisterValue<_>>::new(0)
}
}
pub mod adcmptbsr {
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Cmptbf0_SPEC;
pub type Cmptbf0 = crate::EnumBitfieldStruct<u8, Cmptbf0_SPEC>;
impl Cmptbf0 {
#[doc = "Match event with compare match table n is not detected"]
pub const _0: Self = Self::new(0);
#[doc = "Match event with compare match table n is detected"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Cmptbf1_SPEC;
pub type Cmptbf1 = crate::EnumBitfieldStruct<u8, Cmptbf1_SPEC>;
impl Cmptbf1 {
#[doc = "Match event with compare match table n is not detected"]
pub const _0: Self = Self::new(0);
#[doc = "Match event with compare match table n is detected"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Cmptbf2_SPEC;
pub type Cmptbf2 = crate::EnumBitfieldStruct<u8, Cmptbf2_SPEC>;
impl Cmptbf2 {
#[doc = "Match event with compare match table n is not detected"]
pub const _0: Self = Self::new(0);
#[doc = "Match event with compare match table n is detected"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Cmptbf3_SPEC;
pub type Cmptbf3 = crate::EnumBitfieldStruct<u8, Cmptbf3_SPEC>;
impl Cmptbf3 {
#[doc = "Match event with compare match table n is not detected"]
pub const _0: Self = Self::new(0);
#[doc = "Match event with compare match table n is detected"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Cmptbf4_SPEC;
pub type Cmptbf4 = crate::EnumBitfieldStruct<u8, Cmptbf4_SPEC>;
impl Cmptbf4 {
#[doc = "Match event with compare match table n is not detected"]
pub const _0: Self = Self::new(0);
#[doc = "Match event with compare match table n is detected"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Cmptbf5_SPEC;
pub type Cmptbf5 = crate::EnumBitfieldStruct<u8, Cmptbf5_SPEC>;
impl Cmptbf5 {
#[doc = "Match event with compare match table n is not detected"]
pub const _0: Self = Self::new(0);
#[doc = "Match event with compare match table n is detected"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Cmptbf6_SPEC;
pub type Cmptbf6 = crate::EnumBitfieldStruct<u8, Cmptbf6_SPEC>;
impl Cmptbf6 {
#[doc = "Match event with compare match table n is not detected"]
pub const _0: Self = Self::new(0);
#[doc = "Match event with compare match table n is detected"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Cmptbf7_SPEC;
pub type Cmptbf7 = crate::EnumBitfieldStruct<u8, Cmptbf7_SPEC>;
impl Cmptbf7 {
#[doc = "Match event with compare match table n is not detected"]
pub const _0: Self = Self::new(0);
#[doc = "Match event with compare match table n is detected"]
pub const _1: Self = Self::new(1);
}
}
#[doc(hidden)]
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct Adcmptbscr_SPEC;
impl crate::sealed::RegSpec for Adcmptbscr_SPEC {
type DataType = u32;
}
#[doc = "Compare Match Table Status Clear Register"]
pub type Adcmptbscr = crate::RegValueT<Adcmptbscr_SPEC>;
impl Adcmptbscr {
#[doc = "Compare Match Table n: Match Flag Clear"]
#[inline(always)]
pub fn cmptbc0(
self,
) -> crate::common::RegisterField<
0,
0x1,
1,
0,
adcmptbscr::Cmptbc0,
adcmptbscr::Cmptbc0,
Adcmptbscr_SPEC,
crate::common::W,
> {
crate::common::RegisterField::<
0,
0x1,
1,
0,
adcmptbscr::Cmptbc0,
adcmptbscr::Cmptbc0,
Adcmptbscr_SPEC,
crate::common::W,
>::from_register(self, 0)
}
#[doc = "Compare Match Table n: Match Flag Clear"]
#[inline(always)]
pub fn cmptbc1(
self,
) -> crate::common::RegisterField<
1,
0x1,
1,
0,
adcmptbscr::Cmptbc1,
adcmptbscr::Cmptbc1,
Adcmptbscr_SPEC,
crate::common::W,
> {
crate::common::RegisterField::<
1,
0x1,
1,
0,
adcmptbscr::Cmptbc1,
adcmptbscr::Cmptbc1,
Adcmptbscr_SPEC,
crate::common::W,
>::from_register(self, 0)
}
#[doc = "Compare Match Table n: Match Flag Clear"]
#[inline(always)]
pub fn cmptbc2(
self,
) -> crate::common::RegisterField<
2,
0x1,
1,
0,
adcmptbscr::Cmptbc2,
adcmptbscr::Cmptbc2,
Adcmptbscr_SPEC,
crate::common::W,
> {
crate::common::RegisterField::<
2,
0x1,
1,
0,
adcmptbscr::Cmptbc2,
adcmptbscr::Cmptbc2,
Adcmptbscr_SPEC,
crate::common::W,
>::from_register(self, 0)
}
#[doc = "Compare Match Table n: Match Flag Clear"]
#[inline(always)]
pub fn cmptbc3(
self,
) -> crate::common::RegisterField<
3,
0x1,
1,
0,
adcmptbscr::Cmptbc3,
adcmptbscr::Cmptbc3,
Adcmptbscr_SPEC,
crate::common::W,
> {
crate::common::RegisterField::<
3,
0x1,
1,
0,
adcmptbscr::Cmptbc3,
adcmptbscr::Cmptbc3,
Adcmptbscr_SPEC,
crate::common::W,
>::from_register(self, 0)
}
#[doc = "Compare Match Table n: Match Flag Clear"]
#[inline(always)]
pub fn cmptbc4(
self,
) -> crate::common::RegisterField<
4,
0x1,
1,
0,
adcmptbscr::Cmptbc4,
adcmptbscr::Cmptbc4,
Adcmptbscr_SPEC,
crate::common::W,
> {
crate::common::RegisterField::<
4,
0x1,
1,
0,
adcmptbscr::Cmptbc4,
adcmptbscr::Cmptbc4,
Adcmptbscr_SPEC,
crate::common::W,
>::from_register(self, 0)
}
#[doc = "Compare Match Table n: Match Flag Clear"]
#[inline(always)]
pub fn cmptbc5(
self,
) -> crate::common::RegisterField<
5,
0x1,
1,
0,
adcmptbscr::Cmptbc5,
adcmptbscr::Cmptbc5,
Adcmptbscr_SPEC,
crate::common::W,
> {
crate::common::RegisterField::<
5,
0x1,
1,
0,
adcmptbscr::Cmptbc5,
adcmptbscr::Cmptbc5,
Adcmptbscr_SPEC,
crate::common::W,
>::from_register(self, 0)
}
#[doc = "Compare Match Table n: Match Flag Clear"]
#[inline(always)]
pub fn cmptbc6(
self,
) -> crate::common::RegisterField<
6,
0x1,
1,
0,
adcmptbscr::Cmptbc6,
adcmptbscr::Cmptbc6,
Adcmptbscr_SPEC,
crate::common::W,
> {
crate::common::RegisterField::<
6,
0x1,
1,
0,
adcmptbscr::Cmptbc6,
adcmptbscr::Cmptbc6,
Adcmptbscr_SPEC,
crate::common::W,
>::from_register(self, 0)
}
#[doc = "Compare Match Table n: Match Flag Clear"]
#[inline(always)]
pub fn cmptbc7(
self,
) -> crate::common::RegisterField<
7,
0x1,
1,
0,
adcmptbscr::Cmptbc7,
adcmptbscr::Cmptbc7,
Adcmptbscr_SPEC,
crate::common::W,
> {
crate::common::RegisterField::<
7,
0x1,
1,
0,
adcmptbscr::Cmptbc7,
adcmptbscr::Cmptbc7,
Adcmptbscr_SPEC,
crate::common::W,
>::from_register(self, 0)
}
}
impl ::core::default::Default for Adcmptbscr {
#[inline(always)]
fn default() -> Adcmptbscr {
<crate::RegValueT<Adcmptbscr_SPEC> as RegisterValue<_>>::new(0)
}
}
pub mod adcmptbscr {
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Cmptbc0_SPEC;
pub type Cmptbc0 = crate::EnumBitfieldStruct<u8, Cmptbc0_SPEC>;
impl Cmptbc0 {
#[doc = "No effect"]
pub const _0: Self = Self::new(0);
#[doc = "ADCMPTBSR.CMPTBFn is cleared"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Cmptbc1_SPEC;
pub type Cmptbc1 = crate::EnumBitfieldStruct<u8, Cmptbc1_SPEC>;
impl Cmptbc1 {
#[doc = "No effect"]
pub const _0: Self = Self::new(0);
#[doc = "ADCMPTBSR.CMPTBFn is cleared"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Cmptbc2_SPEC;
pub type Cmptbc2 = crate::EnumBitfieldStruct<u8, Cmptbc2_SPEC>;
impl Cmptbc2 {
#[doc = "No effect"]
pub const _0: Self = Self::new(0);
#[doc = "ADCMPTBSR.CMPTBFn is cleared"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Cmptbc3_SPEC;
pub type Cmptbc3 = crate::EnumBitfieldStruct<u8, Cmptbc3_SPEC>;
impl Cmptbc3 {
#[doc = "No effect"]
pub const _0: Self = Self::new(0);
#[doc = "ADCMPTBSR.CMPTBFn is cleared"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Cmptbc4_SPEC;
pub type Cmptbc4 = crate::EnumBitfieldStruct<u8, Cmptbc4_SPEC>;
impl Cmptbc4 {
#[doc = "No effect"]
pub const _0: Self = Self::new(0);
#[doc = "ADCMPTBSR.CMPTBFn is cleared"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Cmptbc5_SPEC;
pub type Cmptbc5 = crate::EnumBitfieldStruct<u8, Cmptbc5_SPEC>;
impl Cmptbc5 {
#[doc = "No effect"]
pub const _0: Self = Self::new(0);
#[doc = "ADCMPTBSR.CMPTBFn is cleared"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Cmptbc6_SPEC;
pub type Cmptbc6 = crate::EnumBitfieldStruct<u8, Cmptbc6_SPEC>;
impl Cmptbc6 {
#[doc = "No effect"]
pub const _0: Self = Self::new(0);
#[doc = "ADCMPTBSR.CMPTBFn is cleared"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Cmptbc7_SPEC;
pub type Cmptbc7 = crate::EnumBitfieldStruct<u8, Cmptbc7_SPEC>;
impl Cmptbc7 {
#[doc = "No effect"]
pub const _0: Self = Self::new(0);
#[doc = "ADCMPTBSR.CMPTBFn is cleared"]
pub const _1: Self = Self::new(1);
}
}
#[doc(hidden)]
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct Adcmpchsr0_SPEC;
impl crate::sealed::RegSpec for Adcmpchsr0_SPEC {
type DataType = u32;
}
#[doc = "Compare Match Channel Status Register 0"]
pub type Adcmpchsr0 = crate::RegValueT<Adcmpchsr0_SPEC>;
impl Adcmpchsr0 {
#[doc = "Analog Channel n: Compare Match Flag"]
#[inline(always)]
pub fn cmpchf0(
self,
) -> crate::common::RegisterField<
0,
0x1,
1,
0,
adcmpchsr0::Cmpchf0,
adcmpchsr0::Cmpchf0,
Adcmpchsr0_SPEC,
crate::common::R,
> {
crate::common::RegisterField::<
0,
0x1,
1,
0,
adcmpchsr0::Cmpchf0,
adcmpchsr0::Cmpchf0,
Adcmpchsr0_SPEC,
crate::common::R,
>::from_register(self, 0)
}
#[doc = "Analog Channel n: Compare Match Flag"]
#[inline(always)]
pub fn cmpchf1(
self,
) -> crate::common::RegisterField<
1,
0x1,
1,
0,
adcmpchsr0::Cmpchf1,
adcmpchsr0::Cmpchf1,
Adcmpchsr0_SPEC,
crate::common::R,
> {
crate::common::RegisterField::<
1,
0x1,
1,
0,
adcmpchsr0::Cmpchf1,
adcmpchsr0::Cmpchf1,
Adcmpchsr0_SPEC,
crate::common::R,
>::from_register(self, 0)
}
#[doc = "Analog Channel n: Compare Match Flag"]
#[inline(always)]
pub fn cmpchf2(
self,
) -> crate::common::RegisterField<
2,
0x1,
1,
0,
adcmpchsr0::Cmpchf2,
adcmpchsr0::Cmpchf2,
Adcmpchsr0_SPEC,
crate::common::R,
> {
crate::common::RegisterField::<
2,
0x1,
1,
0,
adcmpchsr0::Cmpchf2,
adcmpchsr0::Cmpchf2,
Adcmpchsr0_SPEC,
crate::common::R,
>::from_register(self, 0)
}
#[doc = "Analog Channel n: Compare Match Flag"]
#[inline(always)]
pub fn cmpchf3(
self,
) -> crate::common::RegisterField<
3,
0x1,
1,
0,
adcmpchsr0::Cmpchf3,
adcmpchsr0::Cmpchf3,
Adcmpchsr0_SPEC,
crate::common::R,
> {
crate::common::RegisterField::<
3,
0x1,
1,
0,
adcmpchsr0::Cmpchf3,
adcmpchsr0::Cmpchf3,
Adcmpchsr0_SPEC,
crate::common::R,
>::from_register(self, 0)
}
#[doc = "Analog Channel n: Compare Match Flag"]
#[inline(always)]
pub fn cmpchf4(
self,
) -> crate::common::RegisterField<
4,
0x1,
1,
0,
adcmpchsr0::Cmpchf4,
adcmpchsr0::Cmpchf4,
Adcmpchsr0_SPEC,
crate::common::R,
> {
crate::common::RegisterField::<
4,
0x1,
1,
0,
adcmpchsr0::Cmpchf4,
adcmpchsr0::Cmpchf4,
Adcmpchsr0_SPEC,
crate::common::R,
>::from_register(self, 0)
}
#[doc = "Analog Channel n: Compare Match Flag"]
#[inline(always)]
pub fn cmpchf5(
self,
) -> crate::common::RegisterField<
5,
0x1,
1,
0,
adcmpchsr0::Cmpchf5,
adcmpchsr0::Cmpchf5,
Adcmpchsr0_SPEC,
crate::common::R,
> {
crate::common::RegisterField::<
5,
0x1,
1,
0,
adcmpchsr0::Cmpchf5,
adcmpchsr0::Cmpchf5,
Adcmpchsr0_SPEC,
crate::common::R,
>::from_register(self, 0)
}
#[doc = "Analog Channel n: Compare Match Flag"]
#[inline(always)]
pub fn cmpchf6(
self,
) -> crate::common::RegisterField<
6,
0x1,
1,
0,
adcmpchsr0::Cmpchf6,
adcmpchsr0::Cmpchf6,
Adcmpchsr0_SPEC,
crate::common::R,
> {
crate::common::RegisterField::<
6,
0x1,
1,
0,
adcmpchsr0::Cmpchf6,
adcmpchsr0::Cmpchf6,
Adcmpchsr0_SPEC,
crate::common::R,
>::from_register(self, 0)
}
#[doc = "Analog Channel n: Compare Match Flag"]
#[inline(always)]
pub fn cmpchf7(
self,
) -> crate::common::RegisterField<
7,
0x1,
1,
0,
adcmpchsr0::Cmpchf7,
adcmpchsr0::Cmpchf7,
Adcmpchsr0_SPEC,
crate::common::R,
> {
crate::common::RegisterField::<
7,
0x1,
1,
0,
adcmpchsr0::Cmpchf7,
adcmpchsr0::Cmpchf7,
Adcmpchsr0_SPEC,
crate::common::R,
>::from_register(self, 0)
}
#[doc = "Analog Channel n: Compare Match Flag"]
#[inline(always)]
pub fn cmpchf8(
self,
) -> crate::common::RegisterField<
8,
0x1,
1,
0,
adcmpchsr0::Cmpchf8,
adcmpchsr0::Cmpchf8,
Adcmpchsr0_SPEC,
crate::common::R,
> {
crate::common::RegisterField::<
8,
0x1,
1,
0,
adcmpchsr0::Cmpchf8,
adcmpchsr0::Cmpchf8,
Adcmpchsr0_SPEC,
crate::common::R,
>::from_register(self, 0)
}
#[doc = "Analog Channel n: Compare Match Flag"]
#[inline(always)]
pub fn cmpchf9(
self,
) -> crate::common::RegisterField<
9,
0x1,
1,
0,
adcmpchsr0::Cmpchf9,
adcmpchsr0::Cmpchf9,
Adcmpchsr0_SPEC,
crate::common::R,
> {
crate::common::RegisterField::<
9,
0x1,
1,
0,
adcmpchsr0::Cmpchf9,
adcmpchsr0::Cmpchf9,
Adcmpchsr0_SPEC,
crate::common::R,
>::from_register(self, 0)
}
#[doc = "Analog Channel n: Compare Match Flag"]
#[inline(always)]
pub fn cmpchf10(
self,
) -> crate::common::RegisterField<
10,
0x1,
1,
0,
adcmpchsr0::Cmpchf10,
adcmpchsr0::Cmpchf10,
Adcmpchsr0_SPEC,
crate::common::R,
> {
crate::common::RegisterField::<
10,
0x1,
1,
0,
adcmpchsr0::Cmpchf10,
adcmpchsr0::Cmpchf10,
Adcmpchsr0_SPEC,
crate::common::R,
>::from_register(self, 0)
}
#[doc = "Analog Channel n: Compare Match Flag"]
#[inline(always)]
pub fn cmpchf11(
self,
) -> crate::common::RegisterField<
11,
0x1,
1,
0,
adcmpchsr0::Cmpchf11,
adcmpchsr0::Cmpchf11,
Adcmpchsr0_SPEC,
crate::common::R,
> {
crate::common::RegisterField::<
11,
0x1,
1,
0,
adcmpchsr0::Cmpchf11,
adcmpchsr0::Cmpchf11,
Adcmpchsr0_SPEC,
crate::common::R,
>::from_register(self, 0)
}
#[doc = "Analog Channel n: Compare Match Flag"]
#[inline(always)]
pub fn cmpchf12(
self,
) -> crate::common::RegisterField<
12,
0x1,
1,
0,
adcmpchsr0::Cmpchf12,
adcmpchsr0::Cmpchf12,
Adcmpchsr0_SPEC,
crate::common::R,
> {
crate::common::RegisterField::<
12,
0x1,
1,
0,
adcmpchsr0::Cmpchf12,
adcmpchsr0::Cmpchf12,
Adcmpchsr0_SPEC,
crate::common::R,
>::from_register(self, 0)
}
#[doc = "Analog Channel n: Compare Match Flag"]
#[inline(always)]
pub fn cmpchf13(
self,
) -> crate::common::RegisterField<
13,
0x1,
1,
0,
adcmpchsr0::Cmpchf13,
adcmpchsr0::Cmpchf13,
Adcmpchsr0_SPEC,
crate::common::R,
> {
crate::common::RegisterField::<
13,
0x1,
1,
0,
adcmpchsr0::Cmpchf13,
adcmpchsr0::Cmpchf13,
Adcmpchsr0_SPEC,
crate::common::R,
>::from_register(self, 0)
}
#[doc = "Analog Channel n: Compare Match Flag"]
#[inline(always)]
pub fn cmpchf14(
self,
) -> crate::common::RegisterField<
14,
0x1,
1,
0,
adcmpchsr0::Cmpchf14,
adcmpchsr0::Cmpchf14,
Adcmpchsr0_SPEC,
crate::common::R,
> {
crate::common::RegisterField::<
14,
0x1,
1,
0,
adcmpchsr0::Cmpchf14,
adcmpchsr0::Cmpchf14,
Adcmpchsr0_SPEC,
crate::common::R,
>::from_register(self, 0)
}
#[doc = "Analog Channel n: Compare Match Flag"]
#[inline(always)]
pub fn cmpchf15(
self,
) -> crate::common::RegisterField<
15,
0x1,
1,
0,
adcmpchsr0::Cmpchf15,
adcmpchsr0::Cmpchf15,
Adcmpchsr0_SPEC,
crate::common::R,
> {
crate::common::RegisterField::<
15,
0x1,
1,
0,
adcmpchsr0::Cmpchf15,
adcmpchsr0::Cmpchf15,
Adcmpchsr0_SPEC,
crate::common::R,
>::from_register(self, 0)
}
#[doc = "Analog Channel n: Compare Match Flag"]
#[inline(always)]
pub fn cmpchf16(
self,
) -> crate::common::RegisterField<
16,
0x1,
1,
0,
adcmpchsr0::Cmpchf16,
adcmpchsr0::Cmpchf16,
Adcmpchsr0_SPEC,
crate::common::R,
> {
crate::common::RegisterField::<
16,
0x1,
1,
0,
adcmpchsr0::Cmpchf16,
adcmpchsr0::Cmpchf16,
Adcmpchsr0_SPEC,
crate::common::R,
>::from_register(self, 0)
}
#[doc = "Analog Channel n: Compare Match Flag"]
#[inline(always)]
pub fn cmpchf17(
self,
) -> crate::common::RegisterField<
17,
0x1,
1,
0,
adcmpchsr0::Cmpchf17,
adcmpchsr0::Cmpchf17,
Adcmpchsr0_SPEC,
crate::common::R,
> {
crate::common::RegisterField::<
17,
0x1,
1,
0,
adcmpchsr0::Cmpchf17,
adcmpchsr0::Cmpchf17,
Adcmpchsr0_SPEC,
crate::common::R,
>::from_register(self, 0)
}
#[doc = "Analog Channel n: Compare Match Flag"]
#[inline(always)]
pub fn cmpchf18(
self,
) -> crate::common::RegisterField<
18,
0x1,
1,
0,
adcmpchsr0::Cmpchf18,
adcmpchsr0::Cmpchf18,
Adcmpchsr0_SPEC,
crate::common::R,
> {
crate::common::RegisterField::<
18,
0x1,
1,
0,
adcmpchsr0::Cmpchf18,
adcmpchsr0::Cmpchf18,
Adcmpchsr0_SPEC,
crate::common::R,
>::from_register(self, 0)
}
#[doc = "Analog Channel n: Compare Match Flag"]
#[inline(always)]
pub fn cmpchf19(
self,
) -> crate::common::RegisterField<
19,
0x1,
1,
0,
adcmpchsr0::Cmpchf19,
adcmpchsr0::Cmpchf19,
Adcmpchsr0_SPEC,
crate::common::R,
> {
crate::common::RegisterField::<
19,
0x1,
1,
0,
adcmpchsr0::Cmpchf19,
adcmpchsr0::Cmpchf19,
Adcmpchsr0_SPEC,
crate::common::R,
>::from_register(self, 0)
}
#[doc = "Analog Channel n: Compare Match Flag"]
#[inline(always)]
pub fn cmpchf20(
self,
) -> crate::common::RegisterField<
20,
0x1,
1,
0,
adcmpchsr0::Cmpchf20,
adcmpchsr0::Cmpchf20,
Adcmpchsr0_SPEC,
crate::common::R,
> {
crate::common::RegisterField::<
20,
0x1,
1,
0,
adcmpchsr0::Cmpchf20,
adcmpchsr0::Cmpchf20,
Adcmpchsr0_SPEC,
crate::common::R,
>::from_register(self, 0)
}
#[doc = "Analog Channel n: Compare Match Flag"]
#[inline(always)]
pub fn cmpchf21(
self,
) -> crate::common::RegisterField<
21,
0x1,
1,
0,
adcmpchsr0::Cmpchf21,
adcmpchsr0::Cmpchf21,
Adcmpchsr0_SPEC,
crate::common::R,
> {
crate::common::RegisterField::<
21,
0x1,
1,
0,
adcmpchsr0::Cmpchf21,
adcmpchsr0::Cmpchf21,
Adcmpchsr0_SPEC,
crate::common::R,
>::from_register(self, 0)
}
#[doc = "Analog Channel n: Compare Match Flag"]
#[inline(always)]
pub fn cmpchf22(
self,
) -> crate::common::RegisterField<
22,
0x1,
1,
0,
adcmpchsr0::Cmpchf22,
adcmpchsr0::Cmpchf22,
Adcmpchsr0_SPEC,
crate::common::R,
> {
crate::common::RegisterField::<
22,
0x1,
1,
0,
adcmpchsr0::Cmpchf22,
adcmpchsr0::Cmpchf22,
Adcmpchsr0_SPEC,
crate::common::R,
>::from_register(self, 0)
}
}
impl ::core::default::Default for Adcmpchsr0 {
#[inline(always)]
fn default() -> Adcmpchsr0 {
<crate::RegValueT<Adcmpchsr0_SPEC> as RegisterValue<_>>::new(0)
}
}
pub mod adcmpchsr0 {
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Cmpchf0_SPEC;
pub type Cmpchf0 = crate::EnumBitfieldStruct<u8, Cmpchf0_SPEC>;
impl Cmpchf0 {
#[doc = "Compare match is not detected"]
pub const _0: Self = Self::new(0);
#[doc = "Compare match is detected"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Cmpchf1_SPEC;
pub type Cmpchf1 = crate::EnumBitfieldStruct<u8, Cmpchf1_SPEC>;
impl Cmpchf1 {
#[doc = "Compare match is not detected"]
pub const _0: Self = Self::new(0);
#[doc = "Compare match is detected"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Cmpchf2_SPEC;
pub type Cmpchf2 = crate::EnumBitfieldStruct<u8, Cmpchf2_SPEC>;
impl Cmpchf2 {
#[doc = "Compare match is not detected"]
pub const _0: Self = Self::new(0);
#[doc = "Compare match is detected"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Cmpchf3_SPEC;
pub type Cmpchf3 = crate::EnumBitfieldStruct<u8, Cmpchf3_SPEC>;
impl Cmpchf3 {
#[doc = "Compare match is not detected"]
pub const _0: Self = Self::new(0);
#[doc = "Compare match is detected"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Cmpchf4_SPEC;
pub type Cmpchf4 = crate::EnumBitfieldStruct<u8, Cmpchf4_SPEC>;
impl Cmpchf4 {
#[doc = "Compare match is not detected"]
pub const _0: Self = Self::new(0);
#[doc = "Compare match is detected"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Cmpchf5_SPEC;
pub type Cmpchf5 = crate::EnumBitfieldStruct<u8, Cmpchf5_SPEC>;
impl Cmpchf5 {
#[doc = "Compare match is not detected"]
pub const _0: Self = Self::new(0);
#[doc = "Compare match is detected"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Cmpchf6_SPEC;
pub type Cmpchf6 = crate::EnumBitfieldStruct<u8, Cmpchf6_SPEC>;
impl Cmpchf6 {
#[doc = "Compare match is not detected"]
pub const _0: Self = Self::new(0);
#[doc = "Compare match is detected"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Cmpchf7_SPEC;
pub type Cmpchf7 = crate::EnumBitfieldStruct<u8, Cmpchf7_SPEC>;
impl Cmpchf7 {
#[doc = "Compare match is not detected"]
pub const _0: Self = Self::new(0);
#[doc = "Compare match is detected"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Cmpchf8_SPEC;
pub type Cmpchf8 = crate::EnumBitfieldStruct<u8, Cmpchf8_SPEC>;
impl Cmpchf8 {
#[doc = "Compare match is not detected"]
pub const _0: Self = Self::new(0);
#[doc = "Compare match is detected"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Cmpchf9_SPEC;
pub type Cmpchf9 = crate::EnumBitfieldStruct<u8, Cmpchf9_SPEC>;
impl Cmpchf9 {
#[doc = "Compare match is not detected"]
pub const _0: Self = Self::new(0);
#[doc = "Compare match is detected"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Cmpchf10_SPEC;
pub type Cmpchf10 = crate::EnumBitfieldStruct<u8, Cmpchf10_SPEC>;
impl Cmpchf10 {
#[doc = "Compare match is not detected"]
pub const _0: Self = Self::new(0);
#[doc = "Compare match is detected"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Cmpchf11_SPEC;
pub type Cmpchf11 = crate::EnumBitfieldStruct<u8, Cmpchf11_SPEC>;
impl Cmpchf11 {
#[doc = "Compare match is not detected"]
pub const _0: Self = Self::new(0);
#[doc = "Compare match is detected"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Cmpchf12_SPEC;
pub type Cmpchf12 = crate::EnumBitfieldStruct<u8, Cmpchf12_SPEC>;
impl Cmpchf12 {
#[doc = "Compare match is not detected"]
pub const _0: Self = Self::new(0);
#[doc = "Compare match is detected"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Cmpchf13_SPEC;
pub type Cmpchf13 = crate::EnumBitfieldStruct<u8, Cmpchf13_SPEC>;
impl Cmpchf13 {
#[doc = "Compare match is not detected"]
pub const _0: Self = Self::new(0);
#[doc = "Compare match is detected"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Cmpchf14_SPEC;
pub type Cmpchf14 = crate::EnumBitfieldStruct<u8, Cmpchf14_SPEC>;
impl Cmpchf14 {
#[doc = "Compare match is not detected"]
pub const _0: Self = Self::new(0);
#[doc = "Compare match is detected"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Cmpchf15_SPEC;
pub type Cmpchf15 = crate::EnumBitfieldStruct<u8, Cmpchf15_SPEC>;
impl Cmpchf15 {
#[doc = "Compare match is not detected"]
pub const _0: Self = Self::new(0);
#[doc = "Compare match is detected"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Cmpchf16_SPEC;
pub type Cmpchf16 = crate::EnumBitfieldStruct<u8, Cmpchf16_SPEC>;
impl Cmpchf16 {
#[doc = "Compare match is not detected"]
pub const _0: Self = Self::new(0);
#[doc = "Compare match is detected"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Cmpchf17_SPEC;
pub type Cmpchf17 = crate::EnumBitfieldStruct<u8, Cmpchf17_SPEC>;
impl Cmpchf17 {
#[doc = "Compare match is not detected"]
pub const _0: Self = Self::new(0);
#[doc = "Compare match is detected"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Cmpchf18_SPEC;
pub type Cmpchf18 = crate::EnumBitfieldStruct<u8, Cmpchf18_SPEC>;
impl Cmpchf18 {
#[doc = "Compare match is not detected"]
pub const _0: Self = Self::new(0);
#[doc = "Compare match is detected"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Cmpchf19_SPEC;
pub type Cmpchf19 = crate::EnumBitfieldStruct<u8, Cmpchf19_SPEC>;
impl Cmpchf19 {
#[doc = "Compare match is not detected"]
pub const _0: Self = Self::new(0);
#[doc = "Compare match is detected"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Cmpchf20_SPEC;
pub type Cmpchf20 = crate::EnumBitfieldStruct<u8, Cmpchf20_SPEC>;
impl Cmpchf20 {
#[doc = "Compare match is not detected"]
pub const _0: Self = Self::new(0);
#[doc = "Compare match is detected"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Cmpchf21_SPEC;
pub type Cmpchf21 = crate::EnumBitfieldStruct<u8, Cmpchf21_SPEC>;
impl Cmpchf21 {
#[doc = "Compare match is not detected"]
pub const _0: Self = Self::new(0);
#[doc = "Compare match is detected"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Cmpchf22_SPEC;
pub type Cmpchf22 = crate::EnumBitfieldStruct<u8, Cmpchf22_SPEC>;
impl Cmpchf22 {
#[doc = "Compare match is not detected"]
pub const _0: Self = Self::new(0);
#[doc = "Compare match is detected"]
pub const _1: Self = Self::new(1);
}
}
#[doc(hidden)]
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct Adcmpexsr_SPEC;
impl crate::sealed::RegSpec for Adcmpexsr_SPEC {
type DataType = u32;
}
#[doc = "Extended Analog Compare Match Status Register"]
pub type Adcmpexsr = crate::RegValueT<Adcmpexsr_SPEC>;
impl Adcmpexsr {
#[doc = "Self-diagnosis channel for A/D unit 0: Compare Match Flag"]
#[inline(always)]
pub fn cmpexf0(
self,
) -> crate::common::RegisterField<
0,
0x1,
1,
0,
adcmpexsr::Cmpexf0,
adcmpexsr::Cmpexf0,
Adcmpexsr_SPEC,
crate::common::R,
> {
crate::common::RegisterField::<
0,
0x1,
1,
0,
adcmpexsr::Cmpexf0,
adcmpexsr::Cmpexf0,
Adcmpexsr_SPEC,
crate::common::R,
>::from_register(self, 0)
}
#[doc = "Self-diagnosis channel for A/D unit 1: Compare Match Flag"]
#[inline(always)]
pub fn cmpexf1(
self,
) -> crate::common::RegisterField<
1,
0x1,
1,
0,
adcmpexsr::Cmpexf1,
adcmpexsr::Cmpexf1,
Adcmpexsr_SPEC,
crate::common::R,
> {
crate::common::RegisterField::<
1,
0x1,
1,
0,
adcmpexsr::Cmpexf1,
adcmpexsr::Cmpexf1,
Adcmpexsr_SPEC,
crate::common::R,
>::from_register(self, 0)
}
#[doc = "Temperature sensor channel: Compare Match Flag"]
#[inline(always)]
pub fn cmpexf4(
self,
) -> crate::common::RegisterField<
4,
0x1,
1,
0,
adcmpexsr::Cmpexf4,
adcmpexsr::Cmpexf4,
Adcmpexsr_SPEC,
crate::common::R,
> {
crate::common::RegisterField::<
4,
0x1,
1,
0,
adcmpexsr::Cmpexf4,
adcmpexsr::Cmpexf4,
Adcmpexsr_SPEC,
crate::common::R,
>::from_register(self, 0)
}
#[doc = "Internal reference voltage channel: Compare Match Flag"]
#[inline(always)]
pub fn cmpexf5(
self,
) -> crate::common::RegisterField<
5,
0x1,
1,
0,
adcmpexsr::Cmpexf5,
adcmpexsr::Cmpexf5,
Adcmpexsr_SPEC,
crate::common::R,
> {
crate::common::RegisterField::<
5,
0x1,
1,
0,
adcmpexsr::Cmpexf5,
adcmpexsr::Cmpexf5,
Adcmpexsr_SPEC,
crate::common::R,
>::from_register(self, 0)
}
#[doc = "VBATT 1/6 voltage monitor output Channel: Compare Match Flag"]
#[inline(always)]
pub fn cmpexf6(
self,
) -> crate::common::RegisterField<
6,
0x1,
1,
0,
adcmpexsr::Cmpexf6,
adcmpexsr::Cmpexf6,
Adcmpexsr_SPEC,
crate::common::R,
> {
crate::common::RegisterField::<
6,
0x1,
1,
0,
adcmpexsr::Cmpexf6,
adcmpexsr::Cmpexf6,
Adcmpexsr_SPEC,
crate::common::R,
>::from_register(self, 0)
}
#[doc = "D/A converter 0 channel: Compare Match Flag"]
#[inline(always)]
pub fn cmpexf8(
self,
) -> crate::common::RegisterField<
8,
0x1,
1,
0,
adcmpexsr::Cmpexf8,
adcmpexsr::Cmpexf8,
Adcmpexsr_SPEC,
crate::common::R,
> {
crate::common::RegisterField::<
8,
0x1,
1,
0,
adcmpexsr::Cmpexf8,
adcmpexsr::Cmpexf8,
Adcmpexsr_SPEC,
crate::common::R,
>::from_register(self, 0)
}
#[doc = "D/A converter 1 channel: Compare Match Flag"]
#[inline(always)]
pub fn cmpexf9(
self,
) -> crate::common::RegisterField<
9,
0x1,
1,
0,
adcmpexsr::Cmpexf9,
adcmpexsr::Cmpexf9,
Adcmpexsr_SPEC,
crate::common::R,
> {
crate::common::RegisterField::<
9,
0x1,
1,
0,
adcmpexsr::Cmpexf9,
adcmpexsr::Cmpexf9,
Adcmpexsr_SPEC,
crate::common::R,
>::from_register(self, 0)
}
#[doc = "Self-diagnosis channel for sample-and-hold circuit unit 0: Compare Match Flag"]
#[inline(always)]
pub fn cmpexf16(
self,
) -> crate::common::RegisterField<
16,
0x1,
1,
0,
adcmpexsr::Cmpexf16,
adcmpexsr::Cmpexf16,
Adcmpexsr_SPEC,
crate::common::R,
> {
crate::common::RegisterField::<
16,
0x1,
1,
0,
adcmpexsr::Cmpexf16,
adcmpexsr::Cmpexf16,
Adcmpexsr_SPEC,
crate::common::R,
>::from_register(self, 0)
}
#[doc = "Self-diagnosis channel for sample-and-hold circuit unit 1: Compare Match Flag"]
#[inline(always)]
pub fn cmpexf17(
self,
) -> crate::common::RegisterField<
17,
0x1,
1,
0,
adcmpexsr::Cmpexf17,
adcmpexsr::Cmpexf17,
Adcmpexsr_SPEC,
crate::common::R,
> {
crate::common::RegisterField::<
17,
0x1,
1,
0,
adcmpexsr::Cmpexf17,
adcmpexsr::Cmpexf17,
Adcmpexsr_SPEC,
crate::common::R,
>::from_register(self, 0)
}
#[doc = "Self-diagnosis channel for sample-and-hold circuit unit 2: Compare Match Flag"]
#[inline(always)]
pub fn cmpexf18(
self,
) -> crate::common::RegisterField<
18,
0x1,
1,
0,
adcmpexsr::Cmpexf18,
adcmpexsr::Cmpexf18,
Adcmpexsr_SPEC,
crate::common::R,
> {
crate::common::RegisterField::<
18,
0x1,
1,
0,
adcmpexsr::Cmpexf18,
adcmpexsr::Cmpexf18,
Adcmpexsr_SPEC,
crate::common::R,
>::from_register(self, 0)
}
#[doc = "Self-diagnosis channel for sample-and-hold circuit unit 4: Compare Match Flag"]
#[inline(always)]
pub fn cmpexf20(
self,
) -> crate::common::RegisterField<
20,
0x1,
1,
0,
adcmpexsr::Cmpexf20,
adcmpexsr::Cmpexf20,
Adcmpexsr_SPEC,
crate::common::R,
> {
crate::common::RegisterField::<
20,
0x1,
1,
0,
adcmpexsr::Cmpexf20,
adcmpexsr::Cmpexf20,
Adcmpexsr_SPEC,
crate::common::R,
>::from_register(self, 0)
}
#[doc = "Self-diagnosis channel for sample-and-hold circuit unit 5: Compare Match Flag"]
#[inline(always)]
pub fn cmpexf21(
self,
) -> crate::common::RegisterField<
21,
0x1,
1,
0,
adcmpexsr::Cmpexf21,
adcmpexsr::Cmpexf21,
Adcmpexsr_SPEC,
crate::common::R,
> {
crate::common::RegisterField::<
21,
0x1,
1,
0,
adcmpexsr::Cmpexf21,
adcmpexsr::Cmpexf21,
Adcmpexsr_SPEC,
crate::common::R,
>::from_register(self, 0)
}
#[doc = "Self-diagnosis channel for sample-and-hold circuit unit 6: Compare Match Flag"]
#[inline(always)]
pub fn cmpexf22(
self,
) -> crate::common::RegisterField<
22,
0x1,
1,
0,
adcmpexsr::Cmpexf22,
adcmpexsr::Cmpexf22,
Adcmpexsr_SPEC,
crate::common::R,
> {
crate::common::RegisterField::<
22,
0x1,
1,
0,
adcmpexsr::Cmpexf22,
adcmpexsr::Cmpexf22,
Adcmpexsr_SPEC,
crate::common::R,
>::from_register(self, 0)
}
}
impl ::core::default::Default for Adcmpexsr {
#[inline(always)]
fn default() -> Adcmpexsr {
<crate::RegValueT<Adcmpexsr_SPEC> as RegisterValue<_>>::new(0)
}
}
pub mod adcmpexsr {
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Cmpexf0_SPEC;
pub type Cmpexf0 = crate::EnumBitfieldStruct<u8, Cmpexf0_SPEC>;
impl Cmpexf0 {
#[doc = "Compare match is not detected"]
pub const _0: Self = Self::new(0);
#[doc = "Compare match is detected"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Cmpexf1_SPEC;
pub type Cmpexf1 = crate::EnumBitfieldStruct<u8, Cmpexf1_SPEC>;
impl Cmpexf1 {
#[doc = "Compare match is not detected"]
pub const _0: Self = Self::new(0);
#[doc = "Compare match is detected"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Cmpexf4_SPEC;
pub type Cmpexf4 = crate::EnumBitfieldStruct<u8, Cmpexf4_SPEC>;
impl Cmpexf4 {
#[doc = "Compare match is not detected"]
pub const _0: Self = Self::new(0);
#[doc = "Compare match is detected"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Cmpexf5_SPEC;
pub type Cmpexf5 = crate::EnumBitfieldStruct<u8, Cmpexf5_SPEC>;
impl Cmpexf5 {
#[doc = "Compare match is not detected"]
pub const _0: Self = Self::new(0);
#[doc = "Compare match is detected"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Cmpexf6_SPEC;
pub type Cmpexf6 = crate::EnumBitfieldStruct<u8, Cmpexf6_SPEC>;
impl Cmpexf6 {
#[doc = "Compare match is not detected"]
pub const _0: Self = Self::new(0);
#[doc = "Compare match is detected"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Cmpexf8_SPEC;
pub type Cmpexf8 = crate::EnumBitfieldStruct<u8, Cmpexf8_SPEC>;
impl Cmpexf8 {
#[doc = "Compare match is not detected"]
pub const _0: Self = Self::new(0);
#[doc = "Compare match is detected"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Cmpexf9_SPEC;
pub type Cmpexf9 = crate::EnumBitfieldStruct<u8, Cmpexf9_SPEC>;
impl Cmpexf9 {
#[doc = "Compare match is not detected"]
pub const _0: Self = Self::new(0);
#[doc = "Compare match is detected"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Cmpexf16_SPEC;
pub type Cmpexf16 = crate::EnumBitfieldStruct<u8, Cmpexf16_SPEC>;
impl Cmpexf16 {
#[doc = "Compare match is not detected"]
pub const _0: Self = Self::new(0);
#[doc = "Compare match is detected"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Cmpexf17_SPEC;
pub type Cmpexf17 = crate::EnumBitfieldStruct<u8, Cmpexf17_SPEC>;
impl Cmpexf17 {
#[doc = "Compare match is not detected"]
pub const _0: Self = Self::new(0);
#[doc = "Compare match is detected"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Cmpexf18_SPEC;
pub type Cmpexf18 = crate::EnumBitfieldStruct<u8, Cmpexf18_SPEC>;
impl Cmpexf18 {
#[doc = "Compare match is not detected"]
pub const _0: Self = Self::new(0);
#[doc = "Compare match is detected"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Cmpexf20_SPEC;
pub type Cmpexf20 = crate::EnumBitfieldStruct<u8, Cmpexf20_SPEC>;
impl Cmpexf20 {
#[doc = "Compare match is not detected"]
pub const _0: Self = Self::new(0);
#[doc = "Compare match is detected"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Cmpexf21_SPEC;
pub type Cmpexf21 = crate::EnumBitfieldStruct<u8, Cmpexf21_SPEC>;
impl Cmpexf21 {
#[doc = "Compare match is not detected"]
pub const _0: Self = Self::new(0);
#[doc = "Compare match is detected"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Cmpexf22_SPEC;
pub type Cmpexf22 = crate::EnumBitfieldStruct<u8, Cmpexf22_SPEC>;
impl Cmpexf22 {
#[doc = "Compare match is not detected"]
pub const _0: Self = Self::new(0);
#[doc = "Compare match is detected"]
pub const _1: Self = Self::new(1);
}
}
#[doc(hidden)]
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct Adcmpchscr0_SPEC;
impl crate::sealed::RegSpec for Adcmpchscr0_SPEC {
type DataType = u32;
}
#[doc = "Compare Match Channel Status Clear Register 0"]
pub type Adcmpchscr0 = crate::RegValueT<Adcmpchscr0_SPEC>;
impl Adcmpchscr0 {
#[doc = "Analog channel n: Compare Match Flag Clear bit"]
#[inline(always)]
pub fn cmpchc0(
self,
) -> crate::common::RegisterField<
0,
0x1,
1,
0,
adcmpchscr0::Cmpchc0,
adcmpchscr0::Cmpchc0,
Adcmpchscr0_SPEC,
crate::common::W,
> {
crate::common::RegisterField::<
0,
0x1,
1,
0,
adcmpchscr0::Cmpchc0,
adcmpchscr0::Cmpchc0,
Adcmpchscr0_SPEC,
crate::common::W,
>::from_register(self, 0)
}
#[doc = "Analog channel n: Compare Match Flag Clear bit"]
#[inline(always)]
pub fn cmpchc1(
self,
) -> crate::common::RegisterField<
1,
0x1,
1,
0,
adcmpchscr0::Cmpchc1,
adcmpchscr0::Cmpchc1,
Adcmpchscr0_SPEC,
crate::common::W,
> {
crate::common::RegisterField::<
1,
0x1,
1,
0,
adcmpchscr0::Cmpchc1,
adcmpchscr0::Cmpchc1,
Adcmpchscr0_SPEC,
crate::common::W,
>::from_register(self, 0)
}
#[doc = "Analog channel n: Compare Match Flag Clear bit"]
#[inline(always)]
pub fn cmpchc2(
self,
) -> crate::common::RegisterField<
2,
0x1,
1,
0,
adcmpchscr0::Cmpchc2,
adcmpchscr0::Cmpchc2,
Adcmpchscr0_SPEC,
crate::common::W,
> {
crate::common::RegisterField::<
2,
0x1,
1,
0,
adcmpchscr0::Cmpchc2,
adcmpchscr0::Cmpchc2,
Adcmpchscr0_SPEC,
crate::common::W,
>::from_register(self, 0)
}
#[doc = "Analog channel n: Compare Match Flag Clear bit"]
#[inline(always)]
pub fn cmpchc3(
self,
) -> crate::common::RegisterField<
3,
0x1,
1,
0,
adcmpchscr0::Cmpchc3,
adcmpchscr0::Cmpchc3,
Adcmpchscr0_SPEC,
crate::common::W,
> {
crate::common::RegisterField::<
3,
0x1,
1,
0,
adcmpchscr0::Cmpchc3,
adcmpchscr0::Cmpchc3,
Adcmpchscr0_SPEC,
crate::common::W,
>::from_register(self, 0)
}
#[doc = "Analog channel n: Compare Match Flag Clear bit"]
#[inline(always)]
pub fn cmpchc4(
self,
) -> crate::common::RegisterField<
4,
0x1,
1,
0,
adcmpchscr0::Cmpchc4,
adcmpchscr0::Cmpchc4,
Adcmpchscr0_SPEC,
crate::common::W,
> {
crate::common::RegisterField::<
4,
0x1,
1,
0,
adcmpchscr0::Cmpchc4,
adcmpchscr0::Cmpchc4,
Adcmpchscr0_SPEC,
crate::common::W,
>::from_register(self, 0)
}
#[doc = "Analog channel n: Compare Match Flag Clear bit"]
#[inline(always)]
pub fn cmpchc5(
self,
) -> crate::common::RegisterField<
5,
0x1,
1,
0,
adcmpchscr0::Cmpchc5,
adcmpchscr0::Cmpchc5,
Adcmpchscr0_SPEC,
crate::common::W,
> {
crate::common::RegisterField::<
5,
0x1,
1,
0,
adcmpchscr0::Cmpchc5,
adcmpchscr0::Cmpchc5,
Adcmpchscr0_SPEC,
crate::common::W,
>::from_register(self, 0)
}
#[doc = "Analog channel n: Compare Match Flag Clear bit"]
#[inline(always)]
pub fn cmpchc6(
self,
) -> crate::common::RegisterField<
6,
0x1,
1,
0,
adcmpchscr0::Cmpchc6,
adcmpchscr0::Cmpchc6,
Adcmpchscr0_SPEC,
crate::common::W,
> {
crate::common::RegisterField::<
6,
0x1,
1,
0,
adcmpchscr0::Cmpchc6,
adcmpchscr0::Cmpchc6,
Adcmpchscr0_SPEC,
crate::common::W,
>::from_register(self, 0)
}
#[doc = "Analog channel n: Compare Match Flag Clear bit"]
#[inline(always)]
pub fn cmpchc7(
self,
) -> crate::common::RegisterField<
7,
0x1,
1,
0,
adcmpchscr0::Cmpchc7,
adcmpchscr0::Cmpchc7,
Adcmpchscr0_SPEC,
crate::common::W,
> {
crate::common::RegisterField::<
7,
0x1,
1,
0,
adcmpchscr0::Cmpchc7,
adcmpchscr0::Cmpchc7,
Adcmpchscr0_SPEC,
crate::common::W,
>::from_register(self, 0)
}
#[doc = "Analog channel n: Compare Match Flag Clear bit"]
#[inline(always)]
pub fn cmpchc8(
self,
) -> crate::common::RegisterField<
8,
0x1,
1,
0,
adcmpchscr0::Cmpchc8,
adcmpchscr0::Cmpchc8,
Adcmpchscr0_SPEC,
crate::common::W,
> {
crate::common::RegisterField::<
8,
0x1,
1,
0,
adcmpchscr0::Cmpchc8,
adcmpchscr0::Cmpchc8,
Adcmpchscr0_SPEC,
crate::common::W,
>::from_register(self, 0)
}
#[doc = "Analog channel n: Compare Match Flag Clear bit"]
#[inline(always)]
pub fn cmpchc9(
self,
) -> crate::common::RegisterField<
9,
0x1,
1,
0,
adcmpchscr0::Cmpchc9,
adcmpchscr0::Cmpchc9,
Adcmpchscr0_SPEC,
crate::common::W,
> {
crate::common::RegisterField::<
9,
0x1,
1,
0,
adcmpchscr0::Cmpchc9,
adcmpchscr0::Cmpchc9,
Adcmpchscr0_SPEC,
crate::common::W,
>::from_register(self, 0)
}
#[doc = "Analog channel n: Compare Match Flag Clear bit"]
#[inline(always)]
pub fn cmpchc10(
self,
) -> crate::common::RegisterField<
10,
0x1,
1,
0,
adcmpchscr0::Cmpchc10,
adcmpchscr0::Cmpchc10,
Adcmpchscr0_SPEC,
crate::common::W,
> {
crate::common::RegisterField::<
10,
0x1,
1,
0,
adcmpchscr0::Cmpchc10,
adcmpchscr0::Cmpchc10,
Adcmpchscr0_SPEC,
crate::common::W,
>::from_register(self, 0)
}
#[doc = "Analog channel n: Compare Match Flag Clear bit"]
#[inline(always)]
pub fn cmpchc11(
self,
) -> crate::common::RegisterField<
11,
0x1,
1,
0,
adcmpchscr0::Cmpchc11,
adcmpchscr0::Cmpchc11,
Adcmpchscr0_SPEC,
crate::common::W,
> {
crate::common::RegisterField::<
11,
0x1,
1,
0,
adcmpchscr0::Cmpchc11,
adcmpchscr0::Cmpchc11,
Adcmpchscr0_SPEC,
crate::common::W,
>::from_register(self, 0)
}
#[doc = "Analog channel n: Compare Match Flag Clear bit"]
#[inline(always)]
pub fn cmpchc12(
self,
) -> crate::common::RegisterField<
12,
0x1,
1,
0,
adcmpchscr0::Cmpchc12,
adcmpchscr0::Cmpchc12,
Adcmpchscr0_SPEC,
crate::common::W,
> {
crate::common::RegisterField::<
12,
0x1,
1,
0,
adcmpchscr0::Cmpchc12,
adcmpchscr0::Cmpchc12,
Adcmpchscr0_SPEC,
crate::common::W,
>::from_register(self, 0)
}
#[doc = "Analog channel n: Compare Match Flag Clear bit"]
#[inline(always)]
pub fn cmpchc13(
self,
) -> crate::common::RegisterField<
13,
0x1,
1,
0,
adcmpchscr0::Cmpchc13,
adcmpchscr0::Cmpchc13,
Adcmpchscr0_SPEC,
crate::common::W,
> {
crate::common::RegisterField::<
13,
0x1,
1,
0,
adcmpchscr0::Cmpchc13,
adcmpchscr0::Cmpchc13,
Adcmpchscr0_SPEC,
crate::common::W,
>::from_register(self, 0)
}
#[doc = "Analog channel n: Compare Match Flag Clear bit"]
#[inline(always)]
pub fn cmpchc14(
self,
) -> crate::common::RegisterField<
14,
0x1,
1,
0,
adcmpchscr0::Cmpchc14,
adcmpchscr0::Cmpchc14,
Adcmpchscr0_SPEC,
crate::common::W,
> {
crate::common::RegisterField::<
14,
0x1,
1,
0,
adcmpchscr0::Cmpchc14,
adcmpchscr0::Cmpchc14,
Adcmpchscr0_SPEC,
crate::common::W,
>::from_register(self, 0)
}
#[doc = "Analog channel n: Compare Match Flag Clear bit"]
#[inline(always)]
pub fn cmpchc15(
self,
) -> crate::common::RegisterField<
15,
0x1,
1,
0,
adcmpchscr0::Cmpchc15,
adcmpchscr0::Cmpchc15,
Adcmpchscr0_SPEC,
crate::common::W,
> {
crate::common::RegisterField::<
15,
0x1,
1,
0,
adcmpchscr0::Cmpchc15,
adcmpchscr0::Cmpchc15,
Adcmpchscr0_SPEC,
crate::common::W,
>::from_register(self, 0)
}
#[doc = "Analog channel n: Compare Match Flag Clear bit"]
#[inline(always)]
pub fn cmpchc16(
self,
) -> crate::common::RegisterField<
16,
0x1,
1,
0,
adcmpchscr0::Cmpchc16,
adcmpchscr0::Cmpchc16,
Adcmpchscr0_SPEC,
crate::common::W,
> {
crate::common::RegisterField::<
16,
0x1,
1,
0,
adcmpchscr0::Cmpchc16,
adcmpchscr0::Cmpchc16,
Adcmpchscr0_SPEC,
crate::common::W,
>::from_register(self, 0)
}
#[doc = "Analog channel n: Compare Match Flag Clear bit"]
#[inline(always)]
pub fn cmpchc17(
self,
) -> crate::common::RegisterField<
17,
0x1,
1,
0,
adcmpchscr0::Cmpchc17,
adcmpchscr0::Cmpchc17,
Adcmpchscr0_SPEC,
crate::common::W,
> {
crate::common::RegisterField::<
17,
0x1,
1,
0,
adcmpchscr0::Cmpchc17,
adcmpchscr0::Cmpchc17,
Adcmpchscr0_SPEC,
crate::common::W,
>::from_register(self, 0)
}
#[doc = "Analog channel n: Compare Match Flag Clear bit"]
#[inline(always)]
pub fn cmpchc18(
self,
) -> crate::common::RegisterField<
18,
0x1,
1,
0,
adcmpchscr0::Cmpchc18,
adcmpchscr0::Cmpchc18,
Adcmpchscr0_SPEC,
crate::common::W,
> {
crate::common::RegisterField::<
18,
0x1,
1,
0,
adcmpchscr0::Cmpchc18,
adcmpchscr0::Cmpchc18,
Adcmpchscr0_SPEC,
crate::common::W,
>::from_register(self, 0)
}
#[doc = "Analog channel n: Compare Match Flag Clear bit"]
#[inline(always)]
pub fn cmpchc19(
self,
) -> crate::common::RegisterField<
19,
0x1,
1,
0,
adcmpchscr0::Cmpchc19,
adcmpchscr0::Cmpchc19,
Adcmpchscr0_SPEC,
crate::common::W,
> {
crate::common::RegisterField::<
19,
0x1,
1,
0,
adcmpchscr0::Cmpchc19,
adcmpchscr0::Cmpchc19,
Adcmpchscr0_SPEC,
crate::common::W,
>::from_register(self, 0)
}
#[doc = "Analog channel n: Compare Match Flag Clear bit"]
#[inline(always)]
pub fn cmpchc20(
self,
) -> crate::common::RegisterField<
20,
0x1,
1,
0,
adcmpchscr0::Cmpchc20,
adcmpchscr0::Cmpchc20,
Adcmpchscr0_SPEC,
crate::common::W,
> {
crate::common::RegisterField::<
20,
0x1,
1,
0,
adcmpchscr0::Cmpchc20,
adcmpchscr0::Cmpchc20,
Adcmpchscr0_SPEC,
crate::common::W,
>::from_register(self, 0)
}
#[doc = "Analog channel n: Compare Match Flag Clear bit"]
#[inline(always)]
pub fn cmpchc21(
self,
) -> crate::common::RegisterField<
21,
0x1,
1,
0,
adcmpchscr0::Cmpchc21,
adcmpchscr0::Cmpchc21,
Adcmpchscr0_SPEC,
crate::common::W,
> {
crate::common::RegisterField::<
21,
0x1,
1,
0,
adcmpchscr0::Cmpchc21,
adcmpchscr0::Cmpchc21,
Adcmpchscr0_SPEC,
crate::common::W,
>::from_register(self, 0)
}
#[doc = "Analog channel n: Compare Match Flag Clear bit"]
#[inline(always)]
pub fn cmpchc22(
self,
) -> crate::common::RegisterField<
22,
0x1,
1,
0,
adcmpchscr0::Cmpchc22,
adcmpchscr0::Cmpchc22,
Adcmpchscr0_SPEC,
crate::common::W,
> {
crate::common::RegisterField::<
22,
0x1,
1,
0,
adcmpchscr0::Cmpchc22,
adcmpchscr0::Cmpchc22,
Adcmpchscr0_SPEC,
crate::common::W,
>::from_register(self, 0)
}
}
impl ::core::default::Default for Adcmpchscr0 {
#[inline(always)]
fn default() -> Adcmpchscr0 {
<crate::RegValueT<Adcmpchscr0_SPEC> as RegisterValue<_>>::new(0)
}
}
pub mod adcmpchscr0 {
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Cmpchc0_SPEC;
pub type Cmpchc0 = crate::EnumBitfieldStruct<u8, Cmpchc0_SPEC>;
impl Cmpchc0 {
#[doc = "No effect"]
pub const _0: Self = Self::new(0);
#[doc = "ADCMPCHSR0.CMPCHFn is cleared"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Cmpchc1_SPEC;
pub type Cmpchc1 = crate::EnumBitfieldStruct<u8, Cmpchc1_SPEC>;
impl Cmpchc1 {
#[doc = "No effect"]
pub const _0: Self = Self::new(0);
#[doc = "ADCMPCHSR0.CMPCHFn is cleared"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Cmpchc2_SPEC;
pub type Cmpchc2 = crate::EnumBitfieldStruct<u8, Cmpchc2_SPEC>;
impl Cmpchc2 {
#[doc = "No effect"]
pub const _0: Self = Self::new(0);
#[doc = "ADCMPCHSR0.CMPCHFn is cleared"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Cmpchc3_SPEC;
pub type Cmpchc3 = crate::EnumBitfieldStruct<u8, Cmpchc3_SPEC>;
impl Cmpchc3 {
#[doc = "No effect"]
pub const _0: Self = Self::new(0);
#[doc = "ADCMPCHSR0.CMPCHFn is cleared"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Cmpchc4_SPEC;
pub type Cmpchc4 = crate::EnumBitfieldStruct<u8, Cmpchc4_SPEC>;
impl Cmpchc4 {
#[doc = "No effect"]
pub const _0: Self = Self::new(0);
#[doc = "ADCMPCHSR0.CMPCHFn is cleared"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Cmpchc5_SPEC;
pub type Cmpchc5 = crate::EnumBitfieldStruct<u8, Cmpchc5_SPEC>;
impl Cmpchc5 {
#[doc = "No effect"]
pub const _0: Self = Self::new(0);
#[doc = "ADCMPCHSR0.CMPCHFn is cleared"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Cmpchc6_SPEC;
pub type Cmpchc6 = crate::EnumBitfieldStruct<u8, Cmpchc6_SPEC>;
impl Cmpchc6 {
#[doc = "No effect"]
pub const _0: Self = Self::new(0);
#[doc = "ADCMPCHSR0.CMPCHFn is cleared"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Cmpchc7_SPEC;
pub type Cmpchc7 = crate::EnumBitfieldStruct<u8, Cmpchc7_SPEC>;
impl Cmpchc7 {
#[doc = "No effect"]
pub const _0: Self = Self::new(0);
#[doc = "ADCMPCHSR0.CMPCHFn is cleared"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Cmpchc8_SPEC;
pub type Cmpchc8 = crate::EnumBitfieldStruct<u8, Cmpchc8_SPEC>;
impl Cmpchc8 {
#[doc = "No effect"]
pub const _0: Self = Self::new(0);
#[doc = "ADCMPCHSR0.CMPCHFn is cleared"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Cmpchc9_SPEC;
pub type Cmpchc9 = crate::EnumBitfieldStruct<u8, Cmpchc9_SPEC>;
impl Cmpchc9 {
#[doc = "No effect"]
pub const _0: Self = Self::new(0);
#[doc = "ADCMPCHSR0.CMPCHFn is cleared"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Cmpchc10_SPEC;
pub type Cmpchc10 = crate::EnumBitfieldStruct<u8, Cmpchc10_SPEC>;
impl Cmpchc10 {
#[doc = "No effect"]
pub const _0: Self = Self::new(0);
#[doc = "ADCMPCHSR0.CMPCHFn is cleared"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Cmpchc11_SPEC;
pub type Cmpchc11 = crate::EnumBitfieldStruct<u8, Cmpchc11_SPEC>;
impl Cmpchc11 {
#[doc = "No effect"]
pub const _0: Self = Self::new(0);
#[doc = "ADCMPCHSR0.CMPCHFn is cleared"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Cmpchc12_SPEC;
pub type Cmpchc12 = crate::EnumBitfieldStruct<u8, Cmpchc12_SPEC>;
impl Cmpchc12 {
#[doc = "No effect"]
pub const _0: Self = Self::new(0);
#[doc = "ADCMPCHSR0.CMPCHFn is cleared"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Cmpchc13_SPEC;
pub type Cmpchc13 = crate::EnumBitfieldStruct<u8, Cmpchc13_SPEC>;
impl Cmpchc13 {
#[doc = "No effect"]
pub const _0: Self = Self::new(0);
#[doc = "ADCMPCHSR0.CMPCHFn is cleared"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Cmpchc14_SPEC;
pub type Cmpchc14 = crate::EnumBitfieldStruct<u8, Cmpchc14_SPEC>;
impl Cmpchc14 {
#[doc = "No effect"]
pub const _0: Self = Self::new(0);
#[doc = "ADCMPCHSR0.CMPCHFn is cleared"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Cmpchc15_SPEC;
pub type Cmpchc15 = crate::EnumBitfieldStruct<u8, Cmpchc15_SPEC>;
impl Cmpchc15 {
#[doc = "No effect"]
pub const _0: Self = Self::new(0);
#[doc = "ADCMPCHSR0.CMPCHFn is cleared"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Cmpchc16_SPEC;
pub type Cmpchc16 = crate::EnumBitfieldStruct<u8, Cmpchc16_SPEC>;
impl Cmpchc16 {
#[doc = "No effect"]
pub const _0: Self = Self::new(0);
#[doc = "ADCMPCHSR0.CMPCHFn is cleared"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Cmpchc17_SPEC;
pub type Cmpchc17 = crate::EnumBitfieldStruct<u8, Cmpchc17_SPEC>;
impl Cmpchc17 {
#[doc = "No effect"]
pub const _0: Self = Self::new(0);
#[doc = "ADCMPCHSR0.CMPCHFn is cleared"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Cmpchc18_SPEC;
pub type Cmpchc18 = crate::EnumBitfieldStruct<u8, Cmpchc18_SPEC>;
impl Cmpchc18 {
#[doc = "No effect"]
pub const _0: Self = Self::new(0);
#[doc = "ADCMPCHSR0.CMPCHFn is cleared"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Cmpchc19_SPEC;
pub type Cmpchc19 = crate::EnumBitfieldStruct<u8, Cmpchc19_SPEC>;
impl Cmpchc19 {
#[doc = "No effect"]
pub const _0: Self = Self::new(0);
#[doc = "ADCMPCHSR0.CMPCHFn is cleared"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Cmpchc20_SPEC;
pub type Cmpchc20 = crate::EnumBitfieldStruct<u8, Cmpchc20_SPEC>;
impl Cmpchc20 {
#[doc = "No effect"]
pub const _0: Self = Self::new(0);
#[doc = "ADCMPCHSR0.CMPCHFn is cleared"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Cmpchc21_SPEC;
pub type Cmpchc21 = crate::EnumBitfieldStruct<u8, Cmpchc21_SPEC>;
impl Cmpchc21 {
#[doc = "No effect"]
pub const _0: Self = Self::new(0);
#[doc = "ADCMPCHSR0.CMPCHFn is cleared"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Cmpchc22_SPEC;
pub type Cmpchc22 = crate::EnumBitfieldStruct<u8, Cmpchc22_SPEC>;
impl Cmpchc22 {
#[doc = "No effect"]
pub const _0: Self = Self::new(0);
#[doc = "ADCMPCHSR0.CMPCHFn is cleared"]
pub const _1: Self = Self::new(1);
}
}
#[doc(hidden)]
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct Adcmpexscr_SPEC;
impl crate::sealed::RegSpec for Adcmpexscr_SPEC {
type DataType = u32;
}
#[doc = "Extended Analog Compare Match Status Clear Register"]
pub type Adcmpexscr = crate::RegValueT<Adcmpexscr_SPEC>;
impl Adcmpexscr {
#[doc = "Self-diagnosis channel for A/D unit 0: Compare Match Flag Clear"]
#[inline(always)]
pub fn cmpexc0(
self,
) -> crate::common::RegisterField<
0,
0x1,
1,
0,
adcmpexscr::Cmpexc0,
adcmpexscr::Cmpexc0,
Adcmpexscr_SPEC,
crate::common::W,
> {
crate::common::RegisterField::<
0,
0x1,
1,
0,
adcmpexscr::Cmpexc0,
adcmpexscr::Cmpexc0,
Adcmpexscr_SPEC,
crate::common::W,
>::from_register(self, 0)
}
#[doc = "Self-diagnosis channel for A/D unit 1: Compare Match Flag Clear"]
#[inline(always)]
pub fn cmpexc1(
self,
) -> crate::common::RegisterField<
1,
0x1,
1,
0,
adcmpexscr::Cmpexc1,
adcmpexscr::Cmpexc1,
Adcmpexscr_SPEC,
crate::common::W,
> {
crate::common::RegisterField::<
1,
0x1,
1,
0,
adcmpexscr::Cmpexc1,
adcmpexscr::Cmpexc1,
Adcmpexscr_SPEC,
crate::common::W,
>::from_register(self, 0)
}
#[doc = "Temperature sensor channel: Compare Match Flag Clear"]
#[inline(always)]
pub fn cmpexc4(
self,
) -> crate::common::RegisterField<
4,
0x1,
1,
0,
adcmpexscr::Cmpexc4,
adcmpexscr::Cmpexc4,
Adcmpexscr_SPEC,
crate::common::W,
> {
crate::common::RegisterField::<
4,
0x1,
1,
0,
adcmpexscr::Cmpexc4,
adcmpexscr::Cmpexc4,
Adcmpexscr_SPEC,
crate::common::W,
>::from_register(self, 0)
}
#[doc = "Internal reference voltage channel: Compare Match Flag Clear"]
#[inline(always)]
pub fn cmpexc5(
self,
) -> crate::common::RegisterField<
5,
0x1,
1,
0,
adcmpexscr::Cmpexc5,
adcmpexscr::Cmpexc5,
Adcmpexscr_SPEC,
crate::common::W,
> {
crate::common::RegisterField::<
5,
0x1,
1,
0,
adcmpexscr::Cmpexc5,
adcmpexscr::Cmpexc5,
Adcmpexscr_SPEC,
crate::common::W,
>::from_register(self, 0)
}
#[doc = "VBATT 1/6 voltage monitor output channel: Compare Match Flag Clear"]
#[inline(always)]
pub fn cmpexc6(
self,
) -> crate::common::RegisterField<
6,
0x1,
1,
0,
adcmpexscr::Cmpexc6,
adcmpexscr::Cmpexc6,
Adcmpexscr_SPEC,
crate::common::W,
> {
crate::common::RegisterField::<
6,
0x1,
1,
0,
adcmpexscr::Cmpexc6,
adcmpexscr::Cmpexc6,
Adcmpexscr_SPEC,
crate::common::W,
>::from_register(self, 0)
}
#[doc = "D/A converter 0 channel: Compare Match Flag Clear"]
#[inline(always)]
pub fn cmpexc8(
self,
) -> crate::common::RegisterField<
8,
0x1,
1,
0,
adcmpexscr::Cmpexc8,
adcmpexscr::Cmpexc8,
Adcmpexscr_SPEC,
crate::common::W,
> {
crate::common::RegisterField::<
8,
0x1,
1,
0,
adcmpexscr::Cmpexc8,
adcmpexscr::Cmpexc8,
Adcmpexscr_SPEC,
crate::common::W,
>::from_register(self, 0)
}
#[doc = "D/A converter 1 channel: Compare Match Flag Clear"]
#[inline(always)]
pub fn cmpexc9(
self,
) -> crate::common::RegisterField<
9,
0x1,
1,
0,
adcmpexscr::Cmpexc9,
adcmpexscr::Cmpexc9,
Adcmpexscr_SPEC,
crate::common::W,
> {
crate::common::RegisterField::<
9,
0x1,
1,
0,
adcmpexscr::Cmpexc9,
adcmpexscr::Cmpexc9,
Adcmpexscr_SPEC,
crate::common::W,
>::from_register(self, 0)
}
#[doc = "Self-diagnosis channel for sample-and-hold circuit unit 0: Compare Match Flag Clear"]
#[inline(always)]
pub fn cmpexc16(
self,
) -> crate::common::RegisterField<
16,
0x1,
1,
0,
adcmpexscr::Cmpexc16,
adcmpexscr::Cmpexc16,
Adcmpexscr_SPEC,
crate::common::W,
> {
crate::common::RegisterField::<
16,
0x1,
1,
0,
adcmpexscr::Cmpexc16,
adcmpexscr::Cmpexc16,
Adcmpexscr_SPEC,
crate::common::W,
>::from_register(self, 0)
}
#[doc = "Self-diagnosis channel for sample-and-hold circuit unit 1: Compare Match Flag Clear"]
#[inline(always)]
pub fn cmpexc17(
self,
) -> crate::common::RegisterField<
17,
0x1,
1,
0,
adcmpexscr::Cmpexc17,
adcmpexscr::Cmpexc17,
Adcmpexscr_SPEC,
crate::common::W,
> {
crate::common::RegisterField::<
17,
0x1,
1,
0,
adcmpexscr::Cmpexc17,
adcmpexscr::Cmpexc17,
Adcmpexscr_SPEC,
crate::common::W,
>::from_register(self, 0)
}
#[doc = "Self-diagnosis channel for sample-and-hold circuit unit 2: Compare Match Flag Clear"]
#[inline(always)]
pub fn cmpexc18(
self,
) -> crate::common::RegisterField<
18,
0x1,
1,
0,
adcmpexscr::Cmpexc18,
adcmpexscr::Cmpexc18,
Adcmpexscr_SPEC,
crate::common::W,
> {
crate::common::RegisterField::<
18,
0x1,
1,
0,
adcmpexscr::Cmpexc18,
adcmpexscr::Cmpexc18,
Adcmpexscr_SPEC,
crate::common::W,
>::from_register(self, 0)
}
#[doc = "Self-diagnosis channel for sample-and-hold circuit unit 4: Compare Match Flag Clear"]
#[inline(always)]
pub fn cmpexc20(
self,
) -> crate::common::RegisterField<
20,
0x1,
1,
0,
adcmpexscr::Cmpexc20,
adcmpexscr::Cmpexc20,
Adcmpexscr_SPEC,
crate::common::W,
> {
crate::common::RegisterField::<
20,
0x1,
1,
0,
adcmpexscr::Cmpexc20,
adcmpexscr::Cmpexc20,
Adcmpexscr_SPEC,
crate::common::W,
>::from_register(self, 0)
}
#[doc = "Self-diagnosis channel for sample-and-hold circuit unit 5: Compare Match Flag Clear"]
#[inline(always)]
pub fn cmpexc21(
self,
) -> crate::common::RegisterField<
21,
0x1,
1,
0,
adcmpexscr::Cmpexc21,
adcmpexscr::Cmpexc21,
Adcmpexscr_SPEC,
crate::common::W,
> {
crate::common::RegisterField::<
21,
0x1,
1,
0,
adcmpexscr::Cmpexc21,
adcmpexscr::Cmpexc21,
Adcmpexscr_SPEC,
crate::common::W,
>::from_register(self, 0)
}
#[doc = "Self-diagnosis channel for sample-and-hold circuit unit 6: Compare Match Flag Clear"]
#[inline(always)]
pub fn cmpexc22(
self,
) -> crate::common::RegisterField<
22,
0x1,
1,
0,
adcmpexscr::Cmpexc22,
adcmpexscr::Cmpexc22,
Adcmpexscr_SPEC,
crate::common::W,
> {
crate::common::RegisterField::<
22,
0x1,
1,
0,
adcmpexscr::Cmpexc22,
adcmpexscr::Cmpexc22,
Adcmpexscr_SPEC,
crate::common::W,
>::from_register(self, 0)
}
}
impl ::core::default::Default for Adcmpexscr {
#[inline(always)]
fn default() -> Adcmpexscr {
<crate::RegValueT<Adcmpexscr_SPEC> as RegisterValue<_>>::new(0)
}
}
pub mod adcmpexscr {
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Cmpexc0_SPEC;
pub type Cmpexc0 = crate::EnumBitfieldStruct<u8, Cmpexc0_SPEC>;
impl Cmpexc0 {
#[doc = "No effect"]
pub const _0: Self = Self::new(0);
#[doc = "ADCMPEXSR.CMPEXF0 is cleared"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Cmpexc1_SPEC;
pub type Cmpexc1 = crate::EnumBitfieldStruct<u8, Cmpexc1_SPEC>;
impl Cmpexc1 {
#[doc = "No effect"]
pub const _0: Self = Self::new(0);
#[doc = "ADCMPEXSR.CMPEXF1 is cleared"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Cmpexc4_SPEC;
pub type Cmpexc4 = crate::EnumBitfieldStruct<u8, Cmpexc4_SPEC>;
impl Cmpexc4 {
#[doc = "No effect"]
pub const _0: Self = Self::new(0);
#[doc = "ADCMPEXSR.CMPEXF4 is cleared"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Cmpexc5_SPEC;
pub type Cmpexc5 = crate::EnumBitfieldStruct<u8, Cmpexc5_SPEC>;
impl Cmpexc5 {
#[doc = "No effect"]
pub const _0: Self = Self::new(0);
#[doc = "ADCMPEXSR.CMPEXF5 is cleared"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Cmpexc6_SPEC;
pub type Cmpexc6 = crate::EnumBitfieldStruct<u8, Cmpexc6_SPEC>;
impl Cmpexc6 {
#[doc = "No effect"]
pub const _0: Self = Self::new(0);
#[doc = "ADCMPEXSR.CMPEXF6 is cleared"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Cmpexc8_SPEC;
pub type Cmpexc8 = crate::EnumBitfieldStruct<u8, Cmpexc8_SPEC>;
impl Cmpexc8 {
#[doc = "No effect"]
pub const _0: Self = Self::new(0);
#[doc = "ADCMPEXSR.CMPEXF8 is cleared"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Cmpexc9_SPEC;
pub type Cmpexc9 = crate::EnumBitfieldStruct<u8, Cmpexc9_SPEC>;
impl Cmpexc9 {
#[doc = "No effect"]
pub const _0: Self = Self::new(0);
#[doc = "ADCMPEXSR.CMPEXF9 is cleared"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Cmpexc16_SPEC;
pub type Cmpexc16 = crate::EnumBitfieldStruct<u8, Cmpexc16_SPEC>;
impl Cmpexc16 {
#[doc = "No effect"]
pub const _0: Self = Self::new(0);
#[doc = "ADCMPEXSR.CMPEXF16 is cleared"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Cmpexc17_SPEC;
pub type Cmpexc17 = crate::EnumBitfieldStruct<u8, Cmpexc17_SPEC>;
impl Cmpexc17 {
#[doc = "No effect"]
pub const _0: Self = Self::new(0);
#[doc = "ADCMPEXSR.CMPEXF17 is cleared"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Cmpexc18_SPEC;
pub type Cmpexc18 = crate::EnumBitfieldStruct<u8, Cmpexc18_SPEC>;
impl Cmpexc18 {
#[doc = "No effect"]
pub const _0: Self = Self::new(0);
#[doc = "ADCMPEXSR.CMPEXF18 is cleared"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Cmpexc20_SPEC;
pub type Cmpexc20 = crate::EnumBitfieldStruct<u8, Cmpexc20_SPEC>;
impl Cmpexc20 {
#[doc = "No effect"]
pub const _0: Self = Self::new(0);
#[doc = "ADCMPEXSR.CMPEXF20 is cleared"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Cmpexc21_SPEC;
pub type Cmpexc21 = crate::EnumBitfieldStruct<u8, Cmpexc21_SPEC>;
impl Cmpexc21 {
#[doc = "No effect"]
pub const _0: Self = Self::new(0);
#[doc = "ADCMPEXSR.CMPEXF21 is cleared"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Cmpexc22_SPEC;
pub type Cmpexc22 = crate::EnumBitfieldStruct<u8, Cmpexc22_SPEC>;
impl Cmpexc22 {
#[doc = "No effect"]
pub const _0: Self = Self::new(0);
#[doc = "ADCMPEXSR.CMPEXF22 is cleared"]
pub const _1: Self = Self::new(1);
}
}
#[doc(hidden)]
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct Adlimgrsr_SPEC;
impl crate::sealed::RegSpec for Adlimgrsr_SPEC {
type DataType = u32;
}
#[doc = "Limiter Clip Scan Group Status Register"]
pub type Adlimgrsr = crate::RegValueT<Adlimgrsr_SPEC>;
impl Adlimgrsr {
#[doc = "Scan Group n Limiter Clip Flag"]
#[inline(always)]
pub fn limgrf0(
self,
) -> crate::common::RegisterField<
0,
0x1,
1,
0,
adlimgrsr::Limgrf0,
adlimgrsr::Limgrf0,
Adlimgrsr_SPEC,
crate::common::R,
> {
crate::common::RegisterField::<
0,
0x1,
1,
0,
adlimgrsr::Limgrf0,
adlimgrsr::Limgrf0,
Adlimgrsr_SPEC,
crate::common::R,
>::from_register(self, 0)
}
#[doc = "Scan Group n Limiter Clip Flag"]
#[inline(always)]
pub fn limgrf1(
self,
) -> crate::common::RegisterField<
1,
0x1,
1,
0,
adlimgrsr::Limgrf1,
adlimgrsr::Limgrf1,
Adlimgrsr_SPEC,
crate::common::R,
> {
crate::common::RegisterField::<
1,
0x1,
1,
0,
adlimgrsr::Limgrf1,
adlimgrsr::Limgrf1,
Adlimgrsr_SPEC,
crate::common::R,
>::from_register(self, 0)
}
#[doc = "Scan Group n Limiter Clip Flag"]
#[inline(always)]
pub fn limgrf2(
self,
) -> crate::common::RegisterField<
2,
0x1,
1,
0,
adlimgrsr::Limgrf2,
adlimgrsr::Limgrf2,
Adlimgrsr_SPEC,
crate::common::R,
> {
crate::common::RegisterField::<
2,
0x1,
1,
0,
adlimgrsr::Limgrf2,
adlimgrsr::Limgrf2,
Adlimgrsr_SPEC,
crate::common::R,
>::from_register(self, 0)
}
#[doc = "Scan Group n Limiter Clip Flag"]
#[inline(always)]
pub fn limgrf3(
self,
) -> crate::common::RegisterField<
3,
0x1,
1,
0,
adlimgrsr::Limgrf3,
adlimgrsr::Limgrf3,
Adlimgrsr_SPEC,
crate::common::R,
> {
crate::common::RegisterField::<
3,
0x1,
1,
0,
adlimgrsr::Limgrf3,
adlimgrsr::Limgrf3,
Adlimgrsr_SPEC,
crate::common::R,
>::from_register(self, 0)
}
#[doc = "Scan Group n Limiter Clip Flag"]
#[inline(always)]
pub fn limgrf4(
self,
) -> crate::common::RegisterField<
4,
0x1,
1,
0,
adlimgrsr::Limgrf4,
adlimgrsr::Limgrf4,
Adlimgrsr_SPEC,
crate::common::R,
> {
crate::common::RegisterField::<
4,
0x1,
1,
0,
adlimgrsr::Limgrf4,
adlimgrsr::Limgrf4,
Adlimgrsr_SPEC,
crate::common::R,
>::from_register(self, 0)
}
#[doc = "Scan Group n Limiter Clip Flag"]
#[inline(always)]
pub fn limgrf5(
self,
) -> crate::common::RegisterField<
5,
0x1,
1,
0,
adlimgrsr::Limgrf5,
adlimgrsr::Limgrf5,
Adlimgrsr_SPEC,
crate::common::R,
> {
crate::common::RegisterField::<
5,
0x1,
1,
0,
adlimgrsr::Limgrf5,
adlimgrsr::Limgrf5,
Adlimgrsr_SPEC,
crate::common::R,
>::from_register(self, 0)
}
#[doc = "Scan Group n Limiter Clip Flag"]
#[inline(always)]
pub fn limgrf6(
self,
) -> crate::common::RegisterField<
6,
0x1,
1,
0,
adlimgrsr::Limgrf6,
adlimgrsr::Limgrf6,
Adlimgrsr_SPEC,
crate::common::R,
> {
crate::common::RegisterField::<
6,
0x1,
1,
0,
adlimgrsr::Limgrf6,
adlimgrsr::Limgrf6,
Adlimgrsr_SPEC,
crate::common::R,
>::from_register(self, 0)
}
#[doc = "Scan Group n Limiter Clip Flag"]
#[inline(always)]
pub fn limgrf7(
self,
) -> crate::common::RegisterField<
7,
0x1,
1,
0,
adlimgrsr::Limgrf7,
adlimgrsr::Limgrf7,
Adlimgrsr_SPEC,
crate::common::R,
> {
crate::common::RegisterField::<
7,
0x1,
1,
0,
adlimgrsr::Limgrf7,
adlimgrsr::Limgrf7,
Adlimgrsr_SPEC,
crate::common::R,
>::from_register(self, 0)
}
#[doc = "Scan Group n Limiter Clip Flag"]
#[inline(always)]
pub fn limgrf8(
self,
) -> crate::common::RegisterField<
8,
0x1,
1,
0,
adlimgrsr::Limgrf8,
adlimgrsr::Limgrf8,
Adlimgrsr_SPEC,
crate::common::R,
> {
crate::common::RegisterField::<
8,
0x1,
1,
0,
adlimgrsr::Limgrf8,
adlimgrsr::Limgrf8,
Adlimgrsr_SPEC,
crate::common::R,
>::from_register(self, 0)
}
}
impl ::core::default::Default for Adlimgrsr {
#[inline(always)]
fn default() -> Adlimgrsr {
<crate::RegValueT<Adlimgrsr_SPEC> as RegisterValue<_>>::new(0)
}
}
pub mod adlimgrsr {
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Limgrf0_SPEC;
pub type Limgrf0 = crate::EnumBitfieldStruct<u8, Limgrf0_SPEC>;
impl Limgrf0 {
#[doc = "Limiter clip for scan group n is not detected"]
pub const _0: Self = Self::new(0);
#[doc = "Limiter clip for scan group n is detected"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Limgrf1_SPEC;
pub type Limgrf1 = crate::EnumBitfieldStruct<u8, Limgrf1_SPEC>;
impl Limgrf1 {
#[doc = "Limiter clip for scan group n is not detected"]
pub const _0: Self = Self::new(0);
#[doc = "Limiter clip for scan group n is detected"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Limgrf2_SPEC;
pub type Limgrf2 = crate::EnumBitfieldStruct<u8, Limgrf2_SPEC>;
impl Limgrf2 {
#[doc = "Limiter clip for scan group n is not detected"]
pub const _0: Self = Self::new(0);
#[doc = "Limiter clip for scan group n is detected"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Limgrf3_SPEC;
pub type Limgrf3 = crate::EnumBitfieldStruct<u8, Limgrf3_SPEC>;
impl Limgrf3 {
#[doc = "Limiter clip for scan group n is not detected"]
pub const _0: Self = Self::new(0);
#[doc = "Limiter clip for scan group n is detected"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Limgrf4_SPEC;
pub type Limgrf4 = crate::EnumBitfieldStruct<u8, Limgrf4_SPEC>;
impl Limgrf4 {
#[doc = "Limiter clip for scan group n is not detected"]
pub const _0: Self = Self::new(0);
#[doc = "Limiter clip for scan group n is detected"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Limgrf5_SPEC;
pub type Limgrf5 = crate::EnumBitfieldStruct<u8, Limgrf5_SPEC>;
impl Limgrf5 {
#[doc = "Limiter clip for scan group n is not detected"]
pub const _0: Self = Self::new(0);
#[doc = "Limiter clip for scan group n is detected"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Limgrf6_SPEC;
pub type Limgrf6 = crate::EnumBitfieldStruct<u8, Limgrf6_SPEC>;
impl Limgrf6 {
#[doc = "Limiter clip for scan group n is not detected"]
pub const _0: Self = Self::new(0);
#[doc = "Limiter clip for scan group n is detected"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Limgrf7_SPEC;
pub type Limgrf7 = crate::EnumBitfieldStruct<u8, Limgrf7_SPEC>;
impl Limgrf7 {
#[doc = "Limiter clip for scan group n is not detected"]
pub const _0: Self = Self::new(0);
#[doc = "Limiter clip for scan group n is detected"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Limgrf8_SPEC;
pub type Limgrf8 = crate::EnumBitfieldStruct<u8, Limgrf8_SPEC>;
impl Limgrf8 {
#[doc = "Limiter clip for scan group n is not detected"]
pub const _0: Self = Self::new(0);
#[doc = "Limiter clip for scan group n is detected"]
pub const _1: Self = Self::new(1);
}
}
#[doc(hidden)]
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct Adlimchsr0_SPEC;
impl crate::sealed::RegSpec for Adlimchsr0_SPEC {
type DataType = u32;
}
#[doc = "Limiter Clip Channel Status Register 0"]
pub type Adlimchsr0 = crate::RegValueT<Adlimchsr0_SPEC>;
impl Adlimchsr0 {
#[doc = "Analog Channel n: Limiter Clip Flag"]
#[inline(always)]
pub fn limchf0(
self,
) -> crate::common::RegisterField<
0,
0x1,
1,
0,
adlimchsr0::Limchf0,
adlimchsr0::Limchf0,
Adlimchsr0_SPEC,
crate::common::R,
> {
crate::common::RegisterField::<
0,
0x1,
1,
0,
adlimchsr0::Limchf0,
adlimchsr0::Limchf0,
Adlimchsr0_SPEC,
crate::common::R,
>::from_register(self, 0)
}
#[doc = "Analog Channel n: Limiter Clip Flag"]
#[inline(always)]
pub fn limchf1(
self,
) -> crate::common::RegisterField<
1,
0x1,
1,
0,
adlimchsr0::Limchf1,
adlimchsr0::Limchf1,
Adlimchsr0_SPEC,
crate::common::R,
> {
crate::common::RegisterField::<
1,
0x1,
1,
0,
adlimchsr0::Limchf1,
adlimchsr0::Limchf1,
Adlimchsr0_SPEC,
crate::common::R,
>::from_register(self, 0)
}
#[doc = "Analog Channel n: Limiter Clip Flag"]
#[inline(always)]
pub fn limchf2(
self,
) -> crate::common::RegisterField<
2,
0x1,
1,
0,
adlimchsr0::Limchf2,
adlimchsr0::Limchf2,
Adlimchsr0_SPEC,
crate::common::R,
> {
crate::common::RegisterField::<
2,
0x1,
1,
0,
adlimchsr0::Limchf2,
adlimchsr0::Limchf2,
Adlimchsr0_SPEC,
crate::common::R,
>::from_register(self, 0)
}
#[doc = "Analog Channel n: Limiter Clip Flag"]
#[inline(always)]
pub fn limchf3(
self,
) -> crate::common::RegisterField<
3,
0x1,
1,
0,
adlimchsr0::Limchf3,
adlimchsr0::Limchf3,
Adlimchsr0_SPEC,
crate::common::R,
> {
crate::common::RegisterField::<
3,
0x1,
1,
0,
adlimchsr0::Limchf3,
adlimchsr0::Limchf3,
Adlimchsr0_SPEC,
crate::common::R,
>::from_register(self, 0)
}
#[doc = "Analog Channel n: Limiter Clip Flag"]
#[inline(always)]
pub fn limchf4(
self,
) -> crate::common::RegisterField<
4,
0x1,
1,
0,
adlimchsr0::Limchf4,
adlimchsr0::Limchf4,
Adlimchsr0_SPEC,
crate::common::R,
> {
crate::common::RegisterField::<
4,
0x1,
1,
0,
adlimchsr0::Limchf4,
adlimchsr0::Limchf4,
Adlimchsr0_SPEC,
crate::common::R,
>::from_register(self, 0)
}
#[doc = "Analog Channel n: Limiter Clip Flag"]
#[inline(always)]
pub fn limchf5(
self,
) -> crate::common::RegisterField<
5,
0x1,
1,
0,
adlimchsr0::Limchf5,
adlimchsr0::Limchf5,
Adlimchsr0_SPEC,
crate::common::R,
> {
crate::common::RegisterField::<
5,
0x1,
1,
0,
adlimchsr0::Limchf5,
adlimchsr0::Limchf5,
Adlimchsr0_SPEC,
crate::common::R,
>::from_register(self, 0)
}
#[doc = "Analog Channel n: Limiter Clip Flag"]
#[inline(always)]
pub fn limchf6(
self,
) -> crate::common::RegisterField<
6,
0x1,
1,
0,
adlimchsr0::Limchf6,
adlimchsr0::Limchf6,
Adlimchsr0_SPEC,
crate::common::R,
> {
crate::common::RegisterField::<
6,
0x1,
1,
0,
adlimchsr0::Limchf6,
adlimchsr0::Limchf6,
Adlimchsr0_SPEC,
crate::common::R,
>::from_register(self, 0)
}
#[doc = "Analog Channel n: Limiter Clip Flag"]
#[inline(always)]
pub fn limchf7(
self,
) -> crate::common::RegisterField<
7,
0x1,
1,
0,
adlimchsr0::Limchf7,
adlimchsr0::Limchf7,
Adlimchsr0_SPEC,
crate::common::R,
> {
crate::common::RegisterField::<
7,
0x1,
1,
0,
adlimchsr0::Limchf7,
adlimchsr0::Limchf7,
Adlimchsr0_SPEC,
crate::common::R,
>::from_register(self, 0)
}
#[doc = "Analog Channel n: Limiter Clip Flag"]
#[inline(always)]
pub fn limchf8(
self,
) -> crate::common::RegisterField<
8,
0x1,
1,
0,
adlimchsr0::Limchf8,
adlimchsr0::Limchf8,
Adlimchsr0_SPEC,
crate::common::R,
> {
crate::common::RegisterField::<
8,
0x1,
1,
0,
adlimchsr0::Limchf8,
adlimchsr0::Limchf8,
Adlimchsr0_SPEC,
crate::common::R,
>::from_register(self, 0)
}
#[doc = "Analog Channel n: Limiter Clip Flag"]
#[inline(always)]
pub fn limchf9(
self,
) -> crate::common::RegisterField<
9,
0x1,
1,
0,
adlimchsr0::Limchf9,
adlimchsr0::Limchf9,
Adlimchsr0_SPEC,
crate::common::R,
> {
crate::common::RegisterField::<
9,
0x1,
1,
0,
adlimchsr0::Limchf9,
adlimchsr0::Limchf9,
Adlimchsr0_SPEC,
crate::common::R,
>::from_register(self, 0)
}
#[doc = "Analog Channel n: Limiter Clip Flag"]
#[inline(always)]
pub fn limchf10(
self,
) -> crate::common::RegisterField<
10,
0x1,
1,
0,
adlimchsr0::Limchf10,
adlimchsr0::Limchf10,
Adlimchsr0_SPEC,
crate::common::R,
> {
crate::common::RegisterField::<
10,
0x1,
1,
0,
adlimchsr0::Limchf10,
adlimchsr0::Limchf10,
Adlimchsr0_SPEC,
crate::common::R,
>::from_register(self, 0)
}
#[doc = "Analog Channel n: Limiter Clip Flag"]
#[inline(always)]
pub fn limchf11(
self,
) -> crate::common::RegisterField<
11,
0x1,
1,
0,
adlimchsr0::Limchf11,
adlimchsr0::Limchf11,
Adlimchsr0_SPEC,
crate::common::R,
> {
crate::common::RegisterField::<
11,
0x1,
1,
0,
adlimchsr0::Limchf11,
adlimchsr0::Limchf11,
Adlimchsr0_SPEC,
crate::common::R,
>::from_register(self, 0)
}
#[doc = "Analog Channel n: Limiter Clip Flag"]
#[inline(always)]
pub fn limchf12(
self,
) -> crate::common::RegisterField<
12,
0x1,
1,
0,
adlimchsr0::Limchf12,
adlimchsr0::Limchf12,
Adlimchsr0_SPEC,
crate::common::R,
> {
crate::common::RegisterField::<
12,
0x1,
1,
0,
adlimchsr0::Limchf12,
adlimchsr0::Limchf12,
Adlimchsr0_SPEC,
crate::common::R,
>::from_register(self, 0)
}
#[doc = "Analog Channel n: Limiter Clip Flag"]
#[inline(always)]
pub fn limchf13(
self,
) -> crate::common::RegisterField<
13,
0x1,
1,
0,
adlimchsr0::Limchf13,
adlimchsr0::Limchf13,
Adlimchsr0_SPEC,
crate::common::R,
> {
crate::common::RegisterField::<
13,
0x1,
1,
0,
adlimchsr0::Limchf13,
adlimchsr0::Limchf13,
Adlimchsr0_SPEC,
crate::common::R,
>::from_register(self, 0)
}
#[doc = "Analog Channel n: Limiter Clip Flag"]
#[inline(always)]
pub fn limchf14(
self,
) -> crate::common::RegisterField<
14,
0x1,
1,
0,
adlimchsr0::Limchf14,
adlimchsr0::Limchf14,
Adlimchsr0_SPEC,
crate::common::R,
> {
crate::common::RegisterField::<
14,
0x1,
1,
0,
adlimchsr0::Limchf14,
adlimchsr0::Limchf14,
Adlimchsr0_SPEC,
crate::common::R,
>::from_register(self, 0)
}
#[doc = "Analog Channel n: Limiter Clip Flag"]
#[inline(always)]
pub fn limchf15(
self,
) -> crate::common::RegisterField<
15,
0x1,
1,
0,
adlimchsr0::Limchf15,
adlimchsr0::Limchf15,
Adlimchsr0_SPEC,
crate::common::R,
> {
crate::common::RegisterField::<
15,
0x1,
1,
0,
adlimchsr0::Limchf15,
adlimchsr0::Limchf15,
Adlimchsr0_SPEC,
crate::common::R,
>::from_register(self, 0)
}
#[doc = "Analog Channel n: Limiter Clip Flag"]
#[inline(always)]
pub fn limchf16(
self,
) -> crate::common::RegisterField<
16,
0x1,
1,
0,
adlimchsr0::Limchf16,
adlimchsr0::Limchf16,
Adlimchsr0_SPEC,
crate::common::R,
> {
crate::common::RegisterField::<
16,
0x1,
1,
0,
adlimchsr0::Limchf16,
adlimchsr0::Limchf16,
Adlimchsr0_SPEC,
crate::common::R,
>::from_register(self, 0)
}
#[doc = "Analog Channel n: Limiter Clip Flag"]
#[inline(always)]
pub fn limchf17(
self,
) -> crate::common::RegisterField<
17,
0x1,
1,
0,
adlimchsr0::Limchf17,
adlimchsr0::Limchf17,
Adlimchsr0_SPEC,
crate::common::R,
> {
crate::common::RegisterField::<
17,
0x1,
1,
0,
adlimchsr0::Limchf17,
adlimchsr0::Limchf17,
Adlimchsr0_SPEC,
crate::common::R,
>::from_register(self, 0)
}
#[doc = "Analog Channel n: Limiter Clip Flag"]
#[inline(always)]
pub fn limchf18(
self,
) -> crate::common::RegisterField<
18,
0x1,
1,
0,
adlimchsr0::Limchf18,
adlimchsr0::Limchf18,
Adlimchsr0_SPEC,
crate::common::R,
> {
crate::common::RegisterField::<
18,
0x1,
1,
0,
adlimchsr0::Limchf18,
adlimchsr0::Limchf18,
Adlimchsr0_SPEC,
crate::common::R,
>::from_register(self, 0)
}
#[doc = "Analog Channel n: Limiter Clip Flag"]
#[inline(always)]
pub fn limchf19(
self,
) -> crate::common::RegisterField<
19,
0x1,
1,
0,
adlimchsr0::Limchf19,
adlimchsr0::Limchf19,
Adlimchsr0_SPEC,
crate::common::R,
> {
crate::common::RegisterField::<
19,
0x1,
1,
0,
adlimchsr0::Limchf19,
adlimchsr0::Limchf19,
Adlimchsr0_SPEC,
crate::common::R,
>::from_register(self, 0)
}
#[doc = "Analog Channel n: Limiter Clip Flag"]
#[inline(always)]
pub fn limchf20(
self,
) -> crate::common::RegisterField<
20,
0x1,
1,
0,
adlimchsr0::Limchf20,
adlimchsr0::Limchf20,
Adlimchsr0_SPEC,
crate::common::R,
> {
crate::common::RegisterField::<
20,
0x1,
1,
0,
adlimchsr0::Limchf20,
adlimchsr0::Limchf20,
Adlimchsr0_SPEC,
crate::common::R,
>::from_register(self, 0)
}
#[doc = "Analog Channel n: Limiter Clip Flag"]
#[inline(always)]
pub fn limchf21(
self,
) -> crate::common::RegisterField<
21,
0x1,
1,
0,
adlimchsr0::Limchf21,
adlimchsr0::Limchf21,
Adlimchsr0_SPEC,
crate::common::R,
> {
crate::common::RegisterField::<
21,
0x1,
1,
0,
adlimchsr0::Limchf21,
adlimchsr0::Limchf21,
Adlimchsr0_SPEC,
crate::common::R,
>::from_register(self, 0)
}
#[doc = "Analog Channel n: Limiter Clip Flag"]
#[inline(always)]
pub fn limchf22(
self,
) -> crate::common::RegisterField<
22,
0x1,
1,
0,
adlimchsr0::Limchf22,
adlimchsr0::Limchf22,
Adlimchsr0_SPEC,
crate::common::R,
> {
crate::common::RegisterField::<
22,
0x1,
1,
0,
adlimchsr0::Limchf22,
adlimchsr0::Limchf22,
Adlimchsr0_SPEC,
crate::common::R,
>::from_register(self, 0)
}
}
impl ::core::default::Default for Adlimchsr0 {
#[inline(always)]
fn default() -> Adlimchsr0 {
<crate::RegValueT<Adlimchsr0_SPEC> as RegisterValue<_>>::new(0)
}
}
pub mod adlimchsr0 {
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Limchf0_SPEC;
pub type Limchf0 = crate::EnumBitfieldStruct<u8, Limchf0_SPEC>;
impl Limchf0 {
#[doc = "Limiter clip is not detected"]
pub const _0: Self = Self::new(0);
#[doc = "Limiter clip is detected"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Limchf1_SPEC;
pub type Limchf1 = crate::EnumBitfieldStruct<u8, Limchf1_SPEC>;
impl Limchf1 {
#[doc = "Limiter clip is not detected"]
pub const _0: Self = Self::new(0);
#[doc = "Limiter clip is detected"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Limchf2_SPEC;
pub type Limchf2 = crate::EnumBitfieldStruct<u8, Limchf2_SPEC>;
impl Limchf2 {
#[doc = "Limiter clip is not detected"]
pub const _0: Self = Self::new(0);
#[doc = "Limiter clip is detected"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Limchf3_SPEC;
pub type Limchf3 = crate::EnumBitfieldStruct<u8, Limchf3_SPEC>;
impl Limchf3 {
#[doc = "Limiter clip is not detected"]
pub const _0: Self = Self::new(0);
#[doc = "Limiter clip is detected"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Limchf4_SPEC;
pub type Limchf4 = crate::EnumBitfieldStruct<u8, Limchf4_SPEC>;
impl Limchf4 {
#[doc = "Limiter clip is not detected"]
pub const _0: Self = Self::new(0);
#[doc = "Limiter clip is detected"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Limchf5_SPEC;
pub type Limchf5 = crate::EnumBitfieldStruct<u8, Limchf5_SPEC>;
impl Limchf5 {
#[doc = "Limiter clip is not detected"]
pub const _0: Self = Self::new(0);
#[doc = "Limiter clip is detected"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Limchf6_SPEC;
pub type Limchf6 = crate::EnumBitfieldStruct<u8, Limchf6_SPEC>;
impl Limchf6 {
#[doc = "Limiter clip is not detected"]
pub const _0: Self = Self::new(0);
#[doc = "Limiter clip is detected"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Limchf7_SPEC;
pub type Limchf7 = crate::EnumBitfieldStruct<u8, Limchf7_SPEC>;
impl Limchf7 {
#[doc = "Limiter clip is not detected"]
pub const _0: Self = Self::new(0);
#[doc = "Limiter clip is detected"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Limchf8_SPEC;
pub type Limchf8 = crate::EnumBitfieldStruct<u8, Limchf8_SPEC>;
impl Limchf8 {
#[doc = "Limiter clip is not detected"]
pub const _0: Self = Self::new(0);
#[doc = "Limiter clip is detected"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Limchf9_SPEC;
pub type Limchf9 = crate::EnumBitfieldStruct<u8, Limchf9_SPEC>;
impl Limchf9 {
#[doc = "Limiter clip is not detected"]
pub const _0: Self = Self::new(0);
#[doc = "Limiter clip is detected"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Limchf10_SPEC;
pub type Limchf10 = crate::EnumBitfieldStruct<u8, Limchf10_SPEC>;
impl Limchf10 {
#[doc = "Limiter clip is not detected"]
pub const _0: Self = Self::new(0);
#[doc = "Limiter clip is detected"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Limchf11_SPEC;
pub type Limchf11 = crate::EnumBitfieldStruct<u8, Limchf11_SPEC>;
impl Limchf11 {
#[doc = "Limiter clip is not detected"]
pub const _0: Self = Self::new(0);
#[doc = "Limiter clip is detected"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Limchf12_SPEC;
pub type Limchf12 = crate::EnumBitfieldStruct<u8, Limchf12_SPEC>;
impl Limchf12 {
#[doc = "Limiter clip is not detected"]
pub const _0: Self = Self::new(0);
#[doc = "Limiter clip is detected"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Limchf13_SPEC;
pub type Limchf13 = crate::EnumBitfieldStruct<u8, Limchf13_SPEC>;
impl Limchf13 {
#[doc = "Limiter clip is not detected"]
pub const _0: Self = Self::new(0);
#[doc = "Limiter clip is detected"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Limchf14_SPEC;
pub type Limchf14 = crate::EnumBitfieldStruct<u8, Limchf14_SPEC>;
impl Limchf14 {
#[doc = "Limiter clip is not detected"]
pub const _0: Self = Self::new(0);
#[doc = "Limiter clip is detected"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Limchf15_SPEC;
pub type Limchf15 = crate::EnumBitfieldStruct<u8, Limchf15_SPEC>;
impl Limchf15 {
#[doc = "Limiter clip is not detected"]
pub const _0: Self = Self::new(0);
#[doc = "Limiter clip is detected"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Limchf16_SPEC;
pub type Limchf16 = crate::EnumBitfieldStruct<u8, Limchf16_SPEC>;
impl Limchf16 {
#[doc = "Limiter clip is not detected"]
pub const _0: Self = Self::new(0);
#[doc = "Limiter clip is detected"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Limchf17_SPEC;
pub type Limchf17 = crate::EnumBitfieldStruct<u8, Limchf17_SPEC>;
impl Limchf17 {
#[doc = "Limiter clip is not detected"]
pub const _0: Self = Self::new(0);
#[doc = "Limiter clip is detected"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Limchf18_SPEC;
pub type Limchf18 = crate::EnumBitfieldStruct<u8, Limchf18_SPEC>;
impl Limchf18 {
#[doc = "Limiter clip is not detected"]
pub const _0: Self = Self::new(0);
#[doc = "Limiter clip is detected"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Limchf19_SPEC;
pub type Limchf19 = crate::EnumBitfieldStruct<u8, Limchf19_SPEC>;
impl Limchf19 {
#[doc = "Limiter clip is not detected"]
pub const _0: Self = Self::new(0);
#[doc = "Limiter clip is detected"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Limchf20_SPEC;
pub type Limchf20 = crate::EnumBitfieldStruct<u8, Limchf20_SPEC>;
impl Limchf20 {
#[doc = "Limiter clip is not detected"]
pub const _0: Self = Self::new(0);
#[doc = "Limiter clip is detected"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Limchf21_SPEC;
pub type Limchf21 = crate::EnumBitfieldStruct<u8, Limchf21_SPEC>;
impl Limchf21 {
#[doc = "Limiter clip is not detected"]
pub const _0: Self = Self::new(0);
#[doc = "Limiter clip is detected"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Limchf22_SPEC;
pub type Limchf22 = crate::EnumBitfieldStruct<u8, Limchf22_SPEC>;
impl Limchf22 {
#[doc = "Limiter clip is not detected"]
pub const _0: Self = Self::new(0);
#[doc = "Limiter clip is detected"]
pub const _1: Self = Self::new(1);
}
}
#[doc(hidden)]
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct Adlimexsr_SPEC;
impl crate::sealed::RegSpec for Adlimexsr_SPEC {
type DataType = u32;
}
#[doc = "Extended Analog Limiter Clip Status Register"]
pub type Adlimexsr = crate::RegValueT<Adlimexsr_SPEC>;
impl Adlimexsr {
#[doc = "Self-diagnosis Channel for A/D unit 0: Limiter Clip Flag"]
#[inline(always)]
pub fn limexf0(
self,
) -> crate::common::RegisterField<
0,
0x1,
1,
0,
adlimexsr::Limexf0,
adlimexsr::Limexf0,
Adlimexsr_SPEC,
crate::common::R,
> {
crate::common::RegisterField::<
0,
0x1,
1,
0,
adlimexsr::Limexf0,
adlimexsr::Limexf0,
Adlimexsr_SPEC,
crate::common::R,
>::from_register(self, 0)
}
#[doc = "Temperature Sensor Channel for A/D unit 1: Limiter Clip Flag"]
#[inline(always)]
pub fn limexf1(
self,
) -> crate::common::RegisterField<
1,
0x1,
1,
0,
adlimexsr::Limexf1,
adlimexsr::Limexf1,
Adlimexsr_SPEC,
crate::common::R,
> {
crate::common::RegisterField::<
1,
0x1,
1,
0,
adlimexsr::Limexf1,
adlimexsr::Limexf1,
Adlimexsr_SPEC,
crate::common::R,
>::from_register(self, 0)
}
#[doc = "Temperature Sensor Channel: Limiter Clip Flag"]
#[inline(always)]
pub fn limexf4(
self,
) -> crate::common::RegisterField<
4,
0x1,
1,
0,
adlimexsr::Limexf4,
adlimexsr::Limexf4,
Adlimexsr_SPEC,
crate::common::R,
> {
crate::common::RegisterField::<
4,
0x1,
1,
0,
adlimexsr::Limexf4,
adlimexsr::Limexf4,
Adlimexsr_SPEC,
crate::common::R,
>::from_register(self, 0)
}
#[doc = "Internal Reference Voltage Channel: Limiter Clip Flag"]
#[inline(always)]
pub fn limexf5(
self,
) -> crate::common::RegisterField<
5,
0x1,
1,
0,
adlimexsr::Limexf5,
adlimexsr::Limexf5,
Adlimexsr_SPEC,
crate::common::R,
> {
crate::common::RegisterField::<
5,
0x1,
1,
0,
adlimexsr::Limexf5,
adlimexsr::Limexf5,
Adlimexsr_SPEC,
crate::common::R,
>::from_register(self, 0)
}
#[doc = "VBATT 1/6 voltage monitor output Channel: Limiter Clip Flag"]
#[inline(always)]
pub fn limexf6(
self,
) -> crate::common::RegisterField<
6,
0x1,
1,
0,
adlimexsr::Limexf6,
adlimexsr::Limexf6,
Adlimexsr_SPEC,
crate::common::R,
> {
crate::common::RegisterField::<
6,
0x1,
1,
0,
adlimexsr::Limexf6,
adlimexsr::Limexf6,
Adlimexsr_SPEC,
crate::common::R,
>::from_register(self, 0)
}
#[doc = "D/A Converter 0 Channel: Limiter Clip Flag"]
#[inline(always)]
pub fn limexf8(
self,
) -> crate::common::RegisterField<
8,
0x1,
1,
0,
adlimexsr::Limexf8,
adlimexsr::Limexf8,
Adlimexsr_SPEC,
crate::common::R,
> {
crate::common::RegisterField::<
8,
0x1,
1,
0,
adlimexsr::Limexf8,
adlimexsr::Limexf8,
Adlimexsr_SPEC,
crate::common::R,
>::from_register(self, 0)
}
#[doc = "D/A Converter 1 Channel: Limiter Clip Flag"]
#[inline(always)]
pub fn limexf9(
self,
) -> crate::common::RegisterField<
9,
0x1,
1,
0,
adlimexsr::Limexf9,
adlimexsr::Limexf9,
Adlimexsr_SPEC,
crate::common::R,
> {
crate::common::RegisterField::<
9,
0x1,
1,
0,
adlimexsr::Limexf9,
adlimexsr::Limexf9,
Adlimexsr_SPEC,
crate::common::R,
>::from_register(self, 0)
}
#[doc = "Self-diagnosis Channel for Sample-and-hold curcuit unit0: Limiter Clip Flag"]
#[inline(always)]
pub fn limexf16(
self,
) -> crate::common::RegisterField<
16,
0x1,
1,
0,
adlimexsr::Limexf16,
adlimexsr::Limexf16,
Adlimexsr_SPEC,
crate::common::R,
> {
crate::common::RegisterField::<
16,
0x1,
1,
0,
adlimexsr::Limexf16,
adlimexsr::Limexf16,
Adlimexsr_SPEC,
crate::common::R,
>::from_register(self, 0)
}
#[doc = "Self-diagnosis Channel for Sample-and-hold curcuit unit1: Limiter Clip Flag"]
#[inline(always)]
pub fn limexf17(
self,
) -> crate::common::RegisterField<
17,
0x1,
1,
0,
adlimexsr::Limexf17,
adlimexsr::Limexf17,
Adlimexsr_SPEC,
crate::common::R,
> {
crate::common::RegisterField::<
17,
0x1,
1,
0,
adlimexsr::Limexf17,
adlimexsr::Limexf17,
Adlimexsr_SPEC,
crate::common::R,
>::from_register(self, 0)
}
#[doc = "Self-diagnosis Channel for Sample-and-hold curcuit unit2: Limiter Clip Flag"]
#[inline(always)]
pub fn limexf18(
self,
) -> crate::common::RegisterField<
18,
0x1,
1,
0,
adlimexsr::Limexf18,
adlimexsr::Limexf18,
Adlimexsr_SPEC,
crate::common::R,
> {
crate::common::RegisterField::<
18,
0x1,
1,
0,
adlimexsr::Limexf18,
adlimexsr::Limexf18,
Adlimexsr_SPEC,
crate::common::R,
>::from_register(self, 0)
}
#[doc = "Self-diagnosis Channel for Sample-and-hold curcuit unit4: Limiter Clip Flag"]
#[inline(always)]
pub fn limexf20(
self,
) -> crate::common::RegisterField<
20,
0x1,
1,
0,
adlimexsr::Limexf20,
adlimexsr::Limexf20,
Adlimexsr_SPEC,
crate::common::R,
> {
crate::common::RegisterField::<
20,
0x1,
1,
0,
adlimexsr::Limexf20,
adlimexsr::Limexf20,
Adlimexsr_SPEC,
crate::common::R,
>::from_register(self, 0)
}
#[doc = "Self-diagnosis Channel for Sample-and-hold curcuit unit5: Limiter Clip Flag"]
#[inline(always)]
pub fn limexf21(
self,
) -> crate::common::RegisterField<
21,
0x1,
1,
0,
adlimexsr::Limexf21,
adlimexsr::Limexf21,
Adlimexsr_SPEC,
crate::common::R,
> {
crate::common::RegisterField::<
21,
0x1,
1,
0,
adlimexsr::Limexf21,
adlimexsr::Limexf21,
Adlimexsr_SPEC,
crate::common::R,
>::from_register(self, 0)
}
#[doc = "Self-diagnosis Channel for Sample-and-hold curcuit unit6: Limiter Clip Flag"]
#[inline(always)]
pub fn limexf22(
self,
) -> crate::common::RegisterField<
22,
0x1,
1,
0,
adlimexsr::Limexf22,
adlimexsr::Limexf22,
Adlimexsr_SPEC,
crate::common::R,
> {
crate::common::RegisterField::<
22,
0x1,
1,
0,
adlimexsr::Limexf22,
adlimexsr::Limexf22,
Adlimexsr_SPEC,
crate::common::R,
>::from_register(self, 0)
}
}
impl ::core::default::Default for Adlimexsr {
#[inline(always)]
fn default() -> Adlimexsr {
<crate::RegValueT<Adlimexsr_SPEC> as RegisterValue<_>>::new(0)
}
}
pub mod adlimexsr {
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Limexf0_SPEC;
pub type Limexf0 = crate::EnumBitfieldStruct<u8, Limexf0_SPEC>;
impl Limexf0 {
#[doc = "Limiter clip is not detected"]
pub const _0: Self = Self::new(0);
#[doc = "Limiter clip is detected"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Limexf1_SPEC;
pub type Limexf1 = crate::EnumBitfieldStruct<u8, Limexf1_SPEC>;
impl Limexf1 {
#[doc = "Limiter clip is not detected"]
pub const _0: Self = Self::new(0);
#[doc = "Limiter clip is detected"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Limexf4_SPEC;
pub type Limexf4 = crate::EnumBitfieldStruct<u8, Limexf4_SPEC>;
impl Limexf4 {
#[doc = "Limiter clip is not detected"]
pub const _0: Self = Self::new(0);
#[doc = "Limiter clip is detected"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Limexf5_SPEC;
pub type Limexf5 = crate::EnumBitfieldStruct<u8, Limexf5_SPEC>;
impl Limexf5 {
#[doc = "Limiter clip is not detected"]
pub const _0: Self = Self::new(0);
#[doc = "Limiter clip is detected"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Limexf6_SPEC;
pub type Limexf6 = crate::EnumBitfieldStruct<u8, Limexf6_SPEC>;
impl Limexf6 {
#[doc = "Limiter clip is not detected"]
pub const _0: Self = Self::new(0);
#[doc = "Limiter clip is detected"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Limexf8_SPEC;
pub type Limexf8 = crate::EnumBitfieldStruct<u8, Limexf8_SPEC>;
impl Limexf8 {
#[doc = "Limiter clip is not detected"]
pub const _0: Self = Self::new(0);
#[doc = "Limiter clip is detected"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Limexf9_SPEC;
pub type Limexf9 = crate::EnumBitfieldStruct<u8, Limexf9_SPEC>;
impl Limexf9 {
#[doc = "Limiter clip is not detected"]
pub const _0: Self = Self::new(0);
#[doc = "Limiter clip is detected"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Limexf16_SPEC;
pub type Limexf16 = crate::EnumBitfieldStruct<u8, Limexf16_SPEC>;
impl Limexf16 {
#[doc = "Limiter clip is not detected"]
pub const _0: Self = Self::new(0);
#[doc = "Limiter clip is detected"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Limexf17_SPEC;
pub type Limexf17 = crate::EnumBitfieldStruct<u8, Limexf17_SPEC>;
impl Limexf17 {
#[doc = "Limiter clip is not detected"]
pub const _0: Self = Self::new(0);
#[doc = "Limiter clip is detected"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Limexf18_SPEC;
pub type Limexf18 = crate::EnumBitfieldStruct<u8, Limexf18_SPEC>;
impl Limexf18 {
#[doc = "Limiter clip is not detected"]
pub const _0: Self = Self::new(0);
#[doc = "Limiter clip is detected"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Limexf20_SPEC;
pub type Limexf20 = crate::EnumBitfieldStruct<u8, Limexf20_SPEC>;
impl Limexf20 {
#[doc = "Limiter clip is not detected"]
pub const _0: Self = Self::new(0);
#[doc = "Limiter clip is detected"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Limexf21_SPEC;
pub type Limexf21 = crate::EnumBitfieldStruct<u8, Limexf21_SPEC>;
impl Limexf21 {
#[doc = "Limiter clip is not detected"]
pub const _0: Self = Self::new(0);
#[doc = "Limiter clip is detected"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Limexf22_SPEC;
pub type Limexf22 = crate::EnumBitfieldStruct<u8, Limexf22_SPEC>;
impl Limexf22 {
#[doc = "Limiter clip is not detected"]
pub const _0: Self = Self::new(0);
#[doc = "Limiter clip is detected"]
pub const _1: Self = Self::new(1);
}
}
#[doc(hidden)]
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct Adlimgrscr_SPEC;
impl crate::sealed::RegSpec for Adlimgrscr_SPEC {
type DataType = u32;
}
#[doc = "Limiter Clip Scan Group Status Clear Register"]
pub type Adlimgrscr = crate::RegValueT<Adlimgrscr_SPEC>;
impl Adlimgrscr {
#[doc = "Scan Group n Limiter Clip Flag Clear"]
#[inline(always)]
pub fn limgrc0(
self,
) -> crate::common::RegisterField<
0,
0x1,
1,
0,
adlimgrscr::Limgrc0,
adlimgrscr::Limgrc0,
Adlimgrscr_SPEC,
crate::common::W,
> {
crate::common::RegisterField::<
0,
0x1,
1,
0,
adlimgrscr::Limgrc0,
adlimgrscr::Limgrc0,
Adlimgrscr_SPEC,
crate::common::W,
>::from_register(self, 0)
}
#[doc = "Scan Group n Limiter Clip Flag Clear"]
#[inline(always)]
pub fn limgrc1(
self,
) -> crate::common::RegisterField<
1,
0x1,
1,
0,
adlimgrscr::Limgrc1,
adlimgrscr::Limgrc1,
Adlimgrscr_SPEC,
crate::common::W,
> {
crate::common::RegisterField::<
1,
0x1,
1,
0,
adlimgrscr::Limgrc1,
adlimgrscr::Limgrc1,
Adlimgrscr_SPEC,
crate::common::W,
>::from_register(self, 0)
}
#[doc = "Scan Group n Limiter Clip Flag Clear"]
#[inline(always)]
pub fn limgrc2(
self,
) -> crate::common::RegisterField<
2,
0x1,
1,
0,
adlimgrscr::Limgrc2,
adlimgrscr::Limgrc2,
Adlimgrscr_SPEC,
crate::common::W,
> {
crate::common::RegisterField::<
2,
0x1,
1,
0,
adlimgrscr::Limgrc2,
adlimgrscr::Limgrc2,
Adlimgrscr_SPEC,
crate::common::W,
>::from_register(self, 0)
}
#[doc = "Scan Group n Limiter Clip Flag Clear"]
#[inline(always)]
pub fn limgrc3(
self,
) -> crate::common::RegisterField<
3,
0x1,
1,
0,
adlimgrscr::Limgrc3,
adlimgrscr::Limgrc3,
Adlimgrscr_SPEC,
crate::common::W,
> {
crate::common::RegisterField::<
3,
0x1,
1,
0,
adlimgrscr::Limgrc3,
adlimgrscr::Limgrc3,
Adlimgrscr_SPEC,
crate::common::W,
>::from_register(self, 0)
}
#[doc = "Scan Group n Limiter Clip Flag Clear"]
#[inline(always)]
pub fn limgrc4(
self,
) -> crate::common::RegisterField<
4,
0x1,
1,
0,
adlimgrscr::Limgrc4,
adlimgrscr::Limgrc4,
Adlimgrscr_SPEC,
crate::common::W,
> {
crate::common::RegisterField::<
4,
0x1,
1,
0,
adlimgrscr::Limgrc4,
adlimgrscr::Limgrc4,
Adlimgrscr_SPEC,
crate::common::W,
>::from_register(self, 0)
}
#[doc = "Scan Group n Limiter Clip Flag Clear"]
#[inline(always)]
pub fn limgrc5(
self,
) -> crate::common::RegisterField<
5,
0x1,
1,
0,
adlimgrscr::Limgrc5,
adlimgrscr::Limgrc5,
Adlimgrscr_SPEC,
crate::common::W,
> {
crate::common::RegisterField::<
5,
0x1,
1,
0,
adlimgrscr::Limgrc5,
adlimgrscr::Limgrc5,
Adlimgrscr_SPEC,
crate::common::W,
>::from_register(self, 0)
}
#[doc = "Scan Group n Limiter Clip Flag Clear"]
#[inline(always)]
pub fn limgrc6(
self,
) -> crate::common::RegisterField<
6,
0x1,
1,
0,
adlimgrscr::Limgrc6,
adlimgrscr::Limgrc6,
Adlimgrscr_SPEC,
crate::common::W,
> {
crate::common::RegisterField::<
6,
0x1,
1,
0,
adlimgrscr::Limgrc6,
adlimgrscr::Limgrc6,
Adlimgrscr_SPEC,
crate::common::W,
>::from_register(self, 0)
}
#[doc = "Scan Group n Limiter Clip Flag Clear"]
#[inline(always)]
pub fn limgrc7(
self,
) -> crate::common::RegisterField<
7,
0x1,
1,
0,
adlimgrscr::Limgrc7,
adlimgrscr::Limgrc7,
Adlimgrscr_SPEC,
crate::common::W,
> {
crate::common::RegisterField::<
7,
0x1,
1,
0,
adlimgrscr::Limgrc7,
adlimgrscr::Limgrc7,
Adlimgrscr_SPEC,
crate::common::W,
>::from_register(self, 0)
}
#[doc = "Scan Group n Limiter Clip Flag Clear"]
#[inline(always)]
pub fn limgrc8(
self,
) -> crate::common::RegisterField<
8,
0x1,
1,
0,
adlimgrscr::Limgrc8,
adlimgrscr::Limgrc8,
Adlimgrscr_SPEC,
crate::common::W,
> {
crate::common::RegisterField::<
8,
0x1,
1,
0,
adlimgrscr::Limgrc8,
adlimgrscr::Limgrc8,
Adlimgrscr_SPEC,
crate::common::W,
>::from_register(self, 0)
}
}
impl ::core::default::Default for Adlimgrscr {
#[inline(always)]
fn default() -> Adlimgrscr {
<crate::RegValueT<Adlimgrscr_SPEC> as RegisterValue<_>>::new(0)
}
}
pub mod adlimgrscr {
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Limgrc0_SPEC;
pub type Limgrc0 = crate::EnumBitfieldStruct<u8, Limgrc0_SPEC>;
impl Limgrc0 {
#[doc = "No effect"]
pub const _0: Self = Self::new(0);
#[doc = "ADLIMGRSR.LIMGRFn is cleared"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Limgrc1_SPEC;
pub type Limgrc1 = crate::EnumBitfieldStruct<u8, Limgrc1_SPEC>;
impl Limgrc1 {
#[doc = "No effect"]
pub const _0: Self = Self::new(0);
#[doc = "ADLIMGRSR.LIMGRFn is cleared"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Limgrc2_SPEC;
pub type Limgrc2 = crate::EnumBitfieldStruct<u8, Limgrc2_SPEC>;
impl Limgrc2 {
#[doc = "No effect"]
pub const _0: Self = Self::new(0);
#[doc = "ADLIMGRSR.LIMGRFn is cleared"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Limgrc3_SPEC;
pub type Limgrc3 = crate::EnumBitfieldStruct<u8, Limgrc3_SPEC>;
impl Limgrc3 {
#[doc = "No effect"]
pub const _0: Self = Self::new(0);
#[doc = "ADLIMGRSR.LIMGRFn is cleared"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Limgrc4_SPEC;
pub type Limgrc4 = crate::EnumBitfieldStruct<u8, Limgrc4_SPEC>;
impl Limgrc4 {
#[doc = "No effect"]
pub const _0: Self = Self::new(0);
#[doc = "ADLIMGRSR.LIMGRFn is cleared"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Limgrc5_SPEC;
pub type Limgrc5 = crate::EnumBitfieldStruct<u8, Limgrc5_SPEC>;
impl Limgrc5 {
#[doc = "No effect"]
pub const _0: Self = Self::new(0);
#[doc = "ADLIMGRSR.LIMGRFn is cleared"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Limgrc6_SPEC;
pub type Limgrc6 = crate::EnumBitfieldStruct<u8, Limgrc6_SPEC>;
impl Limgrc6 {
#[doc = "No effect"]
pub const _0: Self = Self::new(0);
#[doc = "ADLIMGRSR.LIMGRFn is cleared"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Limgrc7_SPEC;
pub type Limgrc7 = crate::EnumBitfieldStruct<u8, Limgrc7_SPEC>;
impl Limgrc7 {
#[doc = "No effect"]
pub const _0: Self = Self::new(0);
#[doc = "ADLIMGRSR.LIMGRFn is cleared"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Limgrc8_SPEC;
pub type Limgrc8 = crate::EnumBitfieldStruct<u8, Limgrc8_SPEC>;
impl Limgrc8 {
#[doc = "No effect"]
pub const _0: Self = Self::new(0);
#[doc = "ADLIMGRSR.LIMGRFn is cleared"]
pub const _1: Self = Self::new(1);
}
}
#[doc(hidden)]
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct Adlimchscr0_SPEC;
impl crate::sealed::RegSpec for Adlimchscr0_SPEC {
type DataType = u32;
}
#[doc = "Limiter Clip Channel Status Clear Register 0"]
pub type Adlimchscr0 = crate::RegValueT<Adlimchscr0_SPEC>;
impl Adlimchscr0 {
#[doc = "Analog Channel n Limiter Clip Flag Clear bit"]
#[inline(always)]
pub fn limchc0(
self,
) -> crate::common::RegisterField<
0,
0x1,
1,
0,
adlimchscr0::Limchc0,
adlimchscr0::Limchc0,
Adlimchscr0_SPEC,
crate::common::W,
> {
crate::common::RegisterField::<
0,
0x1,
1,
0,
adlimchscr0::Limchc0,
adlimchscr0::Limchc0,
Adlimchscr0_SPEC,
crate::common::W,
>::from_register(self, 0)
}
#[doc = "Analog Channel n Limiter Clip Flag Clear bit"]
#[inline(always)]
pub fn limchc1(
self,
) -> crate::common::RegisterField<
1,
0x1,
1,
0,
adlimchscr0::Limchc1,
adlimchscr0::Limchc1,
Adlimchscr0_SPEC,
crate::common::W,
> {
crate::common::RegisterField::<
1,
0x1,
1,
0,
adlimchscr0::Limchc1,
adlimchscr0::Limchc1,
Adlimchscr0_SPEC,
crate::common::W,
>::from_register(self, 0)
}
#[doc = "Analog Channel n Limiter Clip Flag Clear bit"]
#[inline(always)]
pub fn limchc2(
self,
) -> crate::common::RegisterField<
2,
0x1,
1,
0,
adlimchscr0::Limchc2,
adlimchscr0::Limchc2,
Adlimchscr0_SPEC,
crate::common::W,
> {
crate::common::RegisterField::<
2,
0x1,
1,
0,
adlimchscr0::Limchc2,
adlimchscr0::Limchc2,
Adlimchscr0_SPEC,
crate::common::W,
>::from_register(self, 0)
}
#[doc = "Analog Channel n Limiter Clip Flag Clear bit"]
#[inline(always)]
pub fn limchc3(
self,
) -> crate::common::RegisterField<
3,
0x1,
1,
0,
adlimchscr0::Limchc3,
adlimchscr0::Limchc3,
Adlimchscr0_SPEC,
crate::common::W,
> {
crate::common::RegisterField::<
3,
0x1,
1,
0,
adlimchscr0::Limchc3,
adlimchscr0::Limchc3,
Adlimchscr0_SPEC,
crate::common::W,
>::from_register(self, 0)
}
#[doc = "Analog Channel n Limiter Clip Flag Clear bit"]
#[inline(always)]
pub fn limchc4(
self,
) -> crate::common::RegisterField<
4,
0x1,
1,
0,
adlimchscr0::Limchc4,
adlimchscr0::Limchc4,
Adlimchscr0_SPEC,
crate::common::W,
> {
crate::common::RegisterField::<
4,
0x1,
1,
0,
adlimchscr0::Limchc4,
adlimchscr0::Limchc4,
Adlimchscr0_SPEC,
crate::common::W,
>::from_register(self, 0)
}
#[doc = "Analog Channel n Limiter Clip Flag Clear bit"]
#[inline(always)]
pub fn limchc5(
self,
) -> crate::common::RegisterField<
5,
0x1,
1,
0,
adlimchscr0::Limchc5,
adlimchscr0::Limchc5,
Adlimchscr0_SPEC,
crate::common::W,
> {
crate::common::RegisterField::<
5,
0x1,
1,
0,
adlimchscr0::Limchc5,
adlimchscr0::Limchc5,
Adlimchscr0_SPEC,
crate::common::W,
>::from_register(self, 0)
}
#[doc = "Analog Channel n Limiter Clip Flag Clear bit"]
#[inline(always)]
pub fn limchc6(
self,
) -> crate::common::RegisterField<
6,
0x1,
1,
0,
adlimchscr0::Limchc6,
adlimchscr0::Limchc6,
Adlimchscr0_SPEC,
crate::common::W,
> {
crate::common::RegisterField::<
6,
0x1,
1,
0,
adlimchscr0::Limchc6,
adlimchscr0::Limchc6,
Adlimchscr0_SPEC,
crate::common::W,
>::from_register(self, 0)
}
#[doc = "Analog Channel n Limiter Clip Flag Clear bit"]
#[inline(always)]
pub fn limchc7(
self,
) -> crate::common::RegisterField<
7,
0x1,
1,
0,
adlimchscr0::Limchc7,
adlimchscr0::Limchc7,
Adlimchscr0_SPEC,
crate::common::W,
> {
crate::common::RegisterField::<
7,
0x1,
1,
0,
adlimchscr0::Limchc7,
adlimchscr0::Limchc7,
Adlimchscr0_SPEC,
crate::common::W,
>::from_register(self, 0)
}
#[doc = "Analog Channel n Limiter Clip Flag Clear bit"]
#[inline(always)]
pub fn limchc8(
self,
) -> crate::common::RegisterField<
8,
0x1,
1,
0,
adlimchscr0::Limchc8,
adlimchscr0::Limchc8,
Adlimchscr0_SPEC,
crate::common::W,
> {
crate::common::RegisterField::<
8,
0x1,
1,
0,
adlimchscr0::Limchc8,
adlimchscr0::Limchc8,
Adlimchscr0_SPEC,
crate::common::W,
>::from_register(self, 0)
}
#[doc = "Analog Channel n Limiter Clip Flag Clear bit"]
#[inline(always)]
pub fn limchc9(
self,
) -> crate::common::RegisterField<
9,
0x1,
1,
0,
adlimchscr0::Limchc9,
adlimchscr0::Limchc9,
Adlimchscr0_SPEC,
crate::common::W,
> {
crate::common::RegisterField::<
9,
0x1,
1,
0,
adlimchscr0::Limchc9,
adlimchscr0::Limchc9,
Adlimchscr0_SPEC,
crate::common::W,
>::from_register(self, 0)
}
#[doc = "Analog Channel n Limiter Clip Flag Clear bit"]
#[inline(always)]
pub fn limchc10(
self,
) -> crate::common::RegisterField<
10,
0x1,
1,
0,
adlimchscr0::Limchc10,
adlimchscr0::Limchc10,
Adlimchscr0_SPEC,
crate::common::W,
> {
crate::common::RegisterField::<
10,
0x1,
1,
0,
adlimchscr0::Limchc10,
adlimchscr0::Limchc10,
Adlimchscr0_SPEC,
crate::common::W,
>::from_register(self, 0)
}
#[doc = "Analog Channel n Limiter Clip Flag Clear bit"]
#[inline(always)]
pub fn limchc11(
self,
) -> crate::common::RegisterField<
11,
0x1,
1,
0,
adlimchscr0::Limchc11,
adlimchscr0::Limchc11,
Adlimchscr0_SPEC,
crate::common::W,
> {
crate::common::RegisterField::<
11,
0x1,
1,
0,
adlimchscr0::Limchc11,
adlimchscr0::Limchc11,
Adlimchscr0_SPEC,
crate::common::W,
>::from_register(self, 0)
}
#[doc = "Analog Channel n Limiter Clip Flag Clear bit"]
#[inline(always)]
pub fn limchc12(
self,
) -> crate::common::RegisterField<
12,
0x1,
1,
0,
adlimchscr0::Limchc12,
adlimchscr0::Limchc12,
Adlimchscr0_SPEC,
crate::common::W,
> {
crate::common::RegisterField::<
12,
0x1,
1,
0,
adlimchscr0::Limchc12,
adlimchscr0::Limchc12,
Adlimchscr0_SPEC,
crate::common::W,
>::from_register(self, 0)
}
#[doc = "Analog Channel n Limiter Clip Flag Clear bit"]
#[inline(always)]
pub fn limchc13(
self,
) -> crate::common::RegisterField<
13,
0x1,
1,
0,
adlimchscr0::Limchc13,
adlimchscr0::Limchc13,
Adlimchscr0_SPEC,
crate::common::W,
> {
crate::common::RegisterField::<
13,
0x1,
1,
0,
adlimchscr0::Limchc13,
adlimchscr0::Limchc13,
Adlimchscr0_SPEC,
crate::common::W,
>::from_register(self, 0)
}
#[doc = "Analog Channel n Limiter Clip Flag Clear bit"]
#[inline(always)]
pub fn limchc14(
self,
) -> crate::common::RegisterField<
14,
0x1,
1,
0,
adlimchscr0::Limchc14,
adlimchscr0::Limchc14,
Adlimchscr0_SPEC,
crate::common::W,
> {
crate::common::RegisterField::<
14,
0x1,
1,
0,
adlimchscr0::Limchc14,
adlimchscr0::Limchc14,
Adlimchscr0_SPEC,
crate::common::W,
>::from_register(self, 0)
}
#[doc = "Analog Channel n Limiter Clip Flag Clear bit"]
#[inline(always)]
pub fn limchc15(
self,
) -> crate::common::RegisterField<
15,
0x1,
1,
0,
adlimchscr0::Limchc15,
adlimchscr0::Limchc15,
Adlimchscr0_SPEC,
crate::common::W,
> {
crate::common::RegisterField::<
15,
0x1,
1,
0,
adlimchscr0::Limchc15,
adlimchscr0::Limchc15,
Adlimchscr0_SPEC,
crate::common::W,
>::from_register(self, 0)
}
#[doc = "Analog Channel n Limiter Clip Flag Clear bit"]
#[inline(always)]
pub fn limchc16(
self,
) -> crate::common::RegisterField<
16,
0x1,
1,
0,
adlimchscr0::Limchc16,
adlimchscr0::Limchc16,
Adlimchscr0_SPEC,
crate::common::W,
> {
crate::common::RegisterField::<
16,
0x1,
1,
0,
adlimchscr0::Limchc16,
adlimchscr0::Limchc16,
Adlimchscr0_SPEC,
crate::common::W,
>::from_register(self, 0)
}
#[doc = "Analog Channel n Limiter Clip Flag Clear bit"]
#[inline(always)]
pub fn limchc17(
self,
) -> crate::common::RegisterField<
17,
0x1,
1,
0,
adlimchscr0::Limchc17,
adlimchscr0::Limchc17,
Adlimchscr0_SPEC,
crate::common::W,
> {
crate::common::RegisterField::<
17,
0x1,
1,
0,
adlimchscr0::Limchc17,
adlimchscr0::Limchc17,
Adlimchscr0_SPEC,
crate::common::W,
>::from_register(self, 0)
}
#[doc = "Analog Channel n Limiter Clip Flag Clear bit"]
#[inline(always)]
pub fn limchc18(
self,
) -> crate::common::RegisterField<
18,
0x1,
1,
0,
adlimchscr0::Limchc18,
adlimchscr0::Limchc18,
Adlimchscr0_SPEC,
crate::common::W,
> {
crate::common::RegisterField::<
18,
0x1,
1,
0,
adlimchscr0::Limchc18,
adlimchscr0::Limchc18,
Adlimchscr0_SPEC,
crate::common::W,
>::from_register(self, 0)
}
#[doc = "Analog Channel n Limiter Clip Flag Clear bit"]
#[inline(always)]
pub fn limchc19(
self,
) -> crate::common::RegisterField<
19,
0x1,
1,
0,
adlimchscr0::Limchc19,
adlimchscr0::Limchc19,
Adlimchscr0_SPEC,
crate::common::W,
> {
crate::common::RegisterField::<
19,
0x1,
1,
0,
adlimchscr0::Limchc19,
adlimchscr0::Limchc19,
Adlimchscr0_SPEC,
crate::common::W,
>::from_register(self, 0)
}
#[doc = "Analog Channel n Limiter Clip Flag Clear bit"]
#[inline(always)]
pub fn limchc20(
self,
) -> crate::common::RegisterField<
20,
0x1,
1,
0,
adlimchscr0::Limchc20,
adlimchscr0::Limchc20,
Adlimchscr0_SPEC,
crate::common::W,
> {
crate::common::RegisterField::<
20,
0x1,
1,
0,
adlimchscr0::Limchc20,
adlimchscr0::Limchc20,
Adlimchscr0_SPEC,
crate::common::W,
>::from_register(self, 0)
}
#[doc = "Analog Channel n Limiter Clip Flag Clear bit"]
#[inline(always)]
pub fn limchc21(
self,
) -> crate::common::RegisterField<
21,
0x1,
1,
0,
adlimchscr0::Limchc21,
adlimchscr0::Limchc21,
Adlimchscr0_SPEC,
crate::common::W,
> {
crate::common::RegisterField::<
21,
0x1,
1,
0,
adlimchscr0::Limchc21,
adlimchscr0::Limchc21,
Adlimchscr0_SPEC,
crate::common::W,
>::from_register(self, 0)
}
#[doc = "Analog Channel n Limiter Clip Flag Clear bit"]
#[inline(always)]
pub fn limchc22(
self,
) -> crate::common::RegisterField<
22,
0x1,
1,
0,
adlimchscr0::Limchc22,
adlimchscr0::Limchc22,
Adlimchscr0_SPEC,
crate::common::W,
> {
crate::common::RegisterField::<
22,
0x1,
1,
0,
adlimchscr0::Limchc22,
adlimchscr0::Limchc22,
Adlimchscr0_SPEC,
crate::common::W,
>::from_register(self, 0)
}
}
impl ::core::default::Default for Adlimchscr0 {
#[inline(always)]
fn default() -> Adlimchscr0 {
<crate::RegValueT<Adlimchscr0_SPEC> as RegisterValue<_>>::new(0)
}
}
pub mod adlimchscr0 {
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Limchc0_SPEC;
pub type Limchc0 = crate::EnumBitfieldStruct<u8, Limchc0_SPEC>;
impl Limchc0 {
#[doc = "No effect"]
pub const _0: Self = Self::new(0);
#[doc = "ADLIMCHSR0.LIMCHFn is cleared"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Limchc1_SPEC;
pub type Limchc1 = crate::EnumBitfieldStruct<u8, Limchc1_SPEC>;
impl Limchc1 {
#[doc = "No effect"]
pub const _0: Self = Self::new(0);
#[doc = "ADLIMCHSR0.LIMCHFn is cleared"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Limchc2_SPEC;
pub type Limchc2 = crate::EnumBitfieldStruct<u8, Limchc2_SPEC>;
impl Limchc2 {
#[doc = "No effect"]
pub const _0: Self = Self::new(0);
#[doc = "ADLIMCHSR0.LIMCHFn is cleared"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Limchc3_SPEC;
pub type Limchc3 = crate::EnumBitfieldStruct<u8, Limchc3_SPEC>;
impl Limchc3 {
#[doc = "No effect"]
pub const _0: Self = Self::new(0);
#[doc = "ADLIMCHSR0.LIMCHFn is cleared"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Limchc4_SPEC;
pub type Limchc4 = crate::EnumBitfieldStruct<u8, Limchc4_SPEC>;
impl Limchc4 {
#[doc = "No effect"]
pub const _0: Self = Self::new(0);
#[doc = "ADLIMCHSR0.LIMCHFn is cleared"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Limchc5_SPEC;
pub type Limchc5 = crate::EnumBitfieldStruct<u8, Limchc5_SPEC>;
impl Limchc5 {
#[doc = "No effect"]
pub const _0: Self = Self::new(0);
#[doc = "ADLIMCHSR0.LIMCHFn is cleared"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Limchc6_SPEC;
pub type Limchc6 = crate::EnumBitfieldStruct<u8, Limchc6_SPEC>;
impl Limchc6 {
#[doc = "No effect"]
pub const _0: Self = Self::new(0);
#[doc = "ADLIMCHSR0.LIMCHFn is cleared"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Limchc7_SPEC;
pub type Limchc7 = crate::EnumBitfieldStruct<u8, Limchc7_SPEC>;
impl Limchc7 {
#[doc = "No effect"]
pub const _0: Self = Self::new(0);
#[doc = "ADLIMCHSR0.LIMCHFn is cleared"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Limchc8_SPEC;
pub type Limchc8 = crate::EnumBitfieldStruct<u8, Limchc8_SPEC>;
impl Limchc8 {
#[doc = "No effect"]
pub const _0: Self = Self::new(0);
#[doc = "ADLIMCHSR0.LIMCHFn is cleared"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Limchc9_SPEC;
pub type Limchc9 = crate::EnumBitfieldStruct<u8, Limchc9_SPEC>;
impl Limchc9 {
#[doc = "No effect"]
pub const _0: Self = Self::new(0);
#[doc = "ADLIMCHSR0.LIMCHFn is cleared"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Limchc10_SPEC;
pub type Limchc10 = crate::EnumBitfieldStruct<u8, Limchc10_SPEC>;
impl Limchc10 {
#[doc = "No effect"]
pub const _0: Self = Self::new(0);
#[doc = "ADLIMCHSR0.LIMCHFn is cleared"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Limchc11_SPEC;
pub type Limchc11 = crate::EnumBitfieldStruct<u8, Limchc11_SPEC>;
impl Limchc11 {
#[doc = "No effect"]
pub const _0: Self = Self::new(0);
#[doc = "ADLIMCHSR0.LIMCHFn is cleared"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Limchc12_SPEC;
pub type Limchc12 = crate::EnumBitfieldStruct<u8, Limchc12_SPEC>;
impl Limchc12 {
#[doc = "No effect"]
pub const _0: Self = Self::new(0);
#[doc = "ADLIMCHSR0.LIMCHFn is cleared"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Limchc13_SPEC;
pub type Limchc13 = crate::EnumBitfieldStruct<u8, Limchc13_SPEC>;
impl Limchc13 {
#[doc = "No effect"]
pub const _0: Self = Self::new(0);
#[doc = "ADLIMCHSR0.LIMCHFn is cleared"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Limchc14_SPEC;
pub type Limchc14 = crate::EnumBitfieldStruct<u8, Limchc14_SPEC>;
impl Limchc14 {
#[doc = "No effect"]
pub const _0: Self = Self::new(0);
#[doc = "ADLIMCHSR0.LIMCHFn is cleared"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Limchc15_SPEC;
pub type Limchc15 = crate::EnumBitfieldStruct<u8, Limchc15_SPEC>;
impl Limchc15 {
#[doc = "No effect"]
pub const _0: Self = Self::new(0);
#[doc = "ADLIMCHSR0.LIMCHFn is cleared"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Limchc16_SPEC;
pub type Limchc16 = crate::EnumBitfieldStruct<u8, Limchc16_SPEC>;
impl Limchc16 {
#[doc = "No effect"]
pub const _0: Self = Self::new(0);
#[doc = "ADLIMCHSR0.LIMCHFn is cleared"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Limchc17_SPEC;
pub type Limchc17 = crate::EnumBitfieldStruct<u8, Limchc17_SPEC>;
impl Limchc17 {
#[doc = "No effect"]
pub const _0: Self = Self::new(0);
#[doc = "ADLIMCHSR0.LIMCHFn is cleared"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Limchc18_SPEC;
pub type Limchc18 = crate::EnumBitfieldStruct<u8, Limchc18_SPEC>;
impl Limchc18 {
#[doc = "No effect"]
pub const _0: Self = Self::new(0);
#[doc = "ADLIMCHSR0.LIMCHFn is cleared"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Limchc19_SPEC;
pub type Limchc19 = crate::EnumBitfieldStruct<u8, Limchc19_SPEC>;
impl Limchc19 {
#[doc = "No effect"]
pub const _0: Self = Self::new(0);
#[doc = "ADLIMCHSR0.LIMCHFn is cleared"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Limchc20_SPEC;
pub type Limchc20 = crate::EnumBitfieldStruct<u8, Limchc20_SPEC>;
impl Limchc20 {
#[doc = "No effect"]
pub const _0: Self = Self::new(0);
#[doc = "ADLIMCHSR0.LIMCHFn is cleared"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Limchc21_SPEC;
pub type Limchc21 = crate::EnumBitfieldStruct<u8, Limchc21_SPEC>;
impl Limchc21 {
#[doc = "No effect"]
pub const _0: Self = Self::new(0);
#[doc = "ADLIMCHSR0.LIMCHFn is cleared"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Limchc22_SPEC;
pub type Limchc22 = crate::EnumBitfieldStruct<u8, Limchc22_SPEC>;
impl Limchc22 {
#[doc = "No effect"]
pub const _0: Self = Self::new(0);
#[doc = "ADLIMCHSR0.LIMCHFn is cleared"]
pub const _1: Self = Self::new(1);
}
}
#[doc(hidden)]
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct Adlimexscr_SPEC;
impl crate::sealed::RegSpec for Adlimexscr_SPEC {
type DataType = u32;
}
#[doc = "Extended Analog Limiter Clip Status Clear Register"]
pub type Adlimexscr = crate::RegValueT<Adlimexscr_SPEC>;
impl Adlimexscr {
#[doc = "Self-diagnosis channel for A/D unit 0: Limiter Clip Flag Clear"]
#[inline(always)]
pub fn limexc0(
self,
) -> crate::common::RegisterField<
0,
0x1,
1,
0,
adlimexscr::Limexc0,
adlimexscr::Limexc0,
Adlimexscr_SPEC,
crate::common::W,
> {
crate::common::RegisterField::<
0,
0x1,
1,
0,
adlimexscr::Limexc0,
adlimexscr::Limexc0,
Adlimexscr_SPEC,
crate::common::W,
>::from_register(self, 0)
}
#[doc = "Self-diagnosis channel for A/D unit 1: Limiter Clip Flag Clear"]
#[inline(always)]
pub fn limexc1(
self,
) -> crate::common::RegisterField<
1,
0x1,
1,
0,
adlimexscr::Limexc1,
adlimexscr::Limexc1,
Adlimexscr_SPEC,
crate::common::W,
> {
crate::common::RegisterField::<
1,
0x1,
1,
0,
adlimexscr::Limexc1,
adlimexscr::Limexc1,
Adlimexscr_SPEC,
crate::common::W,
>::from_register(self, 0)
}
#[doc = "Temperature sensor channel: Limiter Clip Flag Clear"]
#[inline(always)]
pub fn limexc4(
self,
) -> crate::common::RegisterField<
4,
0x1,
1,
0,
adlimexscr::Limexc4,
adlimexscr::Limexc4,
Adlimexscr_SPEC,
crate::common::W,
> {
crate::common::RegisterField::<
4,
0x1,
1,
0,
adlimexscr::Limexc4,
adlimexscr::Limexc4,
Adlimexscr_SPEC,
crate::common::W,
>::from_register(self, 0)
}
#[doc = "Internal reference voltage channel: Limiter Clip Flag Clear"]
#[inline(always)]
pub fn limexc5(
self,
) -> crate::common::RegisterField<
5,
0x1,
1,
0,
adlimexscr::Limexc5,
adlimexscr::Limexc5,
Adlimexscr_SPEC,
crate::common::W,
> {
crate::common::RegisterField::<
5,
0x1,
1,
0,
adlimexscr::Limexc5,
adlimexscr::Limexc5,
Adlimexscr_SPEC,
crate::common::W,
>::from_register(self, 0)
}
#[doc = "VBATT 1/6 voltage monitor output channel: Limiter Clip Flag Clear"]
#[inline(always)]
pub fn limexc6(
self,
) -> crate::common::RegisterField<
6,
0x1,
1,
0,
adlimexscr::Limexc6,
adlimexscr::Limexc6,
Adlimexscr_SPEC,
crate::common::W,
> {
crate::common::RegisterField::<
6,
0x1,
1,
0,
adlimexscr::Limexc6,
adlimexscr::Limexc6,
Adlimexscr_SPEC,
crate::common::W,
>::from_register(self, 0)
}
#[doc = "D/A converter 0 channel: Limiter Clip Flag Clear"]
#[inline(always)]
pub fn limexc8(
self,
) -> crate::common::RegisterField<
8,
0x1,
1,
0,
adlimexscr::Limexc8,
adlimexscr::Limexc8,
Adlimexscr_SPEC,
crate::common::W,
> {
crate::common::RegisterField::<
8,
0x1,
1,
0,
adlimexscr::Limexc8,
adlimexscr::Limexc8,
Adlimexscr_SPEC,
crate::common::W,
>::from_register(self, 0)
}
#[doc = "D/A converter 1 channel: Limiter Clip Flag Clear"]
#[inline(always)]
pub fn limexc9(
self,
) -> crate::common::RegisterField<
9,
0x1,
1,
0,
adlimexscr::Limexc9,
adlimexscr::Limexc9,
Adlimexscr_SPEC,
crate::common::W,
> {
crate::common::RegisterField::<
9,
0x1,
1,
0,
adlimexscr::Limexc9,
adlimexscr::Limexc9,
Adlimexscr_SPEC,
crate::common::W,
>::from_register(self, 0)
}
#[doc = "Self-diagnosis channel for sample-and-hold circuit unit 0: Limiter Clip Flag Clear"]
#[inline(always)]
pub fn limexc16(
self,
) -> crate::common::RegisterField<
16,
0x1,
1,
0,
adlimexscr::Limexc16,
adlimexscr::Limexc16,
Adlimexscr_SPEC,
crate::common::W,
> {
crate::common::RegisterField::<
16,
0x1,
1,
0,
adlimexscr::Limexc16,
adlimexscr::Limexc16,
Adlimexscr_SPEC,
crate::common::W,
>::from_register(self, 0)
}
#[doc = "Self-diagnosis channel for sample-and-hold circuit unit 1: Limiter Clip Flag Clear"]
#[inline(always)]
pub fn limexc17(
self,
) -> crate::common::RegisterField<
17,
0x1,
1,
0,
adlimexscr::Limexc17,
adlimexscr::Limexc17,
Adlimexscr_SPEC,
crate::common::W,
> {
crate::common::RegisterField::<
17,
0x1,
1,
0,
adlimexscr::Limexc17,
adlimexscr::Limexc17,
Adlimexscr_SPEC,
crate::common::W,
>::from_register(self, 0)
}
#[doc = "Self-diagnosis channel for sample-and-hold circuit unit 2: Limiter Clip Flag Clear"]
#[inline(always)]
pub fn limexc18(
self,
) -> crate::common::RegisterField<
18,
0x1,
1,
0,
adlimexscr::Limexc18,
adlimexscr::Limexc18,
Adlimexscr_SPEC,
crate::common::W,
> {
crate::common::RegisterField::<
18,
0x1,
1,
0,
adlimexscr::Limexc18,
adlimexscr::Limexc18,
Adlimexscr_SPEC,
crate::common::W,
>::from_register(self, 0)
}
#[doc = "Self-diagnosis channel for sample-and-hold circuit unit 4: Limiter Clip Flag Clear"]
#[inline(always)]
pub fn limexc20(
self,
) -> crate::common::RegisterField<
20,
0x1,
1,
0,
adlimexscr::Limexc20,
adlimexscr::Limexc20,
Adlimexscr_SPEC,
crate::common::W,
> {
crate::common::RegisterField::<
20,
0x1,
1,
0,
adlimexscr::Limexc20,
adlimexscr::Limexc20,
Adlimexscr_SPEC,
crate::common::W,
>::from_register(self, 0)
}
#[doc = "Self-diagnosis channel for sample-and-hold circuit unit 5: Limiter Clip Flag Clear"]
#[inline(always)]
pub fn limexc21(
self,
) -> crate::common::RegisterField<
21,
0x1,
1,
0,
adlimexscr::Limexc21,
adlimexscr::Limexc21,
Adlimexscr_SPEC,
crate::common::W,
> {
crate::common::RegisterField::<
21,
0x1,
1,
0,
adlimexscr::Limexc21,
adlimexscr::Limexc21,
Adlimexscr_SPEC,
crate::common::W,
>::from_register(self, 0)
}
#[doc = "Self-diagnosis channel for sample-and-hold circuit unit 6: Limiter Clip Flag Clear"]
#[inline(always)]
pub fn limexc22(
self,
) -> crate::common::RegisterField<
22,
0x1,
1,
0,
adlimexscr::Limexc22,
adlimexscr::Limexc22,
Adlimexscr_SPEC,
crate::common::W,
> {
crate::common::RegisterField::<
22,
0x1,
1,
0,
adlimexscr::Limexc22,
adlimexscr::Limexc22,
Adlimexscr_SPEC,
crate::common::W,
>::from_register(self, 0)
}
}
impl ::core::default::Default for Adlimexscr {
#[inline(always)]
fn default() -> Adlimexscr {
<crate::RegValueT<Adlimexscr_SPEC> as RegisterValue<_>>::new(0)
}
}
pub mod adlimexscr {
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Limexc0_SPEC;
pub type Limexc0 = crate::EnumBitfieldStruct<u8, Limexc0_SPEC>;
impl Limexc0 {
#[doc = "No effect"]
pub const _0: Self = Self::new(0);
#[doc = "ADLIMEXSR.LIMEXC0 is cleared"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Limexc1_SPEC;
pub type Limexc1 = crate::EnumBitfieldStruct<u8, Limexc1_SPEC>;
impl Limexc1 {
#[doc = "No effect"]
pub const _0: Self = Self::new(0);
#[doc = "ADLIMEXSR.LIMEXC1 is cleared"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Limexc4_SPEC;
pub type Limexc4 = crate::EnumBitfieldStruct<u8, Limexc4_SPEC>;
impl Limexc4 {
#[doc = "No effect"]
pub const _0: Self = Self::new(0);
#[doc = "ADLIMEXSR.LIMEXC4 is cleared"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Limexc5_SPEC;
pub type Limexc5 = crate::EnumBitfieldStruct<u8, Limexc5_SPEC>;
impl Limexc5 {
#[doc = "No effect"]
pub const _0: Self = Self::new(0);
#[doc = "ADLIMEXSR.LIMEXC5 is cleared"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Limexc6_SPEC;
pub type Limexc6 = crate::EnumBitfieldStruct<u8, Limexc6_SPEC>;
impl Limexc6 {
#[doc = "No effect"]
pub const _0: Self = Self::new(0);
#[doc = "ADLIMEXSR.LIMEXC6 is cleared"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Limexc8_SPEC;
pub type Limexc8 = crate::EnumBitfieldStruct<u8, Limexc8_SPEC>;
impl Limexc8 {
#[doc = "No effect"]
pub const _0: Self = Self::new(0);
#[doc = "ADLIMEXSR.LIMEXC8 is cleared"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Limexc9_SPEC;
pub type Limexc9 = crate::EnumBitfieldStruct<u8, Limexc9_SPEC>;
impl Limexc9 {
#[doc = "No effect"]
pub const _0: Self = Self::new(0);
#[doc = "ADLIMEXSR.LIMEXC9 is cleared"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Limexc16_SPEC;
pub type Limexc16 = crate::EnumBitfieldStruct<u8, Limexc16_SPEC>;
impl Limexc16 {
#[doc = "No effect"]
pub const _0: Self = Self::new(0);
#[doc = "ADLIMEXSR.LIMEXC16 is cleared"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Limexc17_SPEC;
pub type Limexc17 = crate::EnumBitfieldStruct<u8, Limexc17_SPEC>;
impl Limexc17 {
#[doc = "No effect"]
pub const _0: Self = Self::new(0);
#[doc = "ADLIMEXSR.LIMEXC17 is cleared"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Limexc18_SPEC;
pub type Limexc18 = crate::EnumBitfieldStruct<u8, Limexc18_SPEC>;
impl Limexc18 {
#[doc = "No effect"]
pub const _0: Self = Self::new(0);
#[doc = "ADLIMEXSR.LIMEXC18 is cleared"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Limexc20_SPEC;
pub type Limexc20 = crate::EnumBitfieldStruct<u8, Limexc20_SPEC>;
impl Limexc20 {
#[doc = "No effect"]
pub const _0: Self = Self::new(0);
#[doc = "ADLIMEXSR.LIMEXC20 is cleared"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Limexc21_SPEC;
pub type Limexc21 = crate::EnumBitfieldStruct<u8, Limexc21_SPEC>;
impl Limexc21 {
#[doc = "No effect"]
pub const _0: Self = Self::new(0);
#[doc = "ADLIMEXSR.LIMEXC21 is cleared"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Limexc22_SPEC;
pub type Limexc22 = crate::EnumBitfieldStruct<u8, Limexc22_SPEC>;
impl Limexc22 {
#[doc = "No effect"]
pub const _0: Self = Self::new(0);
#[doc = "ADLIMEXSR.LIMEXC22 is cleared"]
pub const _1: Self = Self::new(1);
}
}
#[doc(hidden)]
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct Adscanendsr_SPEC;
impl crate::sealed::RegSpec for Adscanendsr_SPEC {
type DataType = u32;
}
#[doc = "Scan End Status Register"]
pub type Adscanendsr = crate::RegValueT<Adscanendsr_SPEC>;
impl Adscanendsr {
#[doc = "Scan Group n Scan End Flag"]
#[inline(always)]
pub fn scendf0(
self,
) -> crate::common::RegisterField<
0,
0x1,
1,
0,
adscanendsr::Scendf0,
adscanendsr::Scendf0,
Adscanendsr_SPEC,
crate::common::R,
> {
crate::common::RegisterField::<
0,
0x1,
1,
0,
adscanendsr::Scendf0,
adscanendsr::Scendf0,
Adscanendsr_SPEC,
crate::common::R,
>::from_register(self, 0)
}
#[doc = "Scan Group n Scan End Flag"]
#[inline(always)]
pub fn scendf1(
self,
) -> crate::common::RegisterField<
1,
0x1,
1,
0,
adscanendsr::Scendf1,
adscanendsr::Scendf1,
Adscanendsr_SPEC,
crate::common::R,
> {
crate::common::RegisterField::<
1,
0x1,
1,
0,
adscanendsr::Scendf1,
adscanendsr::Scendf1,
Adscanendsr_SPEC,
crate::common::R,
>::from_register(self, 0)
}
#[doc = "Scan Group n Scan End Flag"]
#[inline(always)]
pub fn scendf2(
self,
) -> crate::common::RegisterField<
2,
0x1,
1,
0,
adscanendsr::Scendf2,
adscanendsr::Scendf2,
Adscanendsr_SPEC,
crate::common::R,
> {
crate::common::RegisterField::<
2,
0x1,
1,
0,
adscanendsr::Scendf2,
adscanendsr::Scendf2,
Adscanendsr_SPEC,
crate::common::R,
>::from_register(self, 0)
}
#[doc = "Scan Group n Scan End Flag"]
#[inline(always)]
pub fn scendf3(
self,
) -> crate::common::RegisterField<
3,
0x1,
1,
0,
adscanendsr::Scendf3,
adscanendsr::Scendf3,
Adscanendsr_SPEC,
crate::common::R,
> {
crate::common::RegisterField::<
3,
0x1,
1,
0,
adscanendsr::Scendf3,
adscanendsr::Scendf3,
Adscanendsr_SPEC,
crate::common::R,
>::from_register(self, 0)
}
#[doc = "Scan Group n Scan End Flag"]
#[inline(always)]
pub fn scendf4(
self,
) -> crate::common::RegisterField<
4,
0x1,
1,
0,
adscanendsr::Scendf4,
adscanendsr::Scendf4,
Adscanendsr_SPEC,
crate::common::R,
> {
crate::common::RegisterField::<
4,
0x1,
1,
0,
adscanendsr::Scendf4,
adscanendsr::Scendf4,
Adscanendsr_SPEC,
crate::common::R,
>::from_register(self, 0)
}
#[doc = "Scan Group n Scan End Flag"]
#[inline(always)]
pub fn scendf5(
self,
) -> crate::common::RegisterField<
5,
0x1,
1,
0,
adscanendsr::Scendf5,
adscanendsr::Scendf5,
Adscanendsr_SPEC,
crate::common::R,
> {
crate::common::RegisterField::<
5,
0x1,
1,
0,
adscanendsr::Scendf5,
adscanendsr::Scendf5,
Adscanendsr_SPEC,
crate::common::R,
>::from_register(self, 0)
}
#[doc = "Scan Group n Scan End Flag"]
#[inline(always)]
pub fn scendf6(
self,
) -> crate::common::RegisterField<
6,
0x1,
1,
0,
adscanendsr::Scendf6,
adscanendsr::Scendf6,
Adscanendsr_SPEC,
crate::common::R,
> {
crate::common::RegisterField::<
6,
0x1,
1,
0,
adscanendsr::Scendf6,
adscanendsr::Scendf6,
Adscanendsr_SPEC,
crate::common::R,
>::from_register(self, 0)
}
#[doc = "Scan Group n Scan End Flag"]
#[inline(always)]
pub fn scendf7(
self,
) -> crate::common::RegisterField<
7,
0x1,
1,
0,
adscanendsr::Scendf7,
adscanendsr::Scendf7,
Adscanendsr_SPEC,
crate::common::R,
> {
crate::common::RegisterField::<
7,
0x1,
1,
0,
adscanendsr::Scendf7,
adscanendsr::Scendf7,
Adscanendsr_SPEC,
crate::common::R,
>::from_register(self, 0)
}
#[doc = "Scan Group n Scan End Flag"]
#[inline(always)]
pub fn scendf8(
self,
) -> crate::common::RegisterField<
8,
0x1,
1,
0,
adscanendsr::Scendf8,
adscanendsr::Scendf8,
Adscanendsr_SPEC,
crate::common::R,
> {
crate::common::RegisterField::<
8,
0x1,
1,
0,
adscanendsr::Scendf8,
adscanendsr::Scendf8,
Adscanendsr_SPEC,
crate::common::R,
>::from_register(self, 0)
}
}
impl ::core::default::Default for Adscanendsr {
#[inline(always)]
fn default() -> Adscanendsr {
<crate::RegValueT<Adscanendsr_SPEC> as RegisterValue<_>>::new(0)
}
}
pub mod adscanendsr {
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Scendf0_SPEC;
pub type Scendf0 = crate::EnumBitfieldStruct<u8, Scendf0_SPEC>;
impl Scendf0 {
#[doc = "Scan group n has not been scanned"]
pub const _0: Self = Self::new(0);
#[doc = "End of scan for scan group n is detected"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Scendf1_SPEC;
pub type Scendf1 = crate::EnumBitfieldStruct<u8, Scendf1_SPEC>;
impl Scendf1 {
#[doc = "Scan group n has not been scanned"]
pub const _0: Self = Self::new(0);
#[doc = "End of scan for scan group n is detected"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Scendf2_SPEC;
pub type Scendf2 = crate::EnumBitfieldStruct<u8, Scendf2_SPEC>;
impl Scendf2 {
#[doc = "Scan group n has not been scanned"]
pub const _0: Self = Self::new(0);
#[doc = "End of scan for scan group n is detected"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Scendf3_SPEC;
pub type Scendf3 = crate::EnumBitfieldStruct<u8, Scendf3_SPEC>;
impl Scendf3 {
#[doc = "Scan group n has not been scanned"]
pub const _0: Self = Self::new(0);
#[doc = "End of scan for scan group n is detected"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Scendf4_SPEC;
pub type Scendf4 = crate::EnumBitfieldStruct<u8, Scendf4_SPEC>;
impl Scendf4 {
#[doc = "Scan group n has not been scanned"]
pub const _0: Self = Self::new(0);
#[doc = "End of scan for scan group n is detected"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Scendf5_SPEC;
pub type Scendf5 = crate::EnumBitfieldStruct<u8, Scendf5_SPEC>;
impl Scendf5 {
#[doc = "Scan group n has not been scanned"]
pub const _0: Self = Self::new(0);
#[doc = "End of scan for scan group n is detected"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Scendf6_SPEC;
pub type Scendf6 = crate::EnumBitfieldStruct<u8, Scendf6_SPEC>;
impl Scendf6 {
#[doc = "Scan group n has not been scanned"]
pub const _0: Self = Self::new(0);
#[doc = "End of scan for scan group n is detected"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Scendf7_SPEC;
pub type Scendf7 = crate::EnumBitfieldStruct<u8, Scendf7_SPEC>;
impl Scendf7 {
#[doc = "Scan group n has not been scanned"]
pub const _0: Self = Self::new(0);
#[doc = "End of scan for scan group n is detected"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Scendf8_SPEC;
pub type Scendf8 = crate::EnumBitfieldStruct<u8, Scendf8_SPEC>;
impl Scendf8 {
#[doc = "Scan group n has not been scanned"]
pub const _0: Self = Self::new(0);
#[doc = "End of scan for scan group n is detected"]
pub const _1: Self = Self::new(1);
}
}
#[doc(hidden)]
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct Adscanendscr_SPEC;
impl crate::sealed::RegSpec for Adscanendscr_SPEC {
type DataType = u32;
}
#[doc = "Scan End Status Clear Register"]
pub type Adscanendscr = crate::RegValueT<Adscanendscr_SPEC>;
impl Adscanendscr {
#[doc = "Scan Group n Scan End Flag Clear"]
#[inline(always)]
pub fn scendc0(
self,
) -> crate::common::RegisterField<
0,
0x1,
1,
0,
adscanendscr::Scendc0,
adscanendscr::Scendc0,
Adscanendscr_SPEC,
crate::common::W,
> {
crate::common::RegisterField::<
0,
0x1,
1,
0,
adscanendscr::Scendc0,
adscanendscr::Scendc0,
Adscanendscr_SPEC,
crate::common::W,
>::from_register(self, 0)
}
#[doc = "Scan Group n Scan End Flag Clear"]
#[inline(always)]
pub fn scendc1(
self,
) -> crate::common::RegisterField<
1,
0x1,
1,
0,
adscanendscr::Scendc1,
adscanendscr::Scendc1,
Adscanendscr_SPEC,
crate::common::W,
> {
crate::common::RegisterField::<
1,
0x1,
1,
0,
adscanendscr::Scendc1,
adscanendscr::Scendc1,
Adscanendscr_SPEC,
crate::common::W,
>::from_register(self, 0)
}
#[doc = "Scan Group n Scan End Flag Clear"]
#[inline(always)]
pub fn scendc2(
self,
) -> crate::common::RegisterField<
2,
0x1,
1,
0,
adscanendscr::Scendc2,
adscanendscr::Scendc2,
Adscanendscr_SPEC,
crate::common::W,
> {
crate::common::RegisterField::<
2,
0x1,
1,
0,
adscanendscr::Scendc2,
adscanendscr::Scendc2,
Adscanendscr_SPEC,
crate::common::W,
>::from_register(self, 0)
}
#[doc = "Scan Group n Scan End Flag Clear"]
#[inline(always)]
pub fn scendc3(
self,
) -> crate::common::RegisterField<
3,
0x1,
1,
0,
adscanendscr::Scendc3,
adscanendscr::Scendc3,
Adscanendscr_SPEC,
crate::common::W,
> {
crate::common::RegisterField::<
3,
0x1,
1,
0,
adscanendscr::Scendc3,
adscanendscr::Scendc3,
Adscanendscr_SPEC,
crate::common::W,
>::from_register(self, 0)
}
#[doc = "Scan Group n Scan End Flag Clear"]
#[inline(always)]
pub fn scendc4(
self,
) -> crate::common::RegisterField<
4,
0x1,
1,
0,
adscanendscr::Scendc4,
adscanendscr::Scendc4,
Adscanendscr_SPEC,
crate::common::W,
> {
crate::common::RegisterField::<
4,
0x1,
1,
0,
adscanendscr::Scendc4,
adscanendscr::Scendc4,
Adscanendscr_SPEC,
crate::common::W,
>::from_register(self, 0)
}
#[doc = "Scan Group n Scan End Flag Clear"]
#[inline(always)]
pub fn scendc5(
self,
) -> crate::common::RegisterField<
5,
0x1,
1,
0,
adscanendscr::Scendc5,
adscanendscr::Scendc5,
Adscanendscr_SPEC,
crate::common::W,
> {
crate::common::RegisterField::<
5,
0x1,
1,
0,
adscanendscr::Scendc5,
adscanendscr::Scendc5,
Adscanendscr_SPEC,
crate::common::W,
>::from_register(self, 0)
}
#[doc = "Scan Group n Scan End Flag Clear"]
#[inline(always)]
pub fn scendc6(
self,
) -> crate::common::RegisterField<
6,
0x1,
1,
0,
adscanendscr::Scendc6,
adscanendscr::Scendc6,
Adscanendscr_SPEC,
crate::common::W,
> {
crate::common::RegisterField::<
6,
0x1,
1,
0,
adscanendscr::Scendc6,
adscanendscr::Scendc6,
Adscanendscr_SPEC,
crate::common::W,
>::from_register(self, 0)
}
#[doc = "Scan Group n Scan End Flag Clear"]
#[inline(always)]
pub fn scendc7(
self,
) -> crate::common::RegisterField<
7,
0x1,
1,
0,
adscanendscr::Scendc7,
adscanendscr::Scendc7,
Adscanendscr_SPEC,
crate::common::W,
> {
crate::common::RegisterField::<
7,
0x1,
1,
0,
adscanendscr::Scendc7,
adscanendscr::Scendc7,
Adscanendscr_SPEC,
crate::common::W,
>::from_register(self, 0)
}
#[doc = "Scan Group n Scan End Flag Clear"]
#[inline(always)]
pub fn scendc8(
self,
) -> crate::common::RegisterField<
8,
0x1,
1,
0,
adscanendscr::Scendc8,
adscanendscr::Scendc8,
Adscanendscr_SPEC,
crate::common::W,
> {
crate::common::RegisterField::<
8,
0x1,
1,
0,
adscanendscr::Scendc8,
adscanendscr::Scendc8,
Adscanendscr_SPEC,
crate::common::W,
>::from_register(self, 0)
}
}
impl ::core::default::Default for Adscanendscr {
#[inline(always)]
fn default() -> Adscanendscr {
<crate::RegValueT<Adscanendscr_SPEC> as RegisterValue<_>>::new(0)
}
}
pub mod adscanendscr {
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Scendc0_SPEC;
pub type Scendc0 = crate::EnumBitfieldStruct<u8, Scendc0_SPEC>;
impl Scendc0 {
#[doc = "No effect"]
pub const _0: Self = Self::new(0);
#[doc = "ADSCANENDSR.SCENDFn is cleared"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Scendc1_SPEC;
pub type Scendc1 = crate::EnumBitfieldStruct<u8, Scendc1_SPEC>;
impl Scendc1 {
#[doc = "No effect"]
pub const _0: Self = Self::new(0);
#[doc = "ADSCANENDSR.SCENDFn is cleared"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Scendc2_SPEC;
pub type Scendc2 = crate::EnumBitfieldStruct<u8, Scendc2_SPEC>;
impl Scendc2 {
#[doc = "No effect"]
pub const _0: Self = Self::new(0);
#[doc = "ADSCANENDSR.SCENDFn is cleared"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Scendc3_SPEC;
pub type Scendc3 = crate::EnumBitfieldStruct<u8, Scendc3_SPEC>;
impl Scendc3 {
#[doc = "No effect"]
pub const _0: Self = Self::new(0);
#[doc = "ADSCANENDSR.SCENDFn is cleared"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Scendc4_SPEC;
pub type Scendc4 = crate::EnumBitfieldStruct<u8, Scendc4_SPEC>;
impl Scendc4 {
#[doc = "No effect"]
pub const _0: Self = Self::new(0);
#[doc = "ADSCANENDSR.SCENDFn is cleared"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Scendc5_SPEC;
pub type Scendc5 = crate::EnumBitfieldStruct<u8, Scendc5_SPEC>;
impl Scendc5 {
#[doc = "No effect"]
pub const _0: Self = Self::new(0);
#[doc = "ADSCANENDSR.SCENDFn is cleared"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Scendc6_SPEC;
pub type Scendc6 = crate::EnumBitfieldStruct<u8, Scendc6_SPEC>;
impl Scendc6 {
#[doc = "No effect"]
pub const _0: Self = Self::new(0);
#[doc = "ADSCANENDSR.SCENDFn is cleared"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Scendc7_SPEC;
pub type Scendc7 = crate::EnumBitfieldStruct<u8, Scendc7_SPEC>;
impl Scendc7 {
#[doc = "No effect"]
pub const _0: Self = Self::new(0);
#[doc = "ADSCANENDSR.SCENDFn is cleared"]
pub const _1: Self = Self::new(1);
}
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Scendc8_SPEC;
pub type Scendc8 = crate::EnumBitfieldStruct<u8, Scendc8_SPEC>;
impl Scendc8 {
#[doc = "No effect"]
pub const _0: Self = Self::new(0);
#[doc = "ADSCANENDSR.SCENDFn is cleared"]
pub const _1: Self = Self::new(1);
}
}
#[doc(hidden)]
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct Addr_SPEC;
impl crate::sealed::RegSpec for Addr_SPEC {
type DataType = u32;
}
#[doc = "A/D Data Register %s"]
pub type Addr = crate::RegValueT<Addr_SPEC>;
impl Addr {
#[doc = "A/D conversion data"]
#[inline(always)]
pub fn data(
self,
) -> crate::common::RegisterField<0, 0xffff, 1, 0, u16, u16, Addr_SPEC, crate::common::R> {
crate::common::RegisterField::<0,0xffff,1,0,u16,u16,Addr_SPEC,crate::common::R>::from_register(self,0)
}
#[doc = "A/D conversion data error status"]
#[inline(always)]
pub fn err(
self,
) -> crate::common::RegisterField<
31,
0x1,
1,
0,
addr::Err,
addr::Err,
Addr_SPEC,
crate::common::R,
> {
crate::common::RegisterField::<
31,
0x1,
1,
0,
addr::Err,
addr::Err,
Addr_SPEC,
crate::common::R,
>::from_register(self, 0)
}
}
impl ::core::default::Default for Addr {
#[inline(always)]
fn default() -> Addr {
<crate::RegValueT<Addr_SPEC> as RegisterValue<_>>::new(0)
}
}
pub mod addr {
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Err_SPEC;
pub type Err = crate::EnumBitfieldStruct<u8, Err_SPEC>;
impl Err {
#[doc = "No error (the A/D conversion data is valid)"]
pub const _0: Self = Self::new(0);
#[doc = "Error is detected (the A/D conversion data is not guaranteed)"]
pub const _1: Self = Self::new(1);
}
}
#[doc(hidden)]
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct Adfifodr_SPEC;
impl crate::sealed::RegSpec for Adfifodr_SPEC {
type DataType = u32;
}
#[doc = "FIFO Data Register %s"]
pub type Adfifodr = crate::RegValueT<Adfifodr_SPEC>;
impl Adfifodr {
#[doc = "A/D Conversion Data"]
#[inline(always)]
pub fn data(
self,
) -> crate::common::RegisterField<0, 0xffff, 1, 0, u16, u16, Adfifodr_SPEC, crate::common::R>
{
crate::common::RegisterField::<0,0xffff,1,0,u16,u16,Adfifodr_SPEC,crate::common::R>::from_register(self,0)
}
#[doc = "A/D Conversion Channel Number"]
#[inline(always)]
pub fn ch(
self,
) -> crate::common::RegisterField<24, 0x7f, 1, 0, u8, u8, Adfifodr_SPEC, crate::common::R> {
crate::common::RegisterField::<24,0x7f,1,0,u8,u8,Adfifodr_SPEC,crate::common::R>::from_register(self,0)
}
#[doc = "A/D Conversion Data Error Status"]
#[inline(always)]
pub fn err(
self,
) -> crate::common::RegisterField<
31,
0x1,
1,
0,
adfifodr::Err,
adfifodr::Err,
Adfifodr_SPEC,
crate::common::R,
> {
crate::common::RegisterField::<
31,
0x1,
1,
0,
adfifodr::Err,
adfifodr::Err,
Adfifodr_SPEC,
crate::common::R,
>::from_register(self, 0)
}
}
impl ::core::default::Default for Adfifodr {
#[inline(always)]
fn default() -> Adfifodr {
<crate::RegValueT<Adfifodr_SPEC> as RegisterValue<_>>::new(0)
}
}
pub mod adfifodr {
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
pub struct Err_SPEC;
pub type Err = crate::EnumBitfieldStruct<u8, Err_SPEC>;
impl Err {
#[doc = "No error (the A/D conversion data is valid)"]
pub const _0: Self = Self::new(0);
#[doc = "Error is detected (the A/D conversion data is not guaranteed)"]
pub const _1: Self = Self::new(1);
}
}