pub type R = crate::R<TOPBrs>;
pub type W = crate::W<TOPBrs>;
pub type TopbR = crate::FieldReader<u16>;
pub type TopbW<'a, REG> = crate::FieldWriter<'a, REG, 16, u16>;
impl R {
#[inline(always)]
pub fn topb(&self) -> TopbR {
TopbR::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("TOPB").field("topb", &self.topb()).finish()
}
}
impl W {
#[inline(always)]
pub fn topb(&mut self) -> TopbW<'_, TOPBrs> {
TopbW::new(self, 0)
}
}
pub struct TOPBrs;
impl crate::RegisterSpec for TOPBrs {
type Ux = u32;
}
impl crate::Readable for TOPBrs {}
impl crate::Writable for TOPBrs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for TOPBrs {
const RESET_VALUE: u32 = 0xff;
}