cyt4dn_c/m7/eth0/
tsu_strobe_sec.rs

1#[doc = "Register `TSU_STROBE_SEC` reader"]
2pub struct R(crate::R<TSU_STROBE_SEC_SPEC>);
3impl core::ops::Deref for R {
4    type Target = crate::R<TSU_STROBE_SEC_SPEC>;
5    #[inline(always)]
6    fn deref(&self) -> &Self::Target {
7        &self.0
8    }
9}
10impl From<crate::R<TSU_STROBE_SEC_SPEC>> for R {
11    #[inline(always)]
12    fn from(reader: crate::R<TSU_STROBE_SEC_SPEC>) -> Self {
13        R(reader)
14    }
15}
16#[doc = "Field `STROBE_SEC` reader - 1588 Timer Sync Strobe Seconds. The lowest significant 32-bit value of the Timer Seconds register captured when gem_tsu_ms and gem_tsu_inc_ctrl are zero."]
17pub type STROBE_SEC_R = crate::FieldReader<u32, u32>;
18impl R {
19    #[doc = "Bits 0:31 - 1588 Timer Sync Strobe Seconds. The lowest significant 32-bit value of the Timer Seconds register captured when gem_tsu_ms and gem_tsu_inc_ctrl are zero."]
20    #[inline(always)]
21    pub fn strobe_sec(&self) -> STROBE_SEC_R {
22        STROBE_SEC_R::new(self.bits)
23    }
24}
25#[doc = "1588 Timer Sync Strobe Seconds Register (31 to 0 bits)\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 [tsu_strobe_sec](index.html) module"]
26pub struct TSU_STROBE_SEC_SPEC;
27impl crate::RegisterSpec for TSU_STROBE_SEC_SPEC {
28    type Ux = u32;
29}
30#[doc = "`read()` method returns [tsu_strobe_sec::R](R) reader structure"]
31impl crate::Readable for TSU_STROBE_SEC_SPEC {
32    type Reader = R;
33}
34#[doc = "`reset()` method sets TSU_STROBE_SEC to value 0"]
35impl crate::Resettable for TSU_STROBE_SEC_SPEC {
36    const RESET_VALUE: Self::Ux = 0;
37}