pub type R = crate::R<WRP1BRrs>;
pub type W = crate::W<WRP1BRrs>;
pub type WRP1B_STRT_R = crate::FieldReader;
pub type WRP1B_STRT_W<'a, REG> = crate::FieldWriter<'a, REG, 7>;
pub type WRP1B_END_R = crate::FieldReader;
pub type WRP1B_END_W<'a, REG> = crate::FieldWriter<'a, REG, 7>;
impl R {
#[inline(always)]
pub fn wrp1b_strt(&self) -> WRP1B_STRT_R {
WRP1B_STRT_R::new((self.bits & 0x7f) as u8)
}
#[inline(always)]
pub fn wrp1b_end(&self) -> WRP1B_END_R {
WRP1B_END_R::new(((self.bits >> 16) & 0x7f) as u8)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("WRP1BR")
.field("wrp1b_strt", &self.wrp1b_strt())
.field("wrp1b_end", &self.wrp1b_end())
.finish()
}
}
impl W {
#[inline(always)]
pub fn wrp1b_strt(&mut self) -> WRP1B_STRT_W<WRP1BRrs> {
WRP1B_STRT_W::new(self, 0)
}
#[inline(always)]
pub fn wrp1b_end(&mut self) -> WRP1B_END_W<WRP1BRrs> {
WRP1B_END_W::new(self, 16)
}
}
pub struct WRP1BRrs;
impl crate::RegisterSpec for WRP1BRrs {
type Ux = u32;
}
impl crate::Readable for WRP1BRrs {}
impl crate::Writable for WRP1BRrs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for WRP1BRrs {}