///Register `DINR8` reader
pub type R = crate::R<DINR8rs>;
///Field `DIN` reader - input data received from MDIO master during write frames This field is written by hardware with the 16-bit data received in a write frame which is addressed to MDIOS register x.
pub type DIN_R = crate::FieldReader<u16>;
impl R {
///Bits 0:15 - input data received from MDIO master during write frames This field is written by hardware with the 16-bit data received in a write frame which is addressed to MDIOS register x.
#[inline(always)]
pub fn din(&self) -> DIN_R {
DIN_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("DINR8").field("din", &self.din()).finish()
}
}
/**MDIOS input data register 8
You can [`read`](crate::Reg::read) this register and get [`dinr8::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api).*/
pub struct DINR8rs;
impl crate::RegisterSpec for DINR8rs {
type Ux = u32;
}
///`read()` method returns [`dinr8::R`](R) reader structure
impl crate::Readable for DINR8rs {}
///`reset()` method sets DINR8 to value 0
impl crate::Resettable for DINR8rs {}