1#[doc = "Register `CR` reader"]
2pub type R = crate::R<CR_SPEC>;
3#[doc = "Field `CR` reader - Compare Register"]
4pub type CR_R = crate::FieldReader<u16>;
5impl R {
6 #[doc = "Bits 0:15 - Compare Register"]
7 #[inline(always)]
8 pub fn cr(&self) -> CR_R {
9 CR_R::new((self.bits & 0xffff) as u16)
10 }
11}
12#[doc = "Timer Compare Value\n\nYou can [`read`](crate::Reg::read) this register and get [`cr::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
13pub struct CR_SPEC;
14impl crate::RegisterSpec for CR_SPEC {
15 type Ux = u32;
16}
17#[doc = "`read()` method returns [`cr::R`](R) reader structure"]
18impl crate::Readable for CR_SPEC {}
19#[doc = "`reset()` method sets CR to value 0"]
20impl crate::Resettable for CR_SPEC {
21 const RESET_VALUE: u32 = 0;
22}