pub type R = crate::R<FPR2rs>;
pub type W = crate::W<FPR2rs>;
pub type FPIF35_R = crate::BitReader;
pub type FPIF35_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type FPIF36_R = crate::BitReader;
pub type FPIF36_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type FPIF37_R = crate::BitReader;
pub type FPIF37_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type FPIF38_R = crate::BitReader;
pub type FPIF38_W<'a, REG> = crate::BitWriter<'a, REG>;
impl R {
#[inline(always)]
pub fn fpif35(&self) -> FPIF35_R {
FPIF35_R::new(((self.bits >> 3) & 1) != 0)
}
#[inline(always)]
pub fn fpif36(&self) -> FPIF36_R {
FPIF36_R::new(((self.bits >> 4) & 1) != 0)
}
#[inline(always)]
pub fn fpif37(&self) -> FPIF37_R {
FPIF37_R::new(((self.bits >> 5) & 1) != 0)
}
#[inline(always)]
pub fn fpif38(&self) -> FPIF38_R {
FPIF38_R::new(((self.bits >> 6) & 1) != 0)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("FPR2")
.field("fpif35", &self.fpif35())
.field("fpif36", &self.fpif36())
.field("fpif37", &self.fpif37())
.field("fpif38", &self.fpif38())
.finish()
}
}
impl W {
#[inline(always)]
pub fn fpif35(&mut self) -> FPIF35_W<FPR2rs> {
FPIF35_W::new(self, 3)
}
#[inline(always)]
pub fn fpif36(&mut self) -> FPIF36_W<FPR2rs> {
FPIF36_W::new(self, 4)
}
#[inline(always)]
pub fn fpif37(&mut self) -> FPIF37_W<FPR2rs> {
FPIF37_W::new(self, 5)
}
#[inline(always)]
pub fn fpif38(&mut self) -> FPIF38_W<FPR2rs> {
FPIF38_W::new(self, 6)
}
}
pub struct FPR2rs;
impl crate::RegisterSpec for FPR2rs {
type Ux = u32;
}
impl crate::Readable for FPR2rs {}
impl crate::Writable for FPR2rs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for FPR2rs {}