mcxn947_pac/rtc0/
rtc_test2.rs

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