cyt3bb_a/m0/eth0/
tsu_peer_rx_msb_sec.rs

1#[doc = "Register `TSU_PEER_RX_MSB_SEC` reader"]
2pub struct R(crate::R<TSU_PEER_RX_MSB_SEC_SPEC>);
3impl core::ops::Deref for R {
4    type Target = crate::R<TSU_PEER_RX_MSB_SEC_SPEC>;
5    #[inline(always)]
6    fn deref(&self) -> &Self::Target {
7        &self.0
8    }
9}
10impl From<crate::R<TSU_PEER_RX_MSB_SEC_SPEC>> for R {
11    #[inline(always)]
12    fn from(reader: crate::R<TSU_PEER_RX_MSB_SEC_SPEC>) -> Self {
13        R(reader)
14    }
15}
16#[doc = "Field `TIMER_SECONDS` reader - PTP Peer Event Frame RX Seconds. The register is updated with the value that the 1588 timer seconds register held when the SFD of a PTP receive peer event crosses the MII interface. The actual update occurs when the GEM recognizes the frame as a PTP pdelay_req or pdelay_resp frame. An interrupt is issued when the register is updated."]
17pub type TIMER_SECONDS_R = crate::FieldReader<u16, u16>;
18impl R {
19    #[doc = "Bits 0:15 - PTP Peer Event Frame RX Seconds. The register is updated with the value that the 1588 timer seconds register held when the SFD of a PTP receive peer event crosses the MII interface. The actual update occurs when the GEM recognizes the frame as a PTP pdelay_req or pdelay_resp frame. An interrupt is issued when the register is updated."]
20    #[inline(always)]
21    pub fn timer_seconds(&self) -> TIMER_SECONDS_R {
22        TIMER_SECONDS_R::new((self.bits & 0xffff) as u16)
23    }
24}
25#[doc = "PTP Peer Event Frame Received Seconds Register (47 to 32 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_peer_rx_msb_sec](index.html) module"]
26pub struct TSU_PEER_RX_MSB_SEC_SPEC;
27impl crate::RegisterSpec for TSU_PEER_RX_MSB_SEC_SPEC {
28    type Ux = u32;
29}
30#[doc = "`read()` method returns [tsu_peer_rx_msb_sec::R](R) reader structure"]
31impl crate::Readable for TSU_PEER_RX_MSB_SEC_SPEC {
32    type Reader = R;
33}
34#[doc = "`reset()` method sets TSU_PEER_RX_MSB_SEC to value 0"]
35impl crate::Resettable for TSU_PEER_RX_MSB_SEC_SPEC {
36    const RESET_VALUE: Self::Ux = 0;
37}