pub type R = crate::R<PMCrs>;
pub type W = crate::W<PMCrs>;
pub type MII_RMII_SEL_R = crate::BitReader;
pub type MII_RMII_SEL_W<'a, REG> = crate::BitWriter<'a, REG>;
impl R {
#[inline(always)]
pub fn mii_rmii_sel(&self) -> MII_RMII_SEL_R {
MII_RMII_SEL_R::new(((self.bits >> 23) & 1) != 0)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("PMC")
.field("mii_rmii_sel", &self.mii_rmii_sel())
.finish()
}
}
impl W {
#[inline(always)]
pub fn mii_rmii_sel(&mut self) -> MII_RMII_SEL_W<PMCrs> {
MII_RMII_SEL_W::new(self, 23)
}
}
pub struct PMCrs;
impl crate::RegisterSpec for PMCrs {
type Ux = u32;
}
impl crate::Readable for PMCrs {}
impl crate::Writable for PMCrs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for PMCrs {}