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