pub type R = crate::R<INSENSErs>;
pub type W = crate::W<INSENSErs>;
pub type IntR = crate::BitReader;
pub type IntW<'a, REG> = crate::BitWriter<'a, REG>;
pub type Em4wuR = crate::BitReader;
pub type Em4wuW<'a, REG> = crate::BitWriter<'a, REG>;
impl R {
#[inline(always)]
pub fn int(&self) -> IntR {
IntR::new((self.bits & 1) != 0)
}
#[inline(always)]
pub fn em4wu(&self) -> Em4wuR {
Em4wuR::new(((self.bits >> 1) & 1) != 0)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("INSENSE")
.field("int", &self.int())
.field("em4wu", &self.em4wu())
.finish()
}
}
impl W {
#[inline(always)]
pub fn int(&mut self) -> IntW<'_, INSENSErs> {
IntW::new(self, 0)
}
#[inline(always)]
pub fn em4wu(&mut self) -> Em4wuW<'_, INSENSErs> {
Em4wuW::new(self, 1)
}
}
pub struct INSENSErs;
impl crate::RegisterSpec for INSENSErs {
type Ux = u32;
}
impl crate::Readable for INSENSErs {}
impl crate::Writable for INSENSErs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for INSENSErs {
const RESET_VALUE: u32 = 0x03;
}