cyt4dn_b 0.0.1

Peripheral access crate for cyt4dn_b T2G family
Documentation
#[doc = "Register `TSU_PEER_RX_SEC` reader"]
pub struct R(crate::R<TSU_PEER_RX_SEC_SPEC>);
impl core::ops::Deref for R {
    type Target = crate::R<TSU_PEER_RX_SEC_SPEC>;
    #[inline(always)]
    fn deref(&self) -> &Self::Target {
        &self.0
    }
}
impl From<crate::R<TSU_PEER_RX_SEC_SPEC>> for R {
    #[inline(always)]
    fn from(reader: crate::R<TSU_PEER_RX_SEC_SPEC>) -> Self {
        R(reader)
    }
}
#[doc = "Field `TIMER_PEER_SEC` reader - PTP Peer Event Frame Received 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."]
pub type TIMER_PEER_SEC_R = crate::FieldReader<u32, u32>;
impl R {
    #[doc = "Bits 0:31 - PTP Peer Event Frame Received 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."]
    #[inline(always)]
    pub fn timer_peer_sec(&self) -> TIMER_PEER_SEC_R {
        TIMER_PEER_SEC_R::new(self.bits)
    }
}
#[doc = "PTP Peer Event Frame Received 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_peer_rx_sec](index.html) module"]
pub struct TSU_PEER_RX_SEC_SPEC;
impl crate::RegisterSpec for TSU_PEER_RX_SEC_SPEC {
    type Ux = u32;
}
#[doc = "`read()` method returns [tsu_peer_rx_sec::R](R) reader structure"]
impl crate::Readable for TSU_PEER_RX_SEC_SPEC {
    type Reader = R;
}
#[doc = "`reset()` method sets TSU_PEER_RX_SEC to value 0"]
impl crate::Resettable for TSU_PEER_RX_SEC_SPEC {
    const RESET_VALUE: Self::Ux = 0;
}