efm32gg11b/timer3/
cc1_ccvb.rs

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