1#[doc = "Register `RDAYCP%s` reader"]
2pub struct R(crate::R<RDAYCP_SPEC>);
3impl core::ops::Deref for R {
4 type Target = crate::R<RDAYCP_SPEC>;
5 #[inline(always)]
6 fn deref(&self) -> &Self::Target {
7 &self.0
8 }
9}
10impl From<crate::R<RDAYCP_SPEC>> for R {
11 #[inline(always)]
12 fn from(reader: crate::R<RDAYCP_SPEC>) -> Self {
13 R(reader)
14 }
15}
16#[doc = "Field `DATE1` reader - 1-Day Capture Capture value for the ones place of minutes"]
17pub type DATE1_R = crate::FieldReader<u8, u8>;
18#[doc = "Field `DATE10` reader - 10-Day Capture Capture value for the tens place of minutes"]
19pub type DATE10_R = crate::FieldReader<u8, u8>;
20impl R {
21 #[doc = "Bits 0:3 - 1-Day Capture Capture value for the ones place of minutes"]
22 #[inline(always)]
23 pub fn date1(&self) -> DATE1_R {
24 DATE1_R::new(self.bits & 0x0f)
25 }
26 #[doc = "Bits 4:5 - 10-Day Capture Capture value for the tens place of minutes"]
27 #[inline(always)]
28 pub fn date10(&self) -> DATE10_R {
29 DATE10_R::new((self.bits >> 4) & 3)
30 }
31}
32#[doc = "Date Capture Register %s\n\nThis register you can [`read`](crate::generic::Reg::read). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [rdaycp](index.html) module"]
33pub struct RDAYCP_SPEC;
34impl crate::RegisterSpec for RDAYCP_SPEC {
35 type Ux = u8;
36}
37#[doc = "`read()` method returns [rdaycp::R](R) reader structure"]
38impl crate::Readable for RDAYCP_SPEC {
39 type Reader = R;
40}
41#[doc = "`reset()` method sets RDAYCP%s to value 0"]
42impl crate::Resettable for RDAYCP_SPEC {
43 const RESET_VALUE: Self::Ux = 0;
44}