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