pub type R = crate::R<LOOPrs>;
pub type W = crate::W<LOOPrs>;
pub type LoopcntR = crate::FieldReader;
pub type LoopcntW<'a, REG> = crate::FieldWriter<'a, REG, 8>;
impl R {
#[inline(always)]
pub fn loopcnt(&self) -> LoopcntR {
LoopcntR::new((self.bits & 0xff) as u8)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("LOOP")
.field("loopcnt", &self.loopcnt())
.finish()
}
}
impl W {
#[inline(always)]
pub fn loopcnt(&mut self) -> LoopcntW<'_, LOOPrs> {
LoopcntW::new(self, 0)
}
}
pub struct LOOPrs;
impl crate::RegisterSpec for LOOPrs {
type Ux = u32;
}
impl crate::Readable for LOOPrs {}
impl crate::Writable for LOOPrs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for LOOPrs {}