rk3399-pac 0.1.4

Peripheral Access Crate (PAC) for the RK3399 SoC from Rockchip
Documentation
#[doc = "Register `PCIE_LM_SRIS_CONTROL` reader"]
pub type R = crate::R<PcieLmSrisControlSpec>;
#[doc = "Register `PCIE_LM_SRIS_CONTROL` writer"]
pub type W = crate::W<PcieLmSrisControlSpec>;
#[doc = "Field `SRISE` reader - SRIS Enable \\[SRISE\\]\n\nSetting this bit enables SRIS mode\n\nin the PHY layer. This bit should be\n\nbefore link training begins by holding\n\nthe LINK_TRAINING_ENABLE input\n\nto 1'b0."]
pub type SriseR = crate::BitReader;
#[doc = "Field `SRISE` writer - SRIS Enable \\[SRISE\\]\n\nSetting this bit enables SRIS mode\n\nin the PHY layer. This bit should be\n\nbefore link training begins by holding\n\nthe LINK_TRAINING_ENABLE input\n\nto 1'b0."]
pub type SriseW<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `R31` reader - Reserved \\[R31\\]\n\nReserved"]
pub type R31R = crate::FieldReader<u32>;
impl R {
    #[doc = "Bit 0 - SRIS Enable \\[SRISE\\]\n\nSetting this bit enables SRIS mode\n\nin the PHY layer. This bit should be\n\nbefore link training begins by holding\n\nthe LINK_TRAINING_ENABLE input\n\nto 1'b0."]
    #[inline(always)]
    pub fn srise(&self) -> SriseR {
        SriseR::new((self.bits & 1) != 0)
    }
    #[doc = "Bits 1:31 - Reserved \\[R31\\]\n\nReserved"]
    #[inline(always)]
    pub fn r31(&self) -> R31R {
        R31R::new((self.bits >> 1) & 0x7fff_ffff)
    }
}
impl W {
    #[doc = "Bit 0 - SRIS Enable \\[SRISE\\]\n\nSetting this bit enables SRIS mode\n\nin the PHY layer. This bit should be\n\nbefore link training begins by holding\n\nthe LINK_TRAINING_ENABLE input\n\nto 1'b0."]
    #[inline(always)]
    #[must_use]
    pub fn srise(&mut self) -> SriseW<PcieLmSrisControlSpec> {
        SriseW::new(self, 0)
    }
}
#[doc = "SRIS Control Register\n\nReserved\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`pcie_lm_sris_control::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`pcie_lm_sris_control::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct PcieLmSrisControlSpec;
impl crate::RegisterSpec for PcieLmSrisControlSpec {
    type Ux = u32;
}
#[doc = "`read()` method returns [`pcie_lm_sris_control::R`](R) reader structure"]
impl crate::Readable for PcieLmSrisControlSpec {}
#[doc = "`write(|w| ..)` method takes [`pcie_lm_sris_control::W`](W) writer structure"]
impl crate::Writable for PcieLmSrisControlSpec {
    type Safety = crate::Unsafe;
    const ZERO_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
    const ONE_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
}
#[doc = "`reset()` method sets PCIE_LM_SRIS_CONTROL to value 0"]
impl crate::Resettable for PcieLmSrisControlSpec {
    const RESET_VALUE: u32 = 0;
}