pub type R = crate::R<UR3rs>;
pub type W = crate::W<UR3rs>;
pub type BCM4_ADD1_R = crate::FieldReader<u16>;
pub type BCM4_ADD1_W<'a, REG> = crate::FieldWriter<'a, REG, 16, u16>;
pub type BCM7_ADD1_R = crate::FieldReader<u16>;
pub type BCM7_ADD1_W<'a, REG> = crate::FieldWriter<'a, REG, 16, u16>;
impl R {
#[inline(always)]
pub fn bcm4_add1(&self) -> BCM4_ADD1_R {
BCM4_ADD1_R::new((self.bits & 0xffff) as u16)
}
#[inline(always)]
pub fn bcm7_add1(&self) -> BCM7_ADD1_R {
BCM7_ADD1_R::new(((self.bits >> 16) & 0xffff) as u16)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("UR3")
.field("bcm4_add1", &self.bcm4_add1())
.field("bcm7_add1", &self.bcm7_add1())
.finish()
}
}
impl W {
#[inline(always)]
pub fn bcm4_add1(&mut self) -> BCM4_ADD1_W<UR3rs> {
BCM4_ADD1_W::new(self, 0)
}
#[inline(always)]
pub fn bcm7_add1(&mut self) -> BCM7_ADD1_W<UR3rs> {
BCM7_ADD1_W::new(self, 16)
}
}
pub struct UR3rs;
impl crate::RegisterSpec for UR3rs {
type Ux = u32;
}
impl crate::Readable for UR3rs {}
impl crate::Writable for UR3rs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for UR3rs {}