efm32gg11b/letimer0/
rep0.rs

1#[doc = "Reader of register REP0"]
2pub type R = crate::R<u32, super::REP0>;
3#[doc = "Writer for register REP0"]
4pub type W = crate::W<u32, super::REP0>;
5#[doc = "Register REP0 `reset()`'s with value 0"]
6impl crate::ResetValue for super::REP0 {
7    type Type = u32;
8    #[inline(always)]
9    fn reset_value() -> Self::Type { 0 }
10}
11#[doc = "Reader of field `REP0`"]
12pub type REP0_R = crate::R<u8, u8>;
13#[doc = "Write proxy for field `REP0`"]
14pub struct REP0_W<'a> {
15    w: &'a mut W,
16}
17impl<'a> REP0_W<'a> {
18    #[doc = r"Writes raw bits to the field"]
19    #[inline(always)]
20    pub unsafe fn bits(self, value: u8) -> &'a mut W {
21        self.w.bits = (self.w.bits & !0xff) | ((value as u32) & 0xff);
22        self.w
23    }
24}
25impl R {
26    #[doc = "Bits 0:7 - Repeat Counter 0"]
27    #[inline(always)]
28    pub fn rep0(&self) -> REP0_R { REP0_R::new((self.bits & 0xff) as u8) }
29}
30impl W {
31    #[doc = "Bits 0:7 - Repeat Counter 0"]
32    #[inline(always)]
33    pub fn rep0(&mut self) -> REP0_W { REP0_W { w: self } }
34}