pub type R = crate::R<TAMPCRrs>;
pub type W = crate::W<TAMPCRrs>;
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum TAMP1E {
Disabled = 0,
Enabled = 1,
}
impl From<TAMP1E> for bool {
#[inline(always)]
fn from(variant: TAMP1E) -> Self {
variant as u8 != 0
}
}
pub type TAMP1E_R = crate::BitReader<TAMP1E>;
impl TAMP1E_R {
#[inline(always)]
pub const fn variant(&self) -> TAMP1E {
match self.bits {
false => TAMP1E::Disabled,
true => TAMP1E::Enabled,
}
}
#[inline(always)]
pub fn is_disabled(&self) -> bool {
*self == TAMP1E::Disabled
}
#[inline(always)]
pub fn is_enabled(&self) -> bool {
*self == TAMP1E::Enabled
}
}
pub type TAMP1E_W<'a, REG> = crate::BitWriter<'a, REG, TAMP1E>;
impl<'a, REG> TAMP1E_W<'a, REG>
where
REG: crate::Writable + crate::RegisterSpec,
{
#[inline(always)]
pub fn disabled(self) -> &'a mut crate::W<REG> {
self.variant(TAMP1E::Disabled)
}
#[inline(always)]
pub fn enabled(self) -> &'a mut crate::W<REG> {
self.variant(TAMP1E::Enabled)
}
}
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum TAMP1TRG {
RisingEdge = 0,
FallingEdge = 1,
}
impl From<TAMP1TRG> for bool {
#[inline(always)]
fn from(variant: TAMP1TRG) -> Self {
variant as u8 != 0
}
}
pub type TAMP1TRG_R = crate::BitReader<TAMP1TRG>;
impl TAMP1TRG_R {
#[inline(always)]
pub const fn variant(&self) -> TAMP1TRG {
match self.bits {
false => TAMP1TRG::RisingEdge,
true => TAMP1TRG::FallingEdge,
}
}
#[inline(always)]
pub fn is_rising_edge(&self) -> bool {
*self == TAMP1TRG::RisingEdge
}
#[inline(always)]
pub fn is_falling_edge(&self) -> bool {
*self == TAMP1TRG::FallingEdge
}
}
pub type TAMP1TRG_W<'a, REG> = crate::BitWriter<'a, REG, TAMP1TRG>;
impl<'a, REG> TAMP1TRG_W<'a, REG>
where
REG: crate::Writable + crate::RegisterSpec,
{
#[inline(always)]
pub fn rising_edge(self) -> &'a mut crate::W<REG> {
self.variant(TAMP1TRG::RisingEdge)
}
#[inline(always)]
pub fn falling_edge(self) -> &'a mut crate::W<REG> {
self.variant(TAMP1TRG::FallingEdge)
}
}
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum TAMPIE {
Disabled = 0,
Enabled = 1,
}
impl From<TAMPIE> for bool {
#[inline(always)]
fn from(variant: TAMPIE) -> Self {
variant as u8 != 0
}
}
pub type TAMPIE_R = crate::BitReader<TAMPIE>;
impl TAMPIE_R {
#[inline(always)]
pub const fn variant(&self) -> TAMPIE {
match self.bits {
false => TAMPIE::Disabled,
true => TAMPIE::Enabled,
}
}
#[inline(always)]
pub fn is_disabled(&self) -> bool {
*self == TAMPIE::Disabled
}
#[inline(always)]
pub fn is_enabled(&self) -> bool {
*self == TAMPIE::Enabled
}
}
pub type TAMPIE_W<'a, REG> = crate::BitWriter<'a, REG, TAMPIE>;
impl<'a, REG> TAMPIE_W<'a, REG>
where
REG: crate::Writable + crate::RegisterSpec,
{
#[inline(always)]
pub fn disabled(self) -> &'a mut crate::W<REG> {
self.variant(TAMPIE::Disabled)
}
#[inline(always)]
pub fn enabled(self) -> &'a mut crate::W<REG> {
self.variant(TAMPIE::Enabled)
}
}
pub use TAMP1E_R as TAMP2E_R;
pub use TAMP1E_R as TAMP3E_R;
pub use TAMP1E_W as TAMP2E_W;
pub use TAMP1E_W as TAMP3E_W;
pub use TAMP1TRG_R as TAMP2TRG_R;
pub use TAMP1TRG_R as TAMP3TRG_R;
pub use TAMP1TRG_W as TAMP2TRG_W;
pub use TAMP1TRG_W as TAMP3TRG_W;
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum TAMPTS {
NoSave = 0,
Save = 1,
}
impl From<TAMPTS> for bool {
#[inline(always)]
fn from(variant: TAMPTS) -> Self {
variant as u8 != 0
}
}
pub type TAMPTS_R = crate::BitReader<TAMPTS>;
impl TAMPTS_R {
#[inline(always)]
pub const fn variant(&self) -> TAMPTS {
match self.bits {
false => TAMPTS::NoSave,
true => TAMPTS::Save,
}
}
#[inline(always)]
pub fn is_no_save(&self) -> bool {
*self == TAMPTS::NoSave
}
#[inline(always)]
pub fn is_save(&self) -> bool {
*self == TAMPTS::Save
}
}
pub type TAMPTS_W<'a, REG> = crate::BitWriter<'a, REG, TAMPTS>;
impl<'a, REG> TAMPTS_W<'a, REG>
where
REG: crate::Writable + crate::RegisterSpec,
{
#[inline(always)]
pub fn no_save(self) -> &'a mut crate::W<REG> {
self.variant(TAMPTS::NoSave)
}
#[inline(always)]
pub fn save(self) -> &'a mut crate::W<REG> {
self.variant(TAMPTS::Save)
}
}
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
#[repr(u8)]
pub enum TAMPFREQ {
Div32768 = 0,
Div16384 = 1,
Div8192 = 2,
Div4096 = 3,
Div2048 = 4,
Div1024 = 5,
Div512 = 6,
Div256 = 7,
}
impl From<TAMPFREQ> for u8 {
#[inline(always)]
fn from(variant: TAMPFREQ) -> Self {
variant as _
}
}
impl crate::FieldSpec for TAMPFREQ {
type Ux = u8;
}
impl crate::IsEnum for TAMPFREQ {}
pub type TAMPFREQ_R = crate::FieldReader<TAMPFREQ>;
impl TAMPFREQ_R {
#[inline(always)]
pub const fn variant(&self) -> TAMPFREQ {
match self.bits {
0 => TAMPFREQ::Div32768,
1 => TAMPFREQ::Div16384,
2 => TAMPFREQ::Div8192,
3 => TAMPFREQ::Div4096,
4 => TAMPFREQ::Div2048,
5 => TAMPFREQ::Div1024,
6 => TAMPFREQ::Div512,
7 => TAMPFREQ::Div256,
_ => unreachable!(),
}
}
#[inline(always)]
pub fn is_div32768(&self) -> bool {
*self == TAMPFREQ::Div32768
}
#[inline(always)]
pub fn is_div16384(&self) -> bool {
*self == TAMPFREQ::Div16384
}
#[inline(always)]
pub fn is_div8192(&self) -> bool {
*self == TAMPFREQ::Div8192
}
#[inline(always)]
pub fn is_div4096(&self) -> bool {
*self == TAMPFREQ::Div4096
}
#[inline(always)]
pub fn is_div2048(&self) -> bool {
*self == TAMPFREQ::Div2048
}
#[inline(always)]
pub fn is_div1024(&self) -> bool {
*self == TAMPFREQ::Div1024
}
#[inline(always)]
pub fn is_div512(&self) -> bool {
*self == TAMPFREQ::Div512
}
#[inline(always)]
pub fn is_div256(&self) -> bool {
*self == TAMPFREQ::Div256
}
}
pub type TAMPFREQ_W<'a, REG> = crate::FieldWriter<'a, REG, 3, TAMPFREQ, crate::Safe>;
impl<'a, REG> TAMPFREQ_W<'a, REG>
where
REG: crate::Writable + crate::RegisterSpec,
REG::Ux: From<u8>,
{
#[inline(always)]
pub fn div32768(self) -> &'a mut crate::W<REG> {
self.variant(TAMPFREQ::Div32768)
}
#[inline(always)]
pub fn div16384(self) -> &'a mut crate::W<REG> {
self.variant(TAMPFREQ::Div16384)
}
#[inline(always)]
pub fn div8192(self) -> &'a mut crate::W<REG> {
self.variant(TAMPFREQ::Div8192)
}
#[inline(always)]
pub fn div4096(self) -> &'a mut crate::W<REG> {
self.variant(TAMPFREQ::Div4096)
}
#[inline(always)]
pub fn div2048(self) -> &'a mut crate::W<REG> {
self.variant(TAMPFREQ::Div2048)
}
#[inline(always)]
pub fn div1024(self) -> &'a mut crate::W<REG> {
self.variant(TAMPFREQ::Div1024)
}
#[inline(always)]
pub fn div512(self) -> &'a mut crate::W<REG> {
self.variant(TAMPFREQ::Div512)
}
#[inline(always)]
pub fn div256(self) -> &'a mut crate::W<REG> {
self.variant(TAMPFREQ::Div256)
}
}
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
#[repr(u8)]
pub enum TAMPFLT {
Immediate = 0,
Samples2 = 1,
Samples4 = 2,
Samples8 = 3,
}
impl From<TAMPFLT> for u8 {
#[inline(always)]
fn from(variant: TAMPFLT) -> Self {
variant as _
}
}
impl crate::FieldSpec for TAMPFLT {
type Ux = u8;
}
impl crate::IsEnum for TAMPFLT {}
pub type TAMPFLT_R = crate::FieldReader<TAMPFLT>;
impl TAMPFLT_R {
#[inline(always)]
pub const fn variant(&self) -> TAMPFLT {
match self.bits {
0 => TAMPFLT::Immediate,
1 => TAMPFLT::Samples2,
2 => TAMPFLT::Samples4,
3 => TAMPFLT::Samples8,
_ => unreachable!(),
}
}
#[inline(always)]
pub fn is_immediate(&self) -> bool {
*self == TAMPFLT::Immediate
}
#[inline(always)]
pub fn is_samples2(&self) -> bool {
*self == TAMPFLT::Samples2
}
#[inline(always)]
pub fn is_samples4(&self) -> bool {
*self == TAMPFLT::Samples4
}
#[inline(always)]
pub fn is_samples8(&self) -> bool {
*self == TAMPFLT::Samples8
}
}
pub type TAMPFLT_W<'a, REG> = crate::FieldWriter<'a, REG, 2, TAMPFLT, crate::Safe>;
impl<'a, REG> TAMPFLT_W<'a, REG>
where
REG: crate::Writable + crate::RegisterSpec,
REG::Ux: From<u8>,
{
#[inline(always)]
pub fn immediate(self) -> &'a mut crate::W<REG> {
self.variant(TAMPFLT::Immediate)
}
#[inline(always)]
pub fn samples2(self) -> &'a mut crate::W<REG> {
self.variant(TAMPFLT::Samples2)
}
#[inline(always)]
pub fn samples4(self) -> &'a mut crate::W<REG> {
self.variant(TAMPFLT::Samples4)
}
#[inline(always)]
pub fn samples8(self) -> &'a mut crate::W<REG> {
self.variant(TAMPFLT::Samples8)
}
}
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
#[repr(u8)]
pub enum TAMPPRCH {
Cycles1 = 0,
Cycles2 = 1,
Cycles4 = 2,
Cycles8 = 3,
}
impl From<TAMPPRCH> for u8 {
#[inline(always)]
fn from(variant: TAMPPRCH) -> Self {
variant as _
}
}
impl crate::FieldSpec for TAMPPRCH {
type Ux = u8;
}
impl crate::IsEnum for TAMPPRCH {}
pub type TAMPPRCH_R = crate::FieldReader<TAMPPRCH>;
impl TAMPPRCH_R {
#[inline(always)]
pub const fn variant(&self) -> TAMPPRCH {
match self.bits {
0 => TAMPPRCH::Cycles1,
1 => TAMPPRCH::Cycles2,
2 => TAMPPRCH::Cycles4,
3 => TAMPPRCH::Cycles8,
_ => unreachable!(),
}
}
#[inline(always)]
pub fn is_cycles1(&self) -> bool {
*self == TAMPPRCH::Cycles1
}
#[inline(always)]
pub fn is_cycles2(&self) -> bool {
*self == TAMPPRCH::Cycles2
}
#[inline(always)]
pub fn is_cycles4(&self) -> bool {
*self == TAMPPRCH::Cycles4
}
#[inline(always)]
pub fn is_cycles8(&self) -> bool {
*self == TAMPPRCH::Cycles8
}
}
pub type TAMPPRCH_W<'a, REG> = crate::FieldWriter<'a, REG, 2, TAMPPRCH, crate::Safe>;
impl<'a, REG> TAMPPRCH_W<'a, REG>
where
REG: crate::Writable + crate::RegisterSpec,
REG::Ux: From<u8>,
{
#[inline(always)]
pub fn cycles1(self) -> &'a mut crate::W<REG> {
self.variant(TAMPPRCH::Cycles1)
}
#[inline(always)]
pub fn cycles2(self) -> &'a mut crate::W<REG> {
self.variant(TAMPPRCH::Cycles2)
}
#[inline(always)]
pub fn cycles4(self) -> &'a mut crate::W<REG> {
self.variant(TAMPPRCH::Cycles4)
}
#[inline(always)]
pub fn cycles8(self) -> &'a mut crate::W<REG> {
self.variant(TAMPPRCH::Cycles8)
}
}
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum TAMPPUDIS {
Enabled = 0,
Disabled = 1,
}
impl From<TAMPPUDIS> for bool {
#[inline(always)]
fn from(variant: TAMPPUDIS) -> Self {
variant as u8 != 0
}
}
pub type TAMPPUDIS_R = crate::BitReader<TAMPPUDIS>;
impl TAMPPUDIS_R {
#[inline(always)]
pub const fn variant(&self) -> TAMPPUDIS {
match self.bits {
false => TAMPPUDIS::Enabled,
true => TAMPPUDIS::Disabled,
}
}
#[inline(always)]
pub fn is_enabled(&self) -> bool {
*self == TAMPPUDIS::Enabled
}
#[inline(always)]
pub fn is_disabled(&self) -> bool {
*self == TAMPPUDIS::Disabled
}
}
pub type TAMPPUDIS_W<'a, REG> = crate::BitWriter<'a, REG, TAMPPUDIS>;
impl<'a, REG> TAMPPUDIS_W<'a, REG>
where
REG: crate::Writable + crate::RegisterSpec,
{
#[inline(always)]
pub fn enabled(self) -> &'a mut crate::W<REG> {
self.variant(TAMPPUDIS::Enabled)
}
#[inline(always)]
pub fn disabled(self) -> &'a mut crate::W<REG> {
self.variant(TAMPPUDIS::Disabled)
}
}
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum TAMP1IE {
Disabled = 0,
Enabled = 1,
}
impl From<TAMP1IE> for bool {
#[inline(always)]
fn from(variant: TAMP1IE) -> Self {
variant as u8 != 0
}
}
pub type TAMP1IE_R = crate::BitReader<TAMP1IE>;
impl TAMP1IE_R {
#[inline(always)]
pub const fn variant(&self) -> TAMP1IE {
match self.bits {
false => TAMP1IE::Disabled,
true => TAMP1IE::Enabled,
}
}
#[inline(always)]
pub fn is_disabled(&self) -> bool {
*self == TAMP1IE::Disabled
}
#[inline(always)]
pub fn is_enabled(&self) -> bool {
*self == TAMP1IE::Enabled
}
}
pub type TAMP1IE_W<'a, REG> = crate::BitWriter<'a, REG, TAMP1IE>;
impl<'a, REG> TAMP1IE_W<'a, REG>
where
REG: crate::Writable + crate::RegisterSpec,
{
#[inline(always)]
pub fn disabled(self) -> &'a mut crate::W<REG> {
self.variant(TAMP1IE::Disabled)
}
#[inline(always)]
pub fn enabled(self) -> &'a mut crate::W<REG> {
self.variant(TAMP1IE::Enabled)
}
}
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum TAMP1NOERASE {
Erase = 0,
NoErase = 1,
}
impl From<TAMP1NOERASE> for bool {
#[inline(always)]
fn from(variant: TAMP1NOERASE) -> Self {
variant as u8 != 0
}
}
pub type TAMP1NOERASE_R = crate::BitReader<TAMP1NOERASE>;
impl TAMP1NOERASE_R {
#[inline(always)]
pub const fn variant(&self) -> TAMP1NOERASE {
match self.bits {
false => TAMP1NOERASE::Erase,
true => TAMP1NOERASE::NoErase,
}
}
#[inline(always)]
pub fn is_erase(&self) -> bool {
*self == TAMP1NOERASE::Erase
}
#[inline(always)]
pub fn is_no_erase(&self) -> bool {
*self == TAMP1NOERASE::NoErase
}
}
pub type TAMP1NOERASE_W<'a, REG> = crate::BitWriter<'a, REG, TAMP1NOERASE>;
impl<'a, REG> TAMP1NOERASE_W<'a, REG>
where
REG: crate::Writable + crate::RegisterSpec,
{
#[inline(always)]
pub fn erase(self) -> &'a mut crate::W<REG> {
self.variant(TAMP1NOERASE::Erase)
}
#[inline(always)]
pub fn no_erase(self) -> &'a mut crate::W<REG> {
self.variant(TAMP1NOERASE::NoErase)
}
}
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum TAMP1MF {
NotMasked = 0,
Masked = 1,
}
impl From<TAMP1MF> for bool {
#[inline(always)]
fn from(variant: TAMP1MF) -> Self {
variant as u8 != 0
}
}
pub type TAMP1MF_R = crate::BitReader<TAMP1MF>;
impl TAMP1MF_R {
#[inline(always)]
pub const fn variant(&self) -> TAMP1MF {
match self.bits {
false => TAMP1MF::NotMasked,
true => TAMP1MF::Masked,
}
}
#[inline(always)]
pub fn is_not_masked(&self) -> bool {
*self == TAMP1MF::NotMasked
}
#[inline(always)]
pub fn is_masked(&self) -> bool {
*self == TAMP1MF::Masked
}
}
pub type TAMP1MF_W<'a, REG> = crate::BitWriter<'a, REG, TAMP1MF>;
impl<'a, REG> TAMP1MF_W<'a, REG>
where
REG: crate::Writable + crate::RegisterSpec,
{
#[inline(always)]
pub fn not_masked(self) -> &'a mut crate::W<REG> {
self.variant(TAMP1MF::NotMasked)
}
#[inline(always)]
pub fn masked(self) -> &'a mut crate::W<REG> {
self.variant(TAMP1MF::Masked)
}
}
pub use TAMP1IE_R as TAMP2IE_R;
pub use TAMP1IE_R as TAMP3IE_R;
pub use TAMP1IE_W as TAMP2IE_W;
pub use TAMP1IE_W as TAMP3IE_W;
pub use TAMP1MF_R as TAMP2MF_R;
pub use TAMP1MF_R as TAMP3MF_R;
pub use TAMP1MF_W as TAMP2MF_W;
pub use TAMP1MF_W as TAMP3MF_W;
pub use TAMP1NOERASE_R as TAMP2NOERASE_R;
pub use TAMP1NOERASE_R as TAMP3NOERASE_R;
pub use TAMP1NOERASE_W as TAMP2NOERASE_W;
pub use TAMP1NOERASE_W as TAMP3NOERASE_W;
impl R {
#[inline(always)]
pub fn tamp1e(&self) -> TAMP1E_R {
TAMP1E_R::new((self.bits & 1) != 0)
}
#[inline(always)]
pub fn tamp1trg(&self) -> TAMP1TRG_R {
TAMP1TRG_R::new(((self.bits >> 1) & 1) != 0)
}
#[inline(always)]
pub fn tampie(&self) -> TAMPIE_R {
TAMPIE_R::new(((self.bits >> 2) & 1) != 0)
}
#[inline(always)]
pub fn tamp2e(&self) -> TAMP2E_R {
TAMP2E_R::new(((self.bits >> 3) & 1) != 0)
}
#[inline(always)]
pub fn tamp2trg(&self) -> TAMP2TRG_R {
TAMP2TRG_R::new(((self.bits >> 4) & 1) != 0)
}
#[inline(always)]
pub fn tamp3e(&self) -> TAMP3E_R {
TAMP3E_R::new(((self.bits >> 5) & 1) != 0)
}
#[inline(always)]
pub fn tamp3trg(&self) -> TAMP3TRG_R {
TAMP3TRG_R::new(((self.bits >> 6) & 1) != 0)
}
#[inline(always)]
pub fn tampts(&self) -> TAMPTS_R {
TAMPTS_R::new(((self.bits >> 7) & 1) != 0)
}
#[inline(always)]
pub fn tampfreq(&self) -> TAMPFREQ_R {
TAMPFREQ_R::new(((self.bits >> 8) & 7) as u8)
}
#[inline(always)]
pub fn tampflt(&self) -> TAMPFLT_R {
TAMPFLT_R::new(((self.bits >> 11) & 3) as u8)
}
#[inline(always)]
pub fn tampprch(&self) -> TAMPPRCH_R {
TAMPPRCH_R::new(((self.bits >> 13) & 3) as u8)
}
#[inline(always)]
pub fn tamppudis(&self) -> TAMPPUDIS_R {
TAMPPUDIS_R::new(((self.bits >> 15) & 1) != 0)
}
#[inline(always)]
pub fn tamp1ie(&self) -> TAMP1IE_R {
TAMP1IE_R::new(((self.bits >> 16) & 1) != 0)
}
#[inline(always)]
pub fn tamp1noerase(&self) -> TAMP1NOERASE_R {
TAMP1NOERASE_R::new(((self.bits >> 17) & 1) != 0)
}
#[inline(always)]
pub fn tamp1mf(&self) -> TAMP1MF_R {
TAMP1MF_R::new(((self.bits >> 18) & 1) != 0)
}
#[inline(always)]
pub fn tamp2ie(&self) -> TAMP2IE_R {
TAMP2IE_R::new(((self.bits >> 19) & 1) != 0)
}
#[inline(always)]
pub fn tamp2noerase(&self) -> TAMP2NOERASE_R {
TAMP2NOERASE_R::new(((self.bits >> 20) & 1) != 0)
}
#[inline(always)]
pub fn tamp2mf(&self) -> TAMP2MF_R {
TAMP2MF_R::new(((self.bits >> 21) & 1) != 0)
}
#[inline(always)]
pub fn tamp3ie(&self) -> TAMP3IE_R {
TAMP3IE_R::new(((self.bits >> 22) & 1) != 0)
}
#[inline(always)]
pub fn tamp3noerase(&self) -> TAMP3NOERASE_R {
TAMP3NOERASE_R::new(((self.bits >> 23) & 1) != 0)
}
#[inline(always)]
pub fn tamp3mf(&self) -> TAMP3MF_R {
TAMP3MF_R::new(((self.bits >> 24) & 1) != 0)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("TAMPCR")
.field("tamp1mf", &self.tamp1mf())
.field("tamp2mf", &self.tamp2mf())
.field("tamp1noerase", &self.tamp1noerase())
.field("tamp2noerase", &self.tamp2noerase())
.field("tamp1ie", &self.tamp1ie())
.field("tamp2ie", &self.tamp2ie())
.field("tamppudis", &self.tamppudis())
.field("tampprch", &self.tampprch())
.field("tampflt", &self.tampflt())
.field("tampfreq", &self.tampfreq())
.field("tampts", &self.tampts())
.field("tamp1trg", &self.tamp1trg())
.field("tamp2trg", &self.tamp2trg())
.field("tamp1e", &self.tamp1e())
.field("tamp2e", &self.tamp2e())
.field("tampie", &self.tampie())
.field("tamp3mf", &self.tamp3mf())
.field("tamp3noerase", &self.tamp3noerase())
.field("tamp3ie", &self.tamp3ie())
.field("tamp3trg", &self.tamp3trg())
.field("tamp3e", &self.tamp3e())
.finish()
}
}
impl W {
#[inline(always)]
pub fn tamp1e(&mut self) -> TAMP1E_W<TAMPCRrs> {
TAMP1E_W::new(self, 0)
}
#[inline(always)]
pub fn tamp1trg(&mut self) -> TAMP1TRG_W<TAMPCRrs> {
TAMP1TRG_W::new(self, 1)
}
#[inline(always)]
pub fn tampie(&mut self) -> TAMPIE_W<TAMPCRrs> {
TAMPIE_W::new(self, 2)
}
#[inline(always)]
pub fn tamp2e(&mut self) -> TAMP2E_W<TAMPCRrs> {
TAMP2E_W::new(self, 3)
}
#[inline(always)]
pub fn tamp2trg(&mut self) -> TAMP2TRG_W<TAMPCRrs> {
TAMP2TRG_W::new(self, 4)
}
#[inline(always)]
pub fn tamp3e(&mut self) -> TAMP3E_W<TAMPCRrs> {
TAMP3E_W::new(self, 5)
}
#[inline(always)]
pub fn tamp3trg(&mut self) -> TAMP3TRG_W<TAMPCRrs> {
TAMP3TRG_W::new(self, 6)
}
#[inline(always)]
pub fn tampts(&mut self) -> TAMPTS_W<TAMPCRrs> {
TAMPTS_W::new(self, 7)
}
#[inline(always)]
pub fn tampfreq(&mut self) -> TAMPFREQ_W<TAMPCRrs> {
TAMPFREQ_W::new(self, 8)
}
#[inline(always)]
pub fn tampflt(&mut self) -> TAMPFLT_W<TAMPCRrs> {
TAMPFLT_W::new(self, 11)
}
#[inline(always)]
pub fn tampprch(&mut self) -> TAMPPRCH_W<TAMPCRrs> {
TAMPPRCH_W::new(self, 13)
}
#[inline(always)]
pub fn tamppudis(&mut self) -> TAMPPUDIS_W<TAMPCRrs> {
TAMPPUDIS_W::new(self, 15)
}
#[inline(always)]
pub fn tamp1ie(&mut self) -> TAMP1IE_W<TAMPCRrs> {
TAMP1IE_W::new(self, 16)
}
#[inline(always)]
pub fn tamp1noerase(&mut self) -> TAMP1NOERASE_W<TAMPCRrs> {
TAMP1NOERASE_W::new(self, 17)
}
#[inline(always)]
pub fn tamp1mf(&mut self) -> TAMP1MF_W<TAMPCRrs> {
TAMP1MF_W::new(self, 18)
}
#[inline(always)]
pub fn tamp2ie(&mut self) -> TAMP2IE_W<TAMPCRrs> {
TAMP2IE_W::new(self, 19)
}
#[inline(always)]
pub fn tamp2noerase(&mut self) -> TAMP2NOERASE_W<TAMPCRrs> {
TAMP2NOERASE_W::new(self, 20)
}
#[inline(always)]
pub fn tamp2mf(&mut self) -> TAMP2MF_W<TAMPCRrs> {
TAMP2MF_W::new(self, 21)
}
#[inline(always)]
pub fn tamp3ie(&mut self) -> TAMP3IE_W<TAMPCRrs> {
TAMP3IE_W::new(self, 22)
}
#[inline(always)]
pub fn tamp3noerase(&mut self) -> TAMP3NOERASE_W<TAMPCRrs> {
TAMP3NOERASE_W::new(self, 23)
}
#[inline(always)]
pub fn tamp3mf(&mut self) -> TAMP3MF_W<TAMPCRrs> {
TAMP3MF_W::new(self, 24)
}
}
pub struct TAMPCRrs;
impl crate::RegisterSpec for TAMPCRrs {
type Ux = u32;
}
impl crate::Readable for TAMPCRrs {}
impl crate::Writable for TAMPCRrs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for TAMPCRrs {}