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