pub type R = crate::R<FARrs>;
pub type W = crate::W<FARrs>;
pub type FAIL_ECC_ADDR_R = crate::FieldReader<u16>;
pub type FAIL_ECC_ADDR_W<'a, REG> = crate::FieldWriter<'a, REG, 15, u16>;
impl R {
#[inline(always)]
pub fn fail_ecc_addr(&self) -> FAIL_ECC_ADDR_R {
FAIL_ECC_ADDR_R::new((self.bits & 0x7fff) as u16)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("FAR").field("fail_ecc_addr", &self.fail_ecc_addr()).finish()
}
}
impl W {
#[inline(always)]
pub fn fail_ecc_addr(&mut self) -> FAIL_ECC_ADDR_W<FARrs> {
FAIL_ECC_ADDR_W::new(self, 0)
}
}
pub struct FARrs;
impl crate::RegisterSpec for FARrs {
type Ux = u32;
}
impl crate::Readable for FARrs {}
impl crate::Writable for FARrs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for FARrs {}