pub type R = crate::R<IENrs>;
pub type W = crate::W<IENrs>;
pub type FpiocR = crate::BitReader;
pub type FpiocW<'a, REG> = crate::BitWriter<'a, REG>;
pub type FpdzcR = crate::BitReader;
pub type FpdzcW<'a, REG> = crate::BitWriter<'a, REG>;
pub type FpufcR = crate::BitReader;
pub type FpufcW<'a, REG> = crate::BitWriter<'a, REG>;
pub type FpofcR = crate::BitReader;
pub type FpofcW<'a, REG> = crate::BitWriter<'a, REG>;
pub type FpidcR = crate::BitReader;
pub type FpidcW<'a, REG> = crate::BitWriter<'a, REG>;
pub type FpixcR = crate::BitReader;
pub type FpixcW<'a, REG> = crate::BitWriter<'a, REG>;
impl R {
#[inline(always)]
pub fn fpioc(&self) -> FpiocR {
FpiocR::new((self.bits & 1) != 0)
}
#[inline(always)]
pub fn fpdzc(&self) -> FpdzcR {
FpdzcR::new(((self.bits >> 1) & 1) != 0)
}
#[inline(always)]
pub fn fpufc(&self) -> FpufcR {
FpufcR::new(((self.bits >> 2) & 1) != 0)
}
#[inline(always)]
pub fn fpofc(&self) -> FpofcR {
FpofcR::new(((self.bits >> 3) & 1) != 0)
}
#[inline(always)]
pub fn fpidc(&self) -> FpidcR {
FpidcR::new(((self.bits >> 4) & 1) != 0)
}
#[inline(always)]
pub fn fpixc(&self) -> FpixcR {
FpixcR::new(((self.bits >> 5) & 1) != 0)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("IEN")
.field("fpioc", &self.fpioc())
.field("fpdzc", &self.fpdzc())
.field("fpufc", &self.fpufc())
.field("fpofc", &self.fpofc())
.field("fpidc", &self.fpidc())
.field("fpixc", &self.fpixc())
.finish()
}
}
impl W {
#[inline(always)]
pub fn fpioc(&mut self) -> FpiocW<'_, IENrs> {
FpiocW::new(self, 0)
}
#[inline(always)]
pub fn fpdzc(&mut self) -> FpdzcW<'_, IENrs> {
FpdzcW::new(self, 1)
}
#[inline(always)]
pub fn fpufc(&mut self) -> FpufcW<'_, IENrs> {
FpufcW::new(self, 2)
}
#[inline(always)]
pub fn fpofc(&mut self) -> FpofcW<'_, IENrs> {
FpofcW::new(self, 3)
}
#[inline(always)]
pub fn fpidc(&mut self) -> FpidcW<'_, IENrs> {
FpidcW::new(self, 4)
}
#[inline(always)]
pub fn fpixc(&mut self) -> FpixcW<'_, IENrs> {
FpixcW::new(self, 5)
}
}
pub struct IENrs;
impl crate::RegisterSpec for IENrs {
type Ux = u32;
}
impl crate::Readable for IENrs {}
impl crate::Writable for IENrs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for IENrs {}