pub type R = crate::R<UR1rs>;
pub type W = crate::W<UR1rs>;
pub type BCM4_R = crate::BitReader;
pub type BCM4_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type BCM7_R = crate::BitReader;
pub type BCM7_W<'a, REG> = crate::BitWriter<'a, REG>;
impl R {
#[inline(always)]
pub fn bcm4(&self) -> BCM4_R {
BCM4_R::new((self.bits & 1) != 0)
}
#[inline(always)]
pub fn bcm7(&self) -> BCM7_R {
BCM7_R::new(((self.bits >> 16) & 1) != 0)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("UR1")
.field("bcm4", &self.bcm4())
.field("bcm7", &self.bcm7())
.finish()
}
}
impl W {
#[inline(always)]
pub fn bcm4(&mut self) -> BCM4_W<UR1rs> {
BCM4_W::new(self, 0)
}
#[inline(always)]
pub fn bcm7(&mut self) -> BCM7_W<UR1rs> {
BCM7_W::new(self, 16)
}
}
pub struct UR1rs;
impl crate::RegisterSpec for UR1rs {
type Ux = u32;
}
impl crate::Readable for UR1rs {}
impl crate::Writable for UR1rs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for UR1rs {}