#[doc = "Register `MR[%s]` reader"]
pub type R = crate::R<MrSpec>;
#[doc = "Register `MR[%s]` writer"]
pub type W = crate::W<MrSpec>;
#[doc = "Field `MATCH` reader - Timer Counter Match Value"]
pub type MatchR = crate::FieldReader<u32>;
#[doc = "Field `MATCH` writer - Timer Counter Match Value"]
pub type MatchW<'a, REG> = crate::FieldWriter<'a, REG, 32, u32>;
impl R {
#[doc = "Bits 0:31 - Timer Counter Match Value"]
#[inline(always)]
pub fn match_(&self) -> MatchR {
MatchR::new(self.bits)
}
}
#[cfg(feature = "debug")]
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("MR").field("match_", &self.match_()).finish()
}
}
impl W {
#[doc = "Bits 0:31 - Timer Counter Match Value"]
#[inline(always)]
pub fn match_(&mut self) -> MatchW<'_, MrSpec> {
MatchW::new(self, 0)
}
}
#[doc = "Match\n\nYou can [`read`](crate::Reg::read) this register and get [`mr::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`mr::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct MrSpec;
impl crate::RegisterSpec for MrSpec {
type Ux = u32;
}
#[doc = "`read()` method returns [`mr::R`](R) reader structure"]
impl crate::Readable for MrSpec {}
#[doc = "`write(|w| ..)` method takes [`mr::W`](W) writer structure"]
impl crate::Writable for MrSpec {
type Safety = crate::Unsafe;
}
#[doc = "`reset()` method sets MR[%s] to value 0"]
impl crate::Resettable for MrSpec {}