ra6e1/rtc/
rseccp.rs

1#[doc = "Register `RSECCP%s` reader"]
2pub struct R(crate::R<RSECCP_SPEC>);
3impl core::ops::Deref for R {
4    type Target = crate::R<RSECCP_SPEC>;
5    #[inline(always)]
6    fn deref(&self) -> &Self::Target {
7        &self.0
8    }
9}
10impl From<crate::R<RSECCP_SPEC>> for R {
11    #[inline(always)]
12    fn from(reader: crate::R<RSECCP_SPEC>) -> Self {
13        R(reader)
14    }
15}
16#[doc = "Field `SEC1` reader - 1-Second Capture"]
17pub type SEC1_R = crate::FieldReader<u8, u8>;
18#[doc = "Field `SEC10` reader - 10-Second Capture"]
19pub type SEC10_R = crate::FieldReader<u8, u8>;
20impl R {
21    #[doc = "Bits 0:3 - 1-Second Capture"]
22    #[inline(always)]
23    pub fn sec1(&self) -> SEC1_R {
24        SEC1_R::new(self.bits & 0x0f)
25    }
26    #[doc = "Bits 4:6 - 10-Second Capture"]
27    #[inline(always)]
28    pub fn sec10(&self) -> SEC10_R {
29        SEC10_R::new((self.bits >> 4) & 7)
30    }
31}
32#[doc = "Second 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 [rseccp](index.html) module"]
33pub struct RSECCP_SPEC;
34impl crate::RegisterSpec for RSECCP_SPEC {
35    type Ux = u8;
36}
37#[doc = "`read()` method returns [rseccp::R](R) reader structure"]
38impl crate::Readable for RSECCP_SPEC {
39    type Reader = R;
40}
41#[doc = "`reset()` method sets RSECCP%s to value 0"]
42impl crate::Resettable for RSECCP_SPEC {
43    const RESET_VALUE: Self::Ux = 0;
44}