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