cc2538_pac/gptimer2/
tapmr.rs1#[doc = "Register `TAPMR` reader"]
2pub type R = crate::R<TapmrSpec>;
3#[doc = "Register `TAPMR` writer"]
4pub type W = crate::W<TapmrSpec>;
5#[doc = "Field `TAPSR` reader - GPTM Timer A prescale match"]
6pub type TapsrR = crate::FieldReader;
7#[doc = "Field `TAPSR` writer - GPTM Timer A prescale match"]
8pub type TapsrW<'a, REG> = crate::FieldWriter<'a, REG, 8>;
9impl R {
10 #[doc = "Bits 0:7 - GPTM Timer A prescale match"]
11 #[inline(always)]
12 pub fn tapsr(&self) -> TapsrR {
13 TapsrR::new((self.bits & 0xff) as u8)
14 }
15}
16impl W {
17 #[doc = "Bits 0:7 - GPTM Timer A prescale match"]
18 #[inline(always)]
19 pub fn tapsr(&mut self) -> TapsrW<TapmrSpec> {
20 TapsrW::new(self, 0)
21 }
22}
23#[doc = "GPTM Timer A prescale match This register effectively extends the range of TAMATCHR to 24 bits when operating in 16-bit, one-shot or periodic mode.\n\nYou can [`read`](crate::Reg::read) this register and get [`tapmr::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`tapmr::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
24pub struct TapmrSpec;
25impl crate::RegisterSpec for TapmrSpec {
26 type Ux = u32;
27}
28#[doc = "`read()` method returns [`tapmr::R`](R) reader structure"]
29impl crate::Readable for TapmrSpec {}
30#[doc = "`write(|w| ..)` method takes [`tapmr::W`](W) writer structure"]
31impl crate::Writable for TapmrSpec {
32 type Safety = crate::Unsafe;
33 const ZERO_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
34 const ONE_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
35}
36#[doc = "`reset()` method sets TAPMR to value 0"]
37impl crate::Resettable for TapmrSpec {
38 const RESET_VALUE: u32 = 0;
39}