pub type R = crate::R<SRCrs>;
pub type W = crate::W<SRCrs>;
pub type SrcaddrR = crate::FieldReader<u32>;
pub type SrcaddrW<'a, REG> = crate::FieldWriter<'a, REG, 32, u32>;
impl R {
#[inline(always)]
pub fn srcaddr(&self) -> SrcaddrR {
SrcaddrR::new(self.bits)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("SRC")
.field("srcaddr", &self.srcaddr())
.finish()
}
}
impl W {
#[inline(always)]
pub fn srcaddr(&mut self) -> SrcaddrW<'_, SRCrs> {
SrcaddrW::new(self, 0)
}
}
pub struct SRCrs;
impl crate::RegisterSpec for SRCrs {
type Ux = u32;
}
impl crate::Readable for SRCrs {}
impl crate::Writable for SRCrs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for SRCrs {}