///Register `DINR22` reader
pub type R = crate::R<DINR22rs>;
///Field `DIN22` reader - Input data received from MDIO Master during write frames
pub type DIN22_R = crate::FieldReader<u16>;
impl R {
///Bits 0:15 - Input data received from MDIO Master during write frames
#[inline(always)]
pub fn din22(&self) -> DIN22_R {
DIN22_R::new((self.bits & 0xffff) as u16)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("DINR22").field("din22", &self.din22()).finish()
}
}
/**MDIOS input data register 22
You can [`read`](crate::Reg::read) this register and get [`dinr22::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api).*/
pub struct DINR22rs;
impl crate::RegisterSpec for DINR22rs {
type Ux = u32;
}
///`read()` method returns [`dinr22::R`](R) reader structure
impl crate::Readable for DINR22rs {}
///`reset()` method sets DINR22 to value 0
impl crate::Resettable for DINR22rs {}