pub type R = crate::R<BRURrs>;
pub type W = crate::W<BRURrs>;
pub type SUV_R = crate::FieldReader<u16>;
pub type SUV_W<'a, REG> = crate::FieldWriter<'a, REG, 16, u16>;
pub type DUV_R = crate::FieldReader<u16>;
pub type DUV_W<'a, REG> = crate::FieldWriter<'a, REG, 16, u16>;
impl R {
#[inline(always)]
pub fn suv(&self) -> SUV_R {
SUV_R::new((self.bits & 0xffff) as u16)
}
#[inline(always)]
pub fn duv(&self) -> DUV_R {
DUV_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("BRUR")
.field("suv", &self.suv())
.field("duv", &self.duv())
.finish()
}
}
impl W {
#[inline(always)]
pub fn suv(&mut self) -> SUV_W<BRURrs> {
SUV_W::new(self, 0)
}
#[inline(always)]
pub fn duv(&mut self) -> DUV_W<BRURrs> {
DUV_W::new(self, 16)
}
}
pub struct BRURrs;
impl crate::RegisterSpec for BRURrs {
type Ux = u32;
}
impl crate::Readable for BRURrs {}
impl crate::Writable for BRURrs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for BRURrs {}