pub type R = crate::R<IDRrs>;
pub type W = crate::W<IDRrs>;
pub type IDR_R = crate::FieldReader;
pub type IDR_W<'a, REG> = crate::FieldWriter<'a, REG, 8, u8, crate::Safe>;
impl R {
#[inline(always)]
pub fn idr(&self) -> IDR_R {
IDR_R::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("IDR").field("idr", &self.idr()).finish()
}
}
impl W {
#[inline(always)]
pub fn idr(&mut self) -> IDR_W<IDRrs> {
IDR_W::new(self, 0)
}
}
pub struct IDRrs;
impl crate::RegisterSpec for IDRrs {
type Ux = u32;
}
impl crate::Readable for IDRrs {}
impl crate::Writable for IDRrs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for IDRrs {}