pub type R = crate::R<BTABLErs>;
pub type W = crate::W<BTABLErs>;
pub type BTABLE_R = crate::FieldReader<u16>;
pub type BTABLE_W<'a, REG> = crate::FieldWriter<'a, REG, 13, u16, crate::Safe>;
impl R {
#[inline(always)]
pub fn btable(&self) -> BTABLE_R {
BTABLE_R::new(((self.bits >> 3) & 0x1fff) as u16)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("BTABLE")
.field("btable", &self.btable())
.finish()
}
}
impl W {
#[inline(always)]
pub fn btable(&mut self) -> BTABLE_W<BTABLErs> {
BTABLE_W::new(self, 3)
}
}
pub struct BTABLErs;
impl crate::RegisterSpec for BTABLErs {
type Ux = u32;
}
impl crate::Readable for BTABLErs {}
impl crate::Writable for BTABLErs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for BTABLErs {}