corstone300_pac/ethernet/
rx_dp_ctl.rs

1// Copyright 2022 Arm Limited and/or its affiliates <open-source-office@arm.com>
2//
3// SPDX-License-Identifier: MIT
4
5#[doc = "Register `RX_DP_CTL` reader"]
6pub struct R(crate::R<RX_DP_CTL_SPEC>);
7impl core::ops::Deref for R {
8    type Target = crate::R<RX_DP_CTL_SPEC>;
9    #[inline(always)]
10    fn deref(&self) -> &Self::Target {
11        &self.0
12    }
13}
14impl From<crate::R<RX_DP_CTL_SPEC>> for R {
15    #[inline(always)]
16    fn from(reader: crate::R<RX_DP_CTL_SPEC>) -> Self {
17        R(reader)
18    }
19}
20#[doc = "Field `RX_FFWD` reader - RX Data FIFO Fast Forward"]
21pub type RX_FFWD_R = crate::BitReader<bool>;
22impl R {
23    #[doc = "Bit 31 - RX Data FIFO Fast Forward"]
24    #[inline(always)]
25    pub fn rx_ffwd(&self) -> RX_FFWD_R {
26        RX_FFWD_R::new(((self.bits >> 31) & 1) != 0)
27    }
28}
29#[doc = "RX Datapath Control\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 [rx_dp_ctl](index.html) module"]
30pub struct RX_DP_CTL_SPEC;
31impl crate::RegisterSpec for RX_DP_CTL_SPEC {
32    type Ux = u32;
33}
34#[doc = "`read()` method returns [rx_dp_ctl::R](R) reader structure"]
35impl crate::Readable for RX_DP_CTL_SPEC {
36    type Reader = R;
37}
38#[doc = "`reset()` method sets RX_DP_CTL to value 0"]
39impl crate::Resettable for RX_DP_CTL_SPEC {
40    #[inline(always)]
41    fn reset_value() -> Self::Ux {
42        0
43    }
44}