pub type R = crate::R<BMPERrs>;
pub type W = crate::W<BMPERrs>;
pub type BMPER_R = crate::FieldReader<u16>;
pub type BMPER_W<'a, REG> = crate::FieldWriter<'a, REG, 16, u16, crate::Safe>;
impl R {
#[inline(always)]
pub fn bmper(&self) -> BMPER_R {
BMPER_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("BMPER").field("bmper", &self.bmper()).finish()
}
}
impl W {
#[inline(always)]
pub fn bmper(&mut self) -> BMPER_W<BMPERrs> {
BMPER_W::new(self, 0)
}
}
pub struct BMPERrs;
impl crate::RegisterSpec for BMPERrs {
type Ux = u32;
}
impl crate::Readable for BMPERrs {}
impl crate::Writable for BMPERrs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for BMPERrs {}