pub type R = crate::R<L1BFCRrs>;
pub type W = crate::W<L1BFCRrs>;
pub type BF2_R = crate::FieldReader;
pub type BF2_W<'a, REG> = crate::FieldWriter<'a, REG, 3>;
pub type BF1_R = crate::FieldReader;
pub type BF1_W<'a, REG> = crate::FieldWriter<'a, REG, 3>;
impl R {
#[inline(always)]
pub fn bf2(&self) -> BF2_R {
BF2_R::new((self.bits & 7) as u8)
}
#[inline(always)]
pub fn bf1(&self) -> BF1_R {
BF1_R::new(((self.bits >> 8) & 7) as u8)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("L1BFCR")
.field("bf2", &self.bf2())
.field("bf1", &self.bf1())
.finish()
}
}
impl W {
#[inline(always)]
pub fn bf2(&mut self) -> BF2_W<L1BFCRrs> {
BF2_W::new(self, 0)
}
#[inline(always)]
pub fn bf1(&mut self) -> BF1_W<L1BFCRrs> {
BF1_W::new(self, 8)
}
}
pub struct L1BFCRrs;
impl crate::RegisterSpec for L1BFCRrs {
type Ux = u32;
}
impl crate::Readable for L1BFCRrs {}
impl crate::Writable for L1BFCRrs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for L1BFCRrs {
const RESET_VALUE: u32 = 0x0607;
}