tm4c123x/wtimer0/
tapmr.rs1#[doc = "Reader of register TAPMR"]
2pub type R = crate::R<u32, super::TAPMR>;
3#[doc = "Writer for register TAPMR"]
4pub type W = crate::W<u32, super::TAPMR>;
5#[doc = "Register TAPMR `reset()`'s with value 0"]
6impl crate::ResetValue for super::TAPMR {
7 type Type = u32;
8 #[inline(always)]
9 fn reset_value() -> Self::Type {
10 0
11 }
12}
13#[doc = "Reader of field `TAPSMR`"]
14pub type TAPSMR_R = crate::R<u8, u8>;
15#[doc = "Write proxy for field `TAPSMR`"]
16pub struct TAPSMR_W<'a> {
17 w: &'a mut W,
18}
19impl<'a> TAPSMR_W<'a> {
20 #[doc = r"Writes raw bits to the field"]
21 #[inline(always)]
22 pub unsafe fn bits(self, value: u8) -> &'a mut W {
23 self.w.bits = (self.w.bits & !0xff) | ((value as u32) & 0xff);
24 self.w
25 }
26}
27#[doc = "Reader of field `TAPSMRH`"]
28pub type TAPSMRH_R = crate::R<u8, u8>;
29#[doc = "Write proxy for field `TAPSMRH`"]
30pub struct TAPSMRH_W<'a> {
31 w: &'a mut W,
32}
33impl<'a> TAPSMRH_W<'a> {
34 #[doc = r"Writes raw bits to the field"]
35 #[inline(always)]
36 pub unsafe fn bits(self, value: u8) -> &'a mut W {
37 self.w.bits = (self.w.bits & !(0xff << 8)) | (((value as u32) & 0xff) << 8);
38 self.w
39 }
40}
41impl R {
42 #[doc = "Bits 0:7 - GPTM TimerA Prescale Match"]
43 #[inline(always)]
44 pub fn tapsmr(&self) -> TAPSMR_R {
45 TAPSMR_R::new((self.bits & 0xff) as u8)
46 }
47 #[doc = "Bits 8:15 - GPTM Timer A Prescale Match High Byte"]
48 #[inline(always)]
49 pub fn tapsmrh(&self) -> TAPSMRH_R {
50 TAPSMRH_R::new(((self.bits >> 8) & 0xff) as u8)
51 }
52}
53impl W {
54 #[doc = "Bits 0:7 - GPTM TimerA Prescale Match"]
55 #[inline(always)]
56 pub fn tapsmr(&mut self) -> TAPSMR_W {
57 TAPSMR_W { w: self }
58 }
59 #[doc = "Bits 8:15 - GPTM Timer A Prescale Match High Byte"]
60 #[inline(always)]
61 pub fn tapsmrh(&mut self) -> TAPSMRH_W {
62 TAPSMRH_W { w: self }
63 }
64}