pub type R = crate::R<SADDRrs>;
pub type W = crate::W<SADDRrs>;
pub type AddrR = crate::FieldReader;
pub type AddrW<'a, REG> = crate::FieldWriter<'a, REG, 7>;
impl R {
#[inline(always)]
pub fn addr(&self) -> AddrR {
AddrR::new(((self.bits >> 1) & 0x7f) as u8)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("SADDR").field("addr", &self.addr()).finish()
}
}
impl W {
#[inline(always)]
pub fn addr(&mut self) -> AddrW<'_, SADDRrs> {
AddrW::new(self, 1)
}
}
pub struct SADDRrs;
impl crate::RegisterSpec for SADDRrs {
type Ux = u32;
}
impl crate::Readable for SADDRrs {}
impl crate::Writable for SADDRrs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for SADDRrs {}