pub type R = crate::R<B0CRrs>;
pub type W = crate::W<B0CRrs>;
pub type PBO_R = crate::FieldReader<u32>;
pub type PBO_W<'a, REG> = crate::FieldWriter<'a, REG, 19, u32>;
pub type PBBA_R = crate::FieldReader<u16>;
pub type PBBA_W<'a, REG> = crate::FieldWriter<'a, REG, 9, u16>;
impl R {
#[inline(always)]
pub fn pbo(&self) -> PBO_R {
PBO_R::new((self.bits >> 4) & 0x0007_ffff)
}
#[inline(always)]
pub fn pbba(&self) -> PBBA_R {
PBBA_R::new(((self.bits >> 23) & 0x01ff) as u16)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("B0CR")
.field("pbo", &self.pbo())
.field("pbba", &self.pbba())
.finish()
}
}
impl W {
#[inline(always)]
pub fn pbo(&mut self) -> PBO_W<B0CRrs> {
PBO_W::new(self, 4)
}
#[inline(always)]
pub fn pbba(&mut self) -> PBBA_W<B0CRrs> {
PBBA_W::new(self, 23)
}
}
pub struct B0CRrs;
impl crate::RegisterSpec for B0CRrs {
type Ux = u32;
}
impl crate::Readable for B0CRrs {}
impl crate::Writable for B0CRrs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for B0CRrs {}