pub type R = crate::R<ADDR1_RXrs>;
pub type W = crate::W<ADDR1_RXrs>;
pub type ADDR1_RX_R = crate::FieldReader<u16>;
pub type ADDR1_RX_W<'a, REG> = crate::FieldWriter<'a, REG, 15, u16>;
impl R {
#[inline(always)]
pub fn addr1_rx(&self) -> ADDR1_RX_R {
ADDR1_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("ADDR1_RX")
.field("addr1_rx", &self.addr1_rx())
.finish()
}
}
impl W {
#[inline(always)]
pub fn addr1_rx(&mut self) -> ADDR1_RX_W<ADDR1_RXrs> {
ADDR1_RX_W::new(self, 1)
}
}
pub struct ADDR1_RXrs;
impl crate::RegisterSpec for ADDR1_RXrs {
type Ux = u16;
}
impl crate::Readable for ADDR1_RXrs {}
impl crate::Writable for ADDR1_RXrs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for ADDR1_RXrs {}